1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 01:04:07 +02:00
This commit is contained in:
Justin Lin
2020-09-20 17:41:18 +08:00
parent cb2533a911
commit a1686c4fea

View File

@@ -29,10 +29,11 @@ function height(leng) =
function vts(leng) =
let(
half_leng = leng / 2,
vt1 = [half_leng, 0, 0],
vt2 = [0, leng * sin(60), 0],
vt3 = [-half_leng, 0, 0],
vt4 = [0, half_leng * tan(30), height(leng)]
center_y = half_leng * tan(30),
vt1 = [half_leng, - center_y, 0],
vt2 = [0, leng * sin(60) - center_y, 0],
vt3 = [-half_leng, -center_y, 0],
vt4 = [0, 0, height(leng)]
) [vt1, vt2, vt3, vt4];
module string_tetrahedron(leng, thickness, segs_per_side, line_fn) {