mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-29 03:47:45 +01:00
clean code
This commit is contained in:
parent
87f3fcb105
commit
56b0a371b3
@ -4,12 +4,9 @@ use <../util/sum.scad>;
|
||||
use <../util/contains.scad>;
|
||||
|
||||
function _vertex_normals(points, faces) =
|
||||
let(
|
||||
leng_pts = len(points),
|
||||
cnn_indices_faces = [for(face = faces, i = face) [i, face]]
|
||||
)
|
||||
let(cnn_indices_faces = [for(face = faces, i = face) [i, face]])
|
||||
[
|
||||
for(i = [0:leng_pts - 1])
|
||||
for(i = [0:len(points) - 1])
|
||||
let(
|
||||
indices = search(i, cnn_indices_faces, num_returns_per_match = 0),
|
||||
face_normals = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user