40#include "DGtal/io/boards/Board3D.h"
41#include "DGtal/base/Common.h"
42#include "DGtal/helpers/StdDefs.h"
43#include "DGtal/shapes/Shapes.h"
44#include "DGtal/io/DrawWithDisplay3DModifier.h"
60 K.
init( plow, pup,
true );
71 board <<
SetMode3D( v.className(),
"Illustration" );
74 board << v << v2 << v3;
75 board.
saveOBJ(
"board3D-2-ks.obj");
99 board2 << tsx << tsy << tsz << tsxn << tsyn << tszn;
118 board2 << tsx2 << tsy2 << tsz2 << tsxn2 << tsyn2 << tszn2;
138 board2 << tsx3 << tsy3 << tsz3 << tsxn3 << tsyn3 << tszn3;
140 std::cout <<
"save obj" << std::endl;
141 board2.
saveOBJ(
"board3D-2bis-ks.obj");
The class Board3D is a type of Display3D which export the figures in the format OBJ/MTL when calling ...
void saveOBJ(const std::string &filename, const bool isNormalized=false)
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.
static const constexpr Sign NEG
SCell sSpel(Point p, Sign sign=POS) const
From the digital coordinates of a point in Zn, builds the corresponding spel (cell of maximal dimensi...
static const constexpr Sign POS
SCell sIncident(const SCell &c, Dimension k, bool up) const
Return the forward or backward signed cell incident to [c] along axis [k], depending on [up].
DGtal is the top-level namespace which contains all DGtal functions and types.
Modifier class in a Display3D stream. Useful to choose your own mode for a given class....