43#include "DGtal/base/Common.h"
44#include "DGtal/helpers/StdDefs.h"
45#include "DGtal/io/viewers/PolyscopeViewer.h"
55int main(
int argc,
char** argv )
62 K.
init( plow, pup,
true );
71 viewer << ptlow << ptup1 << ptup2;
82 viewer << p1 << p2 << p3 << p4 << p5 << p6 << p7 << p8;
103 viewer << linel0<< linel1<< linel2 << linel3 ;
104 viewer << linel4<< linel5<< linel6 << linel7 ;
105 viewer << linel8<< linel9<< linel10 << linel11 << linel12;
112 viewer << surfelA << surfelB << surfelC;
117 viewer << vox1 << vox2;
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.
SCell sTranslation(const SCell &p, const Vector &vec) const
Add the vector [vec] to [p].
SCell sPointel(Point p, Sign sign=POS) const
From the digital coordinates of a point in Zn, builds the corresponding pointel (cell of dimension 0)...
static Self diagonal(Component val=1)
Z3i this namespace gathers the standard of types for 3D imagery.
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.
PolyscopeViewer< Space, KSpace > MyViewer