1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-16 03:34:42 +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(
leng_pts = len(points),
range = [0:leng_pts - 1],
cnn_indices_faces = [
for(face = faces, i = range)
if(contains(face, i)) [i, face]
]
cnn_indices_faces = [for(face = faces, i = face) [i, face]]
)
[
for(i = [0:leng_pts - 1])