1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-14 02:34:12 +02:00
This commit is contained in:
Justin Lin
2022-05-05 06:29:12 +08:00
parent 0414c440a3
commit 2f274c299b

View File

@@ -54,9 +54,11 @@ function _bspline_curve_interpolate(t, degree, points, knots, weights) =
], ],
ts = _bspline_curve_ts(t, degree, kts), ts = _bspline_curve_ts(t, degree, kts),
s = ts[1], s = ts[1],
nv = _bspline_curve_v(v, s, ts[0], degree, kts, d) nv = _bspline_curve_v(v, s, ts[0], degree, kts, d),
nvs = nv[s],
nvsd = nvs[d]
) )
[for(i = 0; i < d; i = i + 1) nv[s][i] / nv[s][d]]; [for(i = 0; i < d; i = i + 1) nvs[i] / nvsd];
function _bspline_curve_impl(t_step, degree, points, knots, weights) = function _bspline_curve_impl(t_step, degree, points, knots, weights) =
let(n = len(points)) let(n = len(points))