mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-06 19:26:28 +02:00
slice() cleanup tweak.
This commit is contained in:
2
vnf.scad
2
vnf.scad
@@ -481,7 +481,7 @@ function _triangulate_planar_convex_polygons(polys) =
|
|||||||
tris = [for (poly=polys) if (len(poly)==3) poly],
|
tris = [for (poly=polys) if (len(poly)==3) poly],
|
||||||
bigs = [for (poly=polys) if (len(poly)>3) poly],
|
bigs = [for (poly=polys) if (len(poly)>3) poly],
|
||||||
newtris = [for (poly=bigs) select(poly,-2,0)],
|
newtris = [for (poly=bigs) select(poly,-2,0)],
|
||||||
newbigs = [for (poly=bigs) list_head(poly)],
|
newbigs = [for (poly=bigs) select(poly,0,-2)],
|
||||||
newtris2 = _triangulate_planar_convex_polygons(newbigs),
|
newtris2 = _triangulate_planar_convex_polygons(newbigs),
|
||||||
outtris = concat(tris, newtris, newtris2)
|
outtris = concat(tris, newtris, newtris2)
|
||||||
) outtris;
|
) outtris;
|
||||||
|
Reference in New Issue
Block a user