Example of 6-18 digital Adjacencies visualization with Board3DTo2D.
- See also
- Mode selection: the example of digital objects in 3D
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"
int main()
{
Point p1( 0, 0, 0 );
Point p2( 10, 10 , 10 );
board << shape_set;
board <<
SetMode3D( shape.className(),
"DrawAdjacencies" );
board << shape;
board <<
SetMode3D( shape2.className(),
"DrawAdjacencies" );
}