74int main(
int argc,
char** argv )
79 typedef std::vector<Point>::iterator Iterator;
83 string inputFilename = examplesPath +
"samples/sinus.dat";
88 Decomposition theDecomposition(sequence.begin(), sequence.end(), algo);
95#ifdef WITH_VISU3D_QGLVIEWER
97 QApplication application(argc,argv);
100 viewer <<
SetMode3D(p.className(),
"Grid");
105 boardViewer <<
SetMode3D(p.className(),
"Grid");
115 Decomposition::SegmentComputerIterator i = theDecomposition.begin();
116 for ( ; i != theDecomposition.end(); ++i) {
118 #ifdef WITH_VISU3D_QGLVIEWER
119 viewer <<
SetMode3D(currentSegmentComputer.className(),
"Points");
120 viewer << currentSegmentComputer;
121 viewer <<
SetMode3D(currentSegmentComputer.className(),
"BoundingBox");
122 viewer << currentSegmentComputer;
125 boardViewer <<
SetMode3D(currentSegmentComputer.className(),
"Points");
126 boardViewer << currentSegmentComputer;
127 boardViewer <<
SetMode3D(currentSegmentComputer.className(),
"BoundingBox");
128 boardViewer << currentSegmentComputer;
134 #ifdef WITH_VISU3D_QGLVIEWER
135 viewer << Viewer3D<>::updateDisplay;
136 flag = application.exec();