Illustration of the "Illustration" KhalimskyCell mode.
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/shapes/Shapes.h"
#include "DGtal/io/viewers/Viewer3D.h"
#include "DGtal/io/DrawWithDisplay3DModifier.h"
using namespace std;
using namespace Z3i;
int main(
int argc,
char** argv )
{
QApplication application(argc,argv);
K.
init( plow, pup,
true );
viewer <<
SetMode3D( v.className(),
"Illustration" );
viewer << v << v2 << v3;
viewer << tsx << tsy << tsz << tsxn << tsyn << tszn;
viewer << tsx2 << tsy2 << tsz2 << tsxn2 << tsyn2 << tszn2;
viewer << tsx3 << tsy3 << tsz3 << tsxn3 << tsyn3 << tszn3;
return application.exec();
}
bool init(const Point &lower, const Point &upper, bool isClosed)
Specifies the upper and lower bounds for the maximal cells in this space.
std::string className() const
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].