mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-06 15:36:30 +02:00
Added convexity parameter to clip().
This commit is contained in:
@@ -6883,7 +6883,7 @@ Original version by Doug Moen on the OpenSCAD forum
|
|||||||
| Module | Description |
|
| Module | Description |
|
||||||
|:--- |:--- |
|
|:--- |:--- |
|
||||||
| `box(xmin, ymin, zmin, xmax, ymax, zmax)` | Construct a box given its bounds |
|
| `box(xmin, ymin, zmin, xmax, ymax, zmax)` | Construct a box given its bounds |
|
||||||
| `clip(xmin = -inf, ymin = -inf, zmin = -inf, xmax = inf, ymax = inf, zmax = inf)` | Clip child to specified boundaries |
|
| `clip(xmin = -inf, ymin = -inf, zmin = -inf, xmax = inf, ymax = inf, zmax = inf, convexity = 1)` | Clip child to specified boundaries |
|
||||||
|
|
||||||

|

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