Khalimsky Signed Cell Visualization (with Board3DTo2D)
Khalimsky Signed Cell Visualization (with Board3DTo2D)
#include "DGtal/io/boards/Board3DTo2D.h"
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/shapes/Shapes.h"
using namespace std;
using namespace Z3i;
{
K.init( plow, pup,
true );
board << SetMode3D(
domain.className(),
"Paving" );
board << voxelB << voxelA;
board << surfelA << surfelB << surfelC << surfelD << surfelE;
board << linelA << linelB << linelC;
board << ssurfelXZ << ssurfelXY << ssurfelZY;
board << ssurfelXZo << ssurfelXYo << ssurfelZYo;
board << pointelA << pointelB << pointelC << linelAC;
board << CameraPosition(3.49239, 3.04746, -1.40276)
<< CameraDirection(-0.605129, -0.454197, 0.653853)
<< CameraUpVector(0.516135, -0.84913, -0.112173);
board.saveCairo("dgtalBoard3DTo2D-KSCell.png", Board3DTo2D<Space, KSpace>::CairoPNG, 600, 400);
}
Point center(const std::vector< Point > &points)
DGtal is the top-level namespace which contains all DGtal functions and types.
int main(int argc, char **argv)
HyperRectDomain< Space > Domain