1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-20 21:41:41 +02:00

simplify subdivid

This commit is contained in:
Justin Lin
2021-08-11 17:48:01 +08:00
parent 428af98b5d
commit 9b0c825f92

View File

@@ -25,8 +25,8 @@ function _sub_obtuse(a, b, c) =
PHI = 1.618033988749895,
q = b + (a - b) / PHI,
r = b + (c - b) / PHI
)
[["obtuse", r, c, a], ["obtuse", q, r, b], ["acute", r, q, a]];
)
concat([["obtuse", r, c, a]], _sub_acute(b, a, r));
function _penrose3(triangles, n, i = 0) =
i == n ? triangles :