Example of a custom display (with Board3DTo2D)
- See also
- Changing the style for displaying drawable elements.
Example of several custom display (with Board3DTo2D).
#include <iostream>
#include "DGtal/io/boards/Board3DTo2D.h"
#include "DGtal/io/DrawWithDisplay3DModifier.h"
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/shapes/Shapes.h"
using namespace Z3i;
{
board <<
SetMode3D( p1.className(),
"PavingWired" );
board << p1 << p2 << p3;
board << p4 << p5 ;
board <<
SetMode3D( p1.className(),
"Both" );
board << p6;
board << p0;
}
Class for PDF, PNG, PS, EPS, SVG export drawings with Cairo with 3D->2D projection.
std::string className() const
void saveCairo(const char *filename, CairoType type, int bWidth, int bHeight)
Structure representing an RGB triple with alpha component.
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....
HyperRectDomain< Space > Domain