/** * Inserts all sites in a collection * * @param vertices a collection of ConstraintVertex */ private void insertSites(Collection vertices) { Debug.println("Adding sites: " + vertices.size()); for (Iterator i = vertices.iterator(); i.hasNext();) { ConstraintVertex v = (ConstraintVertex) i.next(); insertSite(v); } }
/** * Inserts a site into the triangulation, maintaining the conformal Delaunay property. * This can be used to further refine the triangulation if required * (e.g. to approximate the medial axis of the constraints, * or to improve the grading of the triangulation). * * @param p the location of the site to insert */ public void insertSite(Coordinate p) { insertSite(createVertex(p)); }
ConstraintVertex insertedVertex = insertSite(splitVertex); if (!insertedVertex.getCoordinate().equals2D(splitPt)) { Debug.println("Split pt snapped to: " + insertedVertex);
/** * Inserts all sites in a collection * * @param vertices a collection of ConstraintVertex */ private void insertSites(Collection vertices) { Debug.println("Adding sites: " + vertices.size()); for (Iterator i = vertices.iterator(); i.hasNext();) { ConstraintVertex v = (ConstraintVertex) i.next(); insertSite(v); } }
/** * Inserts a site into the triangulation, maintaining the conformal Delaunay property. * This can be used to further refine the triangulation if required * (e.g. to approximate the medial axis of the constraints, * or to improve the grading of the triangulation). * * @param p the location of the site to insert */ public void insertSite(Coordinate p) { insertSite(createVertex(p)); }
ConstraintVertex insertedVertex = insertSite(splitVertex); if (!insertedVertex.getCoordinate().equals2D(splitPt)) { Debug.println("Split pt snapped to: " + insertedVertex);