1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 06:08:31 +01:00

optimization

This commit is contained in:
Justin Lin 2022-05-14 12:00:26 +08:00
parent 7d25a25a69
commit df4b2c702d

View File

@ -22,10 +22,7 @@ module sf_thickenT(points, thickness, triangles = undef, direction = "BOTH", con
leng_pts = len(points);
range = [0:leng_pts - 1];
conn_indices_tris = [
for(tri = real_triangles, i = range)
if(contains(tri, i)) [i, tri]
];
conn_indices_tris = [for(tri = real_triangles, i = tri) [i, tri]];
if(is_list(direction)) {
dir_v = direction / norm(direction);