mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-30 09:49:59 +02:00
add ret param
This commit is contained in:
@@ -3,5 +3,8 @@
|
||||
**/
|
||||
|
||||
use <experimental/_impl/_tri_ear_clipping_impl.scad>;
|
||||
|
||||
function tri_ear_clipping(shape_pts, epsilon = 0.0001) = _tri_ear_clipping_impl(shape_pts, epsilon);
|
||||
|
||||
// ret: "TRI_SHAPES", "TRI_INDICES"
|
||||
function tri_ear_clipping(shape_pts, ret = "TRI_INDICES", epsilon = 0.0001) =
|
||||
let(tris = _tri_ear_clipping_impl(shape_pts, epsilon))
|
||||
ret == "TRI_INDICES" ? tris : [for(tri = tris) [for(idx = tri) shape_pts[idx]]];
|
Reference in New Issue
Block a user