mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-12 09:44:16 +02:00
refactor
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user