Ear cutting for polygons, a method for constrained triangulation.
earcut(x, holes = NULL, ...) # S3 method for default earcut(x, holes = NULL, ...)
| x | object to triangulate, any convertible to silicate PATH |
|---|---|
| holes | 1-based index indicating where hole/s begin |
| ... | arguments passed to methods |
index triplets of triangles from vertex pool