Example of EuclideanShapesDecorator
- See also
- Shapes, Shapers and Digitizers
Result obtained from CSG operations with implicit balls.
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/shapes/GaussDigitizer.h"
#include "DGtal/topology/LightImplicitDigitalSurface.h"
#include "DGtal/topology/DigitalSurface.h"
#include "DGtal/io/boards/Board2D.h"
#include "DGtal/images/ImageHelper.h"
#include "DGtal/shapes/Shapes.h"
#include "DGtal/shapes/implicit/ImplicitBall.h"
#include "DGtal/shapes/EuclideanShapesDecorator.h"
#include "DGtal/io/boards/Board2D.h"
using namespace std;
int main(
int argc,
char** argv )
{
for ( int i = 0; i < argc; ++i )
double h = 1.0;
Minus s_minus ( shapeA );
s_minus.minus( shapeB );
s_minus.plus( shapeC );
MyGaussDigitizer digShape;
digShape.init( s_minus.getLowerBound(), s_minus.getUpperBound(), h );
<< domainShape;
Color dorange ( 255, 136, 0, 220 );
board << aSet;
board.
saveSVG (
"example-EuclideanShapesDecorator.svg" );
return 0;
}
std::string className() const