/** * Sets the sites (point or vertices) which will be diagrammed * from a collection of {@link Coordinate}s. * * @param coords a collection of Coordinates. */ public void setSites(Collection coords) { // remove any duplicate points (they will cause the triangulation to fail) siteCoords = DelaunayTriangulationBuilder.unique(CoordinateArrays.toCoordinateArray(coords)); }
/** * Sets the sites (vertices) which will be triangulated * from a collection of {@link Coordinate}s. * * @param coords a collection of Coordinates. */ public void setSites(Collection coords) { // remove any duplicate points (they will cause the triangulation to fail) siteCoords = unique(CoordinateArrays.toCoordinateArray(coords)); }
/** * Extracts the unique {@link Coordinate}s from the given {@link Geometry}. * @param geom the geometry to extract from * @return a List of the unique Coordinates */ public static CoordinateList extractUniqueCoordinates(Geometry geom) { if (geom == null) return new CoordinateList(); Coordinate[] coords = geom.getCoordinates(); return unique(coords); }
/** * Sets the sites (vertices) which will be triangulated * from a collection of {@link Coordinate}s. * * @param coords a collection of Coordinates. */ public void setSites(Collection coords) { // remove any duplicate points (they will cause the triangulation to fail) siteCoords = unique(CoordinateArrays.toCoordinateArray(coords)); }
/** * Sets the sites (point or vertices) which will be diagrammed * from a collection of {@link Coordinate}s. * * @param coords a collection of Coordinates. */ public void setSites(Collection coords) { // remove any duplicate points (they will cause the triangulation to fail) siteCoords = DelaunayTriangulationBuilder.unique(CoordinateArrays.toCoordinateArray(coords)); }
/** * Extracts the unique {@link Coordinate}s from the given {@link Geometry}. * @param geom the geometry to extract from * @return a List of the unique Coordinates */ public static CoordinateList extractUniqueCoordinates(Geometry geom) { if (geom == null) return new CoordinateList(); Coordinate[] coords = geom.getCoordinates(); return unique(coords); }