Example of visualization after adding two clipping planes
- See also
- Adding clipping planes
Visualization after adding a second clipping plane (1,0,0,-4.9) .
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/shapes/Shapes.h"
#include "DGtal/io/viewers/Viewer3D.h"
#include "DGtal/io/DrawWithDisplay3DModifier.h"
#include "DGtal/io/Color.h"
using namespace Z3i;
int main(
int argc,
char** argv )
{
QApplication application(argc,argv);
MyViewer viewer;
viewer <<
SetMode3D( shape_set.className(),
"Both" );
viewer << shape_set;
viewer <<
SetMode3D( p1.className(),
"Paving" );
viewer << MyViewer::updateDisplay;
return application.exec();
}
Structure representing an RGB triple with alpha component.
Aim: A utility class for constructing different shapes (balls, diamonds, and others).
virtual void show()
Overload QWidget method in order to add a call to updateList() method (to ensure that the lists are w...
DGtal is the top-level namespace which contains all DGtal functions and types.
Class for adding a Clipping plane through the Viewer3D stream. Realizes the concept CDrawableWithView...
Modifier class in a Display3D stream. Useful to choose your own mode for a given class....
HyperRectDomain< Space > Domain
Z2i::DigitalSet DigitalSet