32#include "DGtal/base/Common.h"
42#include "DGtal/base/Common.h"
43#include "DGtal/helpers/StdDefs.h"
44#include "DGtal/shapes/Shapes.h"
45#include "DGtal/io/viewers/Viewer3D.h"
55int main(
int argc,
char** argv )
58 QApplication application(argc,argv);
65 K.
init( plow, pup,
true );
78 viewer << voxelB<< voxelA;
86 viewer << surfelA << surfelB << surfelC << surfelD << surfelE;
91 viewer << linelA << linelB << linelC;
105 viewer << ssurfelXZ << ssurfelXY << ssurfelZY;
106 viewer << ssurfelXZo << ssurfelXYo << ssurfelZYo;
113 viewer << pointelA << pointelB << pointelC << linelAC;
115 viewer << Viewer3D<>::updateDisplay;
117 bool res = application.exec();
118 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
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 sCell(const SPreCell &c) const
From a signed cell, returns a signed cell lying into this Khalismky space.
Cell uCell(const PreCell &c) const
From an unsigned cell, returns an unsigned cell lying into this Khalismky space.
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...
DGtal is the top-level namespace which contains all DGtal functions and types.
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.