Skip to content
On this page

geos.GEOSDelaunayTriangulation ⇒ number

Computes a Delaunay triangulation of the vertices of the given geometry.

Kind: Exported member
Returns: number - A pointer to the geometry representing the Delaunay triangulation. Returns NULL on exception.

ParamTypeDescription
gnumberThe geometry pointer whose vertices to triangulate.
tolerancenumberThe snapping tolerance to use for improved robustness. A tolerance of 0.0 specifies that no snapping will take place.
onlyEdgesnumberIf non-zero, only the edges of the triangulation will be returned, forming a multilinestring. If zero, the triangles will be returned as a collection of polygons.

geos.GEOSDelaunayTriangulation_r ⇒ number

Computes a Delaunay triangulation of the vertices of the given geometry using a GEOS context handle.

Kind: Exported member
Returns: number - A pointer to the geometry representing the Delaunay triangulation. Returns NULL on exception.

ParamTypeDescription
handlenumberThe GEOS context pointer handle.
gnumberThe geometry pointer whose vertices to triangulate.
tolerancenumberThe snapping tolerance to use for improved robustness. A tolerance of 0.0 specifies that no snapping will take place.
onlyEdgesnumberIf non-zero, only the edges of the triangulation will be returned, forming a multilinestring. If zero, the triangles will be returned as a collection of polygons.