Update geometry.scad

This commit is contained in:
RonaldoCMP 2021-10-14 12:37:48 -03:00
parent 6b542191ce
commit 2d5ce3b191

View file

@ -1680,7 +1680,7 @@ function polygon_triangulate(poly, ind, eps=EPSILON) =
let(
ind = deduplicate_indexed(poly, ind, eps)
)
assert(len(ind)>=3 , "The polygon vertices are collinear.")
len(ind)<3 ? [] :
let(
pts = select(poly,ind),
nrm = polygon_normal(pts)