Example of 6-18 digital Adjacencies visualization with Viewer3D.
- See also
- Mode selection: the example of digital objects in 3D
6-18 digital Adjacencies visualization with Viewer3D.
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/io/DrawWithDisplay3DModifier.h"
#include "DGtal/io/Color.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/shapes/Shapes.h"
#include "DGtal/io/viewers/Viewer3D.h"
using namespace std;
using namespace Z3i;
int main(
int argc,
char** argv )
{
QApplication application(argc,argv);
viewer << shape_set;
viewer <<
SetMode3D( shape.className(),
"DrawAdjacencies" );
viewer << shape;
viewer <<
SetMode3D( shape2.className(),
"DrawAdjacencies" );
return application.exec();
}