Ear cutting for polygons, a method for constrained triangulation.

earcut(x, holes = NULL, ...)

# S3 method for default
earcut(x, holes = NULL, ...)

Arguments

x

object to triangulate, any convertible to silicate PATH

holes

1-based index indicating where hole/s begin

...

arguments passed to methods

Value

index triplets of triangles from vertex pool