mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 17:24:20 +02:00
accept n = 0
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
use <_impl/_tri_subdivide_impl.scad>
|
use <_impl/_tri_subdivide_impl.scad>
|
||||||
|
|
||||||
function tri_subdivide(shape_pts, n) =
|
function tri_subdivide(shape_pts, n) =
|
||||||
|
n == 0 ? [shape_pts] :
|
||||||
let(
|
let(
|
||||||
pts = _tri_subdivide_pts(shape_pts, n),
|
pts = _tri_subdivide_pts(shape_pts, n),
|
||||||
indices = _tri_subdivide_indices(n)
|
indices = _tri_subdivide_indices(n)
|
||||||
|
Reference in New Issue
Block a user