Пример #1
0
 /// <summary>
 /// Sets the sites (point or vertices) which will be diagrammed
 /// from a collection of <see cref="Coordinate"/>s.
 /// </summary>
 /// <param name="coords">a collection of Coordinates.</param>
 public void SetSites(ICollection <Coordinate> coords)
 {
     // remove any duplicate points (they will cause the triangulation to fail)
     _siteCoords = DelaunayTriangulationBuilder.Unique(CoordinateArrays.ToCoordinateArray(coords));
 }
Пример #2
0
 /// <summary>
 /// Sets the sites (point or vertices) which will be triangulated.
 /// All vertices of the given geometry will be used as sites.
 /// The site vertices do not have to contain the constraint
 /// vertices as well; any site vertices which are
 /// identical to a constraint vertex will be removed
 /// from the site vertex set.
 /// </summary>
 /// <remarks>The geometry from which the sites will be extracted.</remarks>
 public void SetSites(IGeometry sites)
 {
     _siteCoords = DelaunayTriangulationBuilder.ExtractUniqueCoordinates(sites);
 }
Пример #3
0
 /// <summary>
 /// Sets the sites (point or vertices) which will be diagrammed.
 /// All vertices of the given geometry will be used as sites.
 /// </summary>
 /// <param name="geom">geom the geometry from which the sites will be extracted.</param>
 public void SetSites(IGeometry geom)
 {
     // remove any duplicate points (they will cause the triangulation to fail)
     _siteCoords = DelaunayTriangulationBuilder.ExtractUniqueCoordinates(geom);
 }