32 #include <QtGui/qapplication.h>
33 #include "DGtal/io/viewers/Viewer3D.h"
34 #include "DGtal/io/DrawWithDisplay3DModifier.h"
35 #include "DGtal/io/Color.h"
36 #include "DGtal/base/Common.h"
37 #include "DGtal/helpers/StdDefs.h"
38 #include "DGtal/shapes/Shapes.h"
42 using namespace DGtal;
54 unsigned int nbok = 0;
59 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
60 <<
"true == true" << std::endl;
69 int main(
int argc,
char** argv )
72 QApplication application(argc,argv);
74 viewer.setWindowTitle(
"simpleViewer");
85 Point p1( 14, 14, 14 );
86 Point p2( 27, 27, 27 );
90 viewer <<
SetMode3D(domain.className(),
"Grid");
100 viewer << shape_set2 ;
105 viewer << shape_set3 ;
110 Point pp1( -1, -1, -2 );
111 Point pp2( 2, 2, 3 );
114 Domain domain2( pp1, pp2 );
115 Point pp3( 1, 1, 1 );
116 Point pp4( 2, -1, 5 );
117 Point pp5( -1, 2, 3 );
118 Point pp6( 0, 0, 0 );
119 Point pp0( 0, 2, 1 );
122 viewer <<
SetMode3D( pp1.className(),
"Paving" );
123 viewer << pp1 << pp2 << pp3;
127 viewer <<
SetMode3D( pp1.className(),
"PavingWired" );
128 viewer << pp4 << pp5 ;
129 viewer <<
SetMode3D( pp1.className(),
"Both" );
136 viewer <<
SetMode3D(domain.className(),
"Paving");
137 viewer << domain2 << Display3D::updateDisplay;
140 bool res = application.exec();
141 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;