Example of 6-18 digital Adjacencies visualization with Board3DTo2D.
#include <iostream>
#include "DGtal/io/boards/Board3DTo2D.h"
#include "DGtal/io/DrawWithDisplay3DModifier.h"
#include "DGtal/io/Color.h"
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/shapes/Shapes.h"
using namespace Z3i;
{
board << shape_set;
Object6_18 shape( dt6_18, shape_set );
board <<
SetMode3D( shape.className(),
"DrawAdjacencies" );
board << shape;
Object18_6 shape2( dt18_6, shape_set );
board <<
SetMode3D( shape2.className(),
"DrawAdjacencies" );
}
Class for PDF, PNG, PS, EPS, SVG export drawings with Cairo with 3D->2D projection.
void saveCairo(const char *filename, CairoType type, int bWidth, int bHeight)
Structure representing an RGB triple with alpha component.
Aim: A utility class for constructing different shapes (balls, diamonds, and others).
DGtal is the top-level namespace which contains all DGtal functions and types.
CameraDirection class to set camera direction.
CameraPosition class to set camera position.
CameraUpVector class to set camera up-vector.
Modifier class in a Display3D stream. Useful to choose your own mode for a given class....
HyperRectDomain< Space > Domain
Z2i::DigitalSet DigitalSet