change region_faces to vnf_from_region and move to vnf.scad

remove secret merge option from vnf_triangulate
add examples
add vnf_clean_unrefs
This commit is contained in:
Adrian Mariano
2021-10-14 22:36:21 -04:00
parent acb65b3298
commit cd85b3b1f4
3 changed files with 130 additions and 83 deletions

View File

@@ -1111,8 +1111,8 @@ function sweep(shape, transforms, closed=false, caps, style="min_edge") =
for (rgn=regions) each [
for (path=rgn)
sweep(path, transforms, closed=closed, caps=false),
if (fullcaps[0]) region_faces(rgn, transform=transforms[0], reverse=true),
if (fullcaps[1]) region_faces(rgn, transform=last(transforms)),
if (fullcaps[0]) vnf_from_region(rgn, transform=transforms[0], reverse=true),
if (fullcaps[1]) vnf_from_region(rgn, transform=last(transforms)),
],
],
vnf = vnf_merge(vnfs)