33 #include <QImageReader>
34 #include <QtGui/qapplication.h>
35 #include "DGtal/io/viewers/Viewer3D.h"
36 #include "DGtal/io/DrawWithDisplay3DModifier.h"
37 #include "DGtal/io/Color.h"
38 #include "DGtal/shapes/Shapes.h"
39 #include "DGtal/helpers/StdDefs.h"
44 using namespace DGtal;
51 int main(
int argc,
char** argv )
56 QApplication application(argc,argv);
58 viewer.setWindowTitle(
"simpleExample3DViewer");
63 Point p1( -50, -50, -50 );
64 Point p2( 50, 50, 50 );
67 trace.
warning() <<
"Constructing a ring DigitalSet ... ";
71 if ( ((*it - c ).norm() <= 25) && ((*it - c ).norm() >= 18)
72 && ( (((*it)[0] <= 3)&& ((*it)[0] >= -3))|| (((*it)[1] <= 3)&& ((*it)[1] >= -3)))){
73 shape_set.insertNew( *it );
85 std::queue<DigitalSet::Iterator> Q;
87 if ( shape.isSimple( *it ) )
94 if ( shape.isSimple( *it ) )
96 cerr <<
"point simple " << (*it) << endl;
103 while ( nb_simple != 0 );
109 viewer <<
SetMode3D( shape_set.className(),
"Paving" );
113 viewer <<
SetMode3D( shape_set.className(),
"PavingTransp" );
117 viewer<< Viewer3D::updateDisplay;
121 return application.exec();