1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-14 02:34:12 +02:00

fix face_normal error

This commit is contained in:
Justin Lin
2021-06-21 08:45:35 +08:00
parent caabc795cd
commit d06d719468

View File

@@ -18,11 +18,18 @@ function bezier_surface(t_step, ctrl_pts) =
bezier_curve(t_step, ctrl_pts[i])
],
leng_pts0 = len(pts[0]),
leng_pts = len(pts)
leng_pts = len(pts),
sf = [for(x = 0; x < leng_pts0; x = x + 1)
bezier_curve(
t_step,
[for(y = 0; y < leng_pts; y = y + 1) pts[y][x]]
)
]
)
[for(x = 0; x < leng_pts0; x = x + 1)
bezier_curve(
t_step,
[for(y = 0; y < leng_pts; y = y + 1) pts[y][x]]
)
[
for(y = 0; y < len(sf[0]); y = y + 1)
[
for(x = 0; x < len(sf); x = x + 1)
sf[x][y]
]
];