1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-16 19:54:29 +02:00

optimization

This commit is contained in:
Justin Lin
2022-05-14 11:56:53 +08:00
parent 04a78738e9
commit 7d25a25a69

View File

@@ -7,10 +7,7 @@ function _vertex_normals(points, faces) =
let( let(
leng_pts = len(points), leng_pts = len(points),
range = [0:leng_pts - 1], range = [0:leng_pts - 1],
cnn_indices_faces = [ cnn_indices_faces = [for(face = faces, i = face) [i, face]]
for(face = faces, i = range)
if(contains(face, i)) [i, face]
]
) )
[ [
for(i = [0:leng_pts - 1]) for(i = [0:leng_pts - 1])