1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 18:24:28 +02:00

support negative deep

This commit is contained in:
Justin Lin
2021-07-12 13:54:39 +08:00
parent 82e328dc56
commit c4075b886d

View File

@@ -140,8 +140,13 @@ module polyhedron_frame(points, faces, deep, outer_thickness, inner_thickness =
[for(i = face) leng_outer_inner + i] [for(i = face) leng_outer_inner + i]
]); ]);
if(deep > 0) {
polyhedron(all_points, all_faces); polyhedron(all_points, all_faces);
} }
else {
polyhedron(all_points, [for(f = all_faces) reverse(f)]);
}
}
/* /*
use <experimental/polyhedron_frame.scad>; use <experimental/polyhedron_frame.scad>;