mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-01 20:40:28 +02:00
optimization
This commit is contained in:
@@ -22,10 +22,7 @@ module sf_thickenT(points, thickness, triangles = undef, direction = "BOTH", con
|
|||||||
|
|
||||||
leng_pts = len(points);
|
leng_pts = len(points);
|
||||||
range = [0:leng_pts - 1];
|
range = [0:leng_pts - 1];
|
||||||
conn_indices_tris = [
|
conn_indices_tris = [for(tri = real_triangles, i = tri) [i, tri]];
|
||||||
for(tri = real_triangles, i = range)
|
|
||||||
if(contains(tri, i)) [i, tri]
|
|
||||||
];
|
|
||||||
|
|
||||||
if(is_list(direction)) {
|
if(is_list(direction)) {
|
||||||
dir_v = direction / norm(direction);
|
dir_v = direction / norm(direction);
|
||||||
|
Reference in New Issue
Block a user