mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 17:24:20 +02:00
use foreach
This commit is contained in:
@@ -18,10 +18,9 @@ function sf_splines(ctrl_pts, row_spline, column_spline) =
|
|||||||
for(r = 0; r < leng_ctrl_pts; r = r + 1)
|
for(r = 0; r < leng_ctrl_pts; r = r + 1)
|
||||||
row_spline(ctrl_pts[r])
|
row_spline(ctrl_pts[r])
|
||||||
],
|
],
|
||||||
leng_r_pts0 = len(r_pts[0]),
|
leng_r_pts0 = len(r_pts[0])
|
||||||
leng_r_pts = len(r_pts)
|
|
||||||
)
|
)
|
||||||
m_transpose([
|
m_transpose([
|
||||||
for(c = 0; c < leng_r_pts0; c = c + 1)
|
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]])
|
||||||
]);
|
]);
|
||||||
|
Reference in New Issue
Block a user