View source: R/sf_to_trimesh.R
Uses RTriangle for Constrained Delaunay Triangulation. Can handle complex shapes comprised of multiple polygons with holes.
1 | sf_to_trimesh(a_mulitpoly_sf, n_tris = NULL)
|
a_mulitpoly_sf |
a simple features (sf) geometry containing a single multipolygon. |
n_tris |
approximate number of triangles to uses. This argument is used to set the max triangle size in RTriangle as 'polygon bounding box area'/'n_tris'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.