mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-16 19:54:29 +02:00
optimization
This commit is contained in:
@@ -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])
|
||||||
|
Reference in New Issue
Block a user