1
0
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:
Justin Lin
2022-08-02 07:53:08 +08:00
parent b33e725523
commit ef07707cdb

View File

@@ -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)