/** * Gets the {@link QuadEdgeSubdivision} which models the computed diagram. * * @return the subdivision containing the triangulation */ public QuadEdgeSubdivision getSubdivision() { create(); return subdiv; }
/** * Gets the faces of the computed diagram as a {@link GeometryCollection} * of {@link Polygon}s, clipped as specified. * * @param geomFact the geometry factory to use to create the output * @return the faces of the diagram */ public Geometry getDiagram(GeometryFactory geomFact) { create(); Geometry polys = subdiv.getVoronoiDiagram(geomFact); // clip polys to diagramEnv return clipGeometryCollection(polys, diagramEnv); }
/** * Gets the {@link QuadEdgeSubdivision} which models the computed diagram. * * @return the subdivision containing the triangulation */ public QuadEdgeSubdivision getSubdivision() { create(); return subdiv; }
/** * Gets the faces of the computed diagram as a {@link GeometryCollection} * of {@link Polygon}s, clipped as specified. * <p> * The <tt>userData</tt> attribute of each face <tt>Polygon</tt> is set to * the <tt>Coordinate</tt> of the corresponding input site. * This allows using a <tt>Map</tt> to link faces to data associated with sites. * * @param geomFact the geometry factory to use to create the output * @return a <tt>GeometryCollection</tt> containg the face <tt>Polgyon</tt>s of the diagram */ public Geometry getDiagram(GeometryFactory geomFact) { create(); Geometry polys = subdiv.getVoronoiDiagram(geomFact); // clip polys to diagramEnv return clipGeometryCollection(polys, diagramEnv); }