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-10-03 17:55:29 +08:00
parent 3577813f62
commit 0aa52ae97f
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ module petals(fibseq, i = 0) {
module lotus_like_flower(spirals, petals_per_spiral) {
step_angle = 360 / spirals;
fibseq = fibonacci_sequence(1, petals_per_spiral + 1);
fibseq = fibseq(1, petals_per_spiral + 1);
for(i = [0:spirals - 1]) {
rotate(i * step_angle)

View File

@@ -8,7 +8,7 @@ function _fibonacci_sequence(seq, n, i = 2) =
i + 1
);
function fibonacci_sequence(from, to) =
function fibseq(from, to) =
let(f = __fast_fibonacci(from))
from == to ? [f] :
_fibonacci_sequence(