fix path_sweep bug where it fails on paths with a "not a region" error

This commit is contained in:
Adrian Mariano 2024-02-18 10:21:27 -05:00
parent 4d3c12a22c
commit 0297623063

View file

@ -1653,7 +1653,7 @@ module offset_sweep(path, height,
if (in_list(atype,["hull","intersect"])){
h=first_defined([h,l,height]);
attachable(anchor,spin,orient,region=[path],h=h,extent=atype=="hull",cp=cp){
attachable(anchor,spin,orient,region=force_region(path),h=h,extent=atype=="hull",cp=cp){
down(h/2)polyhedron(vnf[0],vnf[1],convexity=convexity);
children();
}