Пример #1
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);
 }
Пример #2
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);
 }