1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-10 00:36:40 +02:00

use foreach

This commit is contained in:
Justin Lin
2022-05-15 10:04:35 +08:00
parent fcf97a77e1
commit 22dfa7da2d

View File

@@ -18,10 +18,9 @@ function sf_splines(ctrl_pts, row_spline, column_spline) =
for(r = 0; r < leng_ctrl_pts; r = r + 1)
row_spline(ctrl_pts[r])
],
leng_r_pts0 = len(r_pts[0]),
leng_r_pts = len(r_pts)
leng_r_pts0 = len(r_pts[0])
)
m_transpose([
for(c = 0; c < leng_r_pts0; c = c + 1)
cspline([for(r = 0; r < leng_r_pts; r = r + 1) r_pts[r][c]])
cspline([for(pts = r_pts) pts[c]])
]);