mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-09 00:06:42 +02:00
refactor
This commit is contained in:
@@ -9,12 +9,12 @@
|
||||
**/
|
||||
|
||||
function path_scaling_sections(shape_pts, edge_path) =
|
||||
let(base_leng = norm(edge_path[0]))
|
||||
let(pts = shape_pts / norm(edge_path[0]))
|
||||
[
|
||||
for(i = [len(edge_path) - 1:-1:0])
|
||||
let(edge_p = edge_path[i], s = norm([edge_p.x, edge_p.y] / base_leng))
|
||||
let(edge_p = edge_path[i])
|
||||
[
|
||||
for(p = shape_pts * s)
|
||||
for(p = pts * norm([edge_p.x, edge_p.y]))
|
||||
[each p, edge_p.z]
|
||||
]
|
||||
];
|
Reference in New Issue
Block a user