1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-18 20:41:18 +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( 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 =