#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 );
typedef Viewer3D<Space, KSpace> MyViewer;
viewer.show();
viewer << SetMode3D(
domain.className(),
"Paving" );
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;
viewer << MyViewer::updateDisplay;
return application.exec();
}
DGtal is the top-level namespace which contains all DGtal functions and types.
int main(int argc, char **argv)
HyperRectDomain< Space > Domain