Class PolygonBuilder

Hierarchy: Object , PolygonBuilder
public class PolygonBuilder
Forms Polygons out of a graph of DirectedEdges. The edges to use are marked as being in the result Area.

Other

  • version: 1.7
public PolygonBuilder(GeometryFactory geometryFactory)
public void add(PlanarGraph graph)
Add a complete graph. The graph is assumed to contain one or more polygons, possibly with holes.
public void add(Collection dirEdges, Collection nodes)
Add a set of edges and nodes, which form a graph. The graph is assumed to contain one or more polygons, possibly with holes.
public List getPolygons()