1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 09:44:16 +02:00
This commit is contained in:
Justin Lin
2020-09-20 20:45:22 +08:00
parent a1686c4fea
commit 182c6369d5

View File

@@ -6,6 +6,8 @@ segs_per_side = 20;
line_fn = 5; line_fn = 5;
model = "Tetrahedron"; // [Tetrahedron, Base, Both] model = "Tetrahedron"; // [Tetrahedron, Base, Both]
module string_tetrahedron(leng, thickness, segs_per_side, line_fn) {
module lines_between(side1, side2, thickness, segs) { module lines_between(side1, side2, thickness, segs) {
function pts(p1, p2, segs) = function pts(p1, p2, segs) =
let( let(
@@ -36,7 +38,6 @@ function vts(leng) =
vt4 = [0, 0, height(leng)] vt4 = [0, 0, height(leng)]
) [vt1, vt2, vt3, vt4]; ) [vt1, vt2, vt3, vt4];
module string_tetrahedron(leng, thickness, segs_per_side, line_fn) {
$fn = line_fn; $fn = line_fn;
half_leng = leng / 2; half_leng = leng / 2;