BufferBuilder class
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 {@link TopologyException} will be thrown. Retrying the computation in a fixed precision can produce more robust results.
@version 1.7
Constructors
- BufferBuilder(BufferParameters bufParams)
- Creates a new BufferBuilder, using the given parameters.
Properties
- bufParams ↔ BufferParameters
-
getter/setter pair
- edgeList ↔ EdgeList
-
getter/setter pair
- geomFact ↔ GeometryFactory?
-
getter/setter pair
- graph ↔ PlanarGraph?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInvertOrientation ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- workingNoder ↔ Noder?
-
getter/setter pair
- workingPrecisionModel ↔ PrecisionModel?
-
getter/setter pair
Methods
-
buffer(
Geometry g, double distance) → Geometry -
buildSubgraphs(
List subgraphList, PolygonBuilder polyBuilder) → void - Completes the building of the input subgraphs by depth-labelling them, and adds them to the PolygonBuilder. The subgraph list must be sorted in rightmost-coordinate order.
-
computeNodedEdges(
List bufferSegStrList, PrecisionModel precisionModel) → void -
createEmptyResultGeometry(
) → Geometry - Gets the standard result for an empty buffer. Since buffer always returns a polygonal result, this is chosen to be an empty polygon.
-
createSubgraphs(
PlanarGraph graph) → List -
getNoder(
PrecisionModel precisionModel) → Noder -
insertUniqueEdge(
Edge e) → void - 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.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setNoder(
Noder noder) → void - Sets the {@link Noder} to use during noding. This allows choosing fast but non-robust noding, or slower but robust noding.
-
setWorkingPrecisionModel(
PrecisionModel pm) → void - 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.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
convertSegStrings(
Iterator it) → Geometry -
depthDelta(
Label label) → int - Compute the change in depth as an edge is crossed from R to L