32 #include "DGtal/base/Common.h"
33 #include "DGtal/helpers/StdDefs.h"
34 #include "DGtal/shapes/Mesh.h"
35 #include "DGtal/io/viewers/Viewer3D.h"
40 using namespace DGtal;
51 int main(
int argc,
char** argv )
55 for (
int i = 0; i < argc; ++i )
59 QApplication application(argc,argv);
86 listIndex.push_back(7);
87 listIndex.push_back(8);
88 listIndex.push_back(9);
89 listIndex.push_back(10);
90 listIndex.push_back(11);
91 listIndex.push_back(12);
98 viewer << Viewer3D<>::updateDisplay;
99 bool res = application.exec();
101 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
Structure representing an RGB triple with alpha component.
virtual void setLineColor(DGtal::Color aColor)
Aim: This class is defined to represent a surface mesh through a set of vertices and faces....
void addQuadFace(Index indexVertex1, Index indexVertex2, Index indexVertex3, Index indexVertex4, const DGtal::Color &aColor=DGtal::Color::White)
void addFace(const MeshFace &aFace, const DGtal::Color &aColor=DGtal::Color::White)
std::vector< Index > MeshFace
void addTriangularFace(Index indexVertex1, Index indexVertex2, Index indexVertex3, const DGtal::Color &aColor=DGtal::Color::White)
void addVertex(const TPoint &vertex)
void beginBlock(const std::string &keyword="")
virtual void show()
Overload QWidget method in order to add a call to updateList() method (to ensure that the lists are w...
Z3i this namespace gathers the standard of types for 3D imagery.
DGtal is the top-level namespace which contains all DGtal functions and types.
int main(int argc, char **argv)