public class BufferBuilder extends Object
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.
| Constructor and Description |
|---|
BufferBuilder(BufferParameters
Creates a new BufferBuilder
|
| Modifier and Type | Method and Description |
|---|---|
Geometry |
buffer(Geometry
|
protected void |
insertUniqueEdge(Edge
Inserted edges are checked to see if an identical edge already exists.
|
void |
setNoder(Noder
Sets the
Noder to use during noding.
|
void |
setWorkingPrecisionModel(PrecisionModel
Sets the precision model to use during the curve computation and noding, if it is different to the precision model of the Geometry.
|
public BufferBuilder(BufferParametersbufParams)
public void setWorkingPrecisionModel(PrecisionModelpm)
pm - the precision model to use
public void setNoder(Nodernoder)
Noder to use during noding. This allows choosing fast but non-robust noding, or slower but robust noding.
noder - the noder to use
protected void insertUniqueEdge(Edgee)