public class PolygonBuilder extends Object
Polygons out of a graph of DirectedEdges.
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(Collection<DirectedEdge> dirEdges,
Collection<Node> nodes)
Add a set of edges and nodes, which form a graph.
|
void |
add(PlanarGraph graph)
Add a complete graph.
|
boolean |
containsPoint(Point point)
Checks the current set of shells (with their associated holes) to
see if any of them contain the point.
|
List<Polygon> |
getPolygons() |
public PolygonBuilder(GeometryFactory geometryFactory)
public void add(Collection<DirectedEdge> dirEdges, Collection<Node> nodes)
public void add(PlanarGraph graph)
public boolean containsPoint(Point point)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.