mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-18 20:41:18 +02:00
refactor
This commit is contained in:
@@ -61,14 +61,15 @@ module path_extrude(shape_pts, path_pts, triangles = "SOLID", twist = 0, scale =
|
|||||||
let(
|
let(
|
||||||
vt0 = pth_pts[j] - pth_pts[j - 1],
|
vt0 = pth_pts[j] - pth_pts[j - 1],
|
||||||
vt1 = pth_pts[j + 1] - pth_pts[j],
|
vt1 = pth_pts[j + 1] - pth_pts[j],
|
||||||
a = acos((vt0 * vt1) / (norm(vt0) * norm(vt1)))
|
a = acos((vt0 * vt1) / (norm(vt0) * norm(vt1))),
|
||||||
|
v = cross(vt0, vt1)
|
||||||
)
|
)
|
||||||
rotate_pts(
|
rotate_pts(
|
||||||
local_rotate_section(j - 1, init_a, init_s),
|
local_rotate_section(j - 1, init_a, init_s),
|
||||||
a,
|
a,
|
||||||
cross(vt0, vt1)
|
v
|
||||||
);
|
);
|
||||||
|
|
||||||
function sections() =
|
function sections() =
|
||||||
let(
|
let(
|
||||||
fst_section =
|
fst_section =
|
||||||
|
Reference in New Issue
Block a user