Class: BufferBuilder

jsts.operation.buffer.BufferBuilder

new BufferBuilder(bufParams)

Builds the buffer geometry for a given input geometry and precision model. 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.

Parameters:
Name Type Description
bufParams jsts.operation.buffer.BufferBuilder.BufferParameters
Source:

Methods

(static) depthDelta(label) → {Number}

Compute the change in depth as an edge is crossed from R to L
Parameters:
Name Type Description
label Label
Source:
Returns:
Type
Number

(protected) insertUniqueEdge()

Inserted edges are checked to see if an identical edge already exists. If so, the edge is not inserted, but its label is merged with the existing edge.
Source:

setNoder(noder)

Sets the Noder to use during noding. This allows choosing fast but non-robust noding, or slower but robust noding.
Parameters:
Name Type Description
noder the noder to use.
Source:

setWorkingPrecisionModel(pm)

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.
Parameters:
Name Type Description
pm the precision model to use.
Source: