#include <BufferBuilder.h>
Public Member Functions | |
BufferBuilder () | |
void | setQuadrantSegments (int nQuadrantSegments) |
void | setWorkingPrecisionModel (const geom::PrecisionModel *pm) |
void | setNoder (noding::Noder *newNoder) |
void | setEndCapStyle (int nEndCapStyle) |
geom::Geometry * | buffer (const geom::Geometry *g, double distance) |
Allows setting the level of approximation for circular arcs, and the precision model in which to carry out the computation.
When computing buffers in floating point double-precision it can happen that the process of iterated noding can fail to converge (terminate).
In this case a TopologyException will be thrown. Retrying the computation in a fixed precision can produce more robust results.
Last port: operation/buffer/BufferBuilder.java rev. 1.21 (JTS-1.7)
geos::operation::buffer::BufferBuilder::BufferBuilder | ( | ) | [inline] |
Creates a new BufferBuilder
void geos::operation::buffer::BufferBuilder::setQuadrantSegments | ( | int | nQuadrantSegments | ) | [inline] |
Sets the number of segments used to approximate a angle fillet
quadrantSegments | the number of segments in a fillet for a quadrant |
void geos::operation::buffer::BufferBuilder::setWorkingPrecisionModel | ( | const geom::PrecisionModel * | pm | ) | [inline] |
Sets the precision model to use during the curve computation and noding, if it is different to the precision model of the Geometry. If the precision model is less than the precision of the Geometry precision model, the Geometry must have previously been rounded to that precision.
pm | the precision model to use |
void geos::operation::buffer::BufferBuilder::setNoder | ( | noding::Noder * | newNoder | ) | [inline] |
Sets the noding::Noder to use during noding. This allows choosing fast but non-robust noding, or slower but robust noding.
noder | the noder to use |