1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-17 20:11:50 +02:00
This commit is contained in:
Justin Lin
2019-05-03 20:07:38 +08:00
parent 118ee961ee
commit 46777fa403

View File

@@ -61,14 +61,15 @@ module path_extrude(shape_pts, path_pts, triangles = "SOLID", twist = 0, scale =
let(
vt0 = pth_pts[j] - pth_pts[j - 1],
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(
local_rotate_section(j - 1, init_a, init_s),
a,
cross(vt0, vt1)
local_rotate_section(j - 1, init_a, init_s),
a,
v
);
function sections() =
let(
fst_section =