public class PolygonBuilder
extends java.lang.Object
Polygon
s out of a graph of DirectedEdge
s.
The edges to use are marked as being in the result Area.
Constructor and Description |
---|
PolygonBuilder(GeometryFactory geometryFactory) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.Collection dirEdges,
java.util.Collection nodes)
Add a set of edges and nodes, which form a graph.
|
void |
add(PlanarGraph graph)
Add a complete graph.
|
boolean |
containsPoint(Coordinate p)
Checks the current set of shells (with their associated holes) to
see if any of them contain the point.
|
java.util.List |
getPolygons() |
public PolygonBuilder(GeometryFactory geometryFactory)
public void add(PlanarGraph graph)
public void add(java.util.Collection dirEdges, java.util.Collection nodes)
public java.util.List getPolygons()
public boolean containsPoint(Coordinate p)