mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-12 17:54:18 +02:00
add convex_intersection_for
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
use <experimental/convex_intersection.scad>;
|
||||
|
||||
function _convex_intersection_for(shapes, pre, leng, i = 2) =
|
||||
i == leng ? pre :
|
||||
_convex_intersection_for(shapes,
|
||||
convex_intersection(pre, shapes[i]),
|
||||
leng, i + 1
|
||||
);
|
10
src/experimental/convex_intersection_for.scad
Normal file
10
src/experimental/convex_intersection_for.scad
Normal file
@@ -0,0 +1,10 @@
|
||||
use <experimental/convex_intersection.scad>;
|
||||
use <experimental/_impl/_convex_intersection_for_impl.scad>;
|
||||
|
||||
function convex_intersection_for(shapes) =
|
||||
let(leng = len(shapes))
|
||||
_convex_intersection_for(
|
||||
shapes,
|
||||
convex_intersection(shapes[0], shapes[1]),
|
||||
leng
|
||||
);
|
Reference in New Issue
Block a user