1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-13 02:43:58 +02:00

Mods to allow the manifold experimetal option to be used.

This commit is contained in:
Chris Palmer
2024-02-10 01:05:24 +00:00
parent 9666c018a0
commit 38196e9f78
11 changed files with 21 additions and 12 deletions

View File

@@ -41,7 +41,7 @@ module box(xmin, ymin, zmin, xmax, ymax, zmax) //! Construct a box given its bou
[0,2,3,1]] // left
);
module clip(xmin = -inf, ymin = -inf, zmin = -inf, xmax = inf, ymax = inf, zmax = inf, convexity = 1) //! Clip child to specified boundaries
module clip(xmin = -big, ymin = -big, zmin = -big, xmax = big, ymax = big, zmax = big, convexity = 1) //! Clip child to specified boundaries
render(convexity = convexity) intersection() {
children();

View File

@@ -74,6 +74,10 @@ module render_if(render = true, convexity = 2) //! Renders an object if `re
else
children();
module render_manifold() //! Render if manifold to work around convexity bug in manifold
render_if(manifold)
children();
module extrude_if(h, center = true) //! Extrudes 2D object to 3D when `h` is nonzero, otherwise leaves it 2D
if(h)
linear_extrude(h, center = center, convexity = 5) // 3D