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.
Param | Type | Description |
---|---|---|
g | number | The geometry pointer whose vertices to triangulate. |
tolerance | number | The snapping tolerance to use for improved robustness. A tolerance of 0.0 specifies that no snapping will take place. |
onlyEdges | number | If 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.
Param | Type | Description |
---|---|---|
handle | number | The GEOS context pointer handle. |
g | number | The geometry pointer whose vertices to triangulate. |
tolerance | number | The snapping tolerance to use for improved robustness. A tolerance of 0.0 specifies that no snapping will take place. |
onlyEdges | number | If 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. |