39 #include "DGtal/base/Common.h"
40 #include "DGtal/helpers/StdDefs.h"
41 #include "DGtal/shapes/Shapes.h"
42 #include "DGtal/io/viewers/Viewer3D.h"
44 #include "DGtal/io/DrawWithDisplay3DModifier.h"
49 using namespace DGtal;
56 int main(
int argc,
char** argv )
59 QApplication application(argc,argv);
65 K.
init( plow, pup,
true );
81 viewer <<
SetMode3D( v.className(),
"Illustration" );
84 viewer << v << v2 << v3;
107 viewer << tsx << tsy << tsz << tsxn << tsyn << tszn;
126 viewer << tsx2 << tsy2 << tsz2 << tsxn2 << tsyn2 << tszn2;
146 viewer << tsx3 << tsy3 << tsz3 << tsxn3 << tsyn3 << tszn3;
147 viewer << MyViewer::updateDisplay;
149 return application.exec();
std::string className() const
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex,...
bool init(const Point &lower, const Point &upper, bool isClosed)
Specifies the upper and lower bounds for the maximal cells in this space.
SCell sSpel(Point p, Sign sign=POS) const
From the digital coordinates of a point in Zn, builds the corresponding spel (cell of maximal dimensi...
SCell sIncident(const SCell &c, Dimension k, bool up) const
Return the forward or backward signed cell incident to [c] along axis [k], depending on [up].
DGtal is the top-level namespace which contains all DGtal functions and types.
Modifier class in a Display3D stream. Useful to choose your own mode for a given class....
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.
int main(int argc, char **argv)