1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 10:14:41 +02:00
This commit is contained in:
Justin Lin
2019-09-21 08:25:26 +08:00
parent 6b906292aa
commit 386e8b934e

View File

@@ -40,11 +40,12 @@ function _bspline_curve_nvi(v, i, l, t, degree, knots) =
function _bspline_curve_nvl(v, l, s, t, degree, knots, i) = function _bspline_curve_nvl(v, l, s, t, degree, knots, i) =
i == (s - degree - 1 + l) ? v : i == (s - degree - 1 + l) ? v :
let( let(
leng_v = len(v),
nvi = _bspline_curve_nvi(v, i, l, t, degree, knots), nvi = _bspline_curve_nvi(v, i, l, t, degree, knots),
nv = concat( nv = concat(
[for(j = 0; j < i; j = j + 1) v[j]], [for(j = 0; j < i; j = j + 1) v[j]],
nvi, nvi,
[for(j = i + 1; j < len(v); j = j + 1) v[j]] [for(j = i + 1; j < leng_v; j = j + 1) v[j]]
) )
) )
_bspline_curve_nvl(nv, l, s, t, degree, knots, i - 1); _bspline_curve_nvl(nv, l, s, t, degree, knots, i - 1);