#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"
int main(
int argc,
char** argv )
{
QApplication application(argc,argv);
K.init( plow, pup, true );
MyViewer viewer(K);
SCell v2 = K.sSpel(
Point( 1, 0, 0 ), KSpace::POS );
SCell v3 = K.sSpel(
Point( 0, 1, 0 ), KSpace::POS );
SCell v4 = K.sSpel(
Point( 1, 1, 0 ), KSpace::NEG );
SCell v = K.sSpel(
Point( 0, 0, 0 ), KSpace::POS );
viewer <<
SetMode3D( v.className(),
"Illustration" );
viewer << v << v2 << v3;
SCell sx = K.sIncident( v, 0, true );
SCell sy = K.sIncident( v, 1, true );
SCell sz = K.sIncident( v, 2, true );
SCell sxn = K.sIncident( v, 0, false );
SCell syn = K.sIncident( v, 1, false );
SCell szn = K.sIncident( v, 2, false );
viewer << tsx << tsy << tsz << tsxn << tsyn << tszn;
SCell sx2 = K.sIncident( v2, 0, true );
SCell sy2 = K.sIncident( v2, 1, true );
SCell sz2 = K.sIncident( v2, 2, true );
SCell sxn2 = K.sIncident( v2, 0, false );
SCell syn2 = K.sIncident( v2, 1, false );
SCell szn2 = K.sIncident( v2, 2, false );
viewer << tsx2 << tsy2 << tsz2 << tsxn2 << tsyn2 << tszn2;
SCell sx3 = K.sIncident( v3, 0, true );
SCell sy3 = K.sIncident( v3, 1, true );
SCell sz3 = K.sIncident( v3, 2, true );
SCell sxn3 = K.sIncident( v3, 0, false );
SCell syn3 = K.sIncident( v3, 1, false );
SCell szn3 = K.sIncident( v3, 2, false );
viewer << tsx3 << tsy3 << tsz3 << tsxn3 << tsyn3 << tszn3;
return application.exec();
}