mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-24 07:13:34 +02:00
rename
This commit is contained in:
@@ -38,7 +38,7 @@ module petals(fibseq, i = 0) {
|
|||||||
module lotus_like_flower(spirals, petals_per_spiral) {
|
module lotus_like_flower(spirals, petals_per_spiral) {
|
||||||
step_angle = 360 / spirals;
|
step_angle = 360 / spirals;
|
||||||
|
|
||||||
fibseq = fibonacci_sequence(1, petals_per_spiral + 1);
|
fibseq = fibseq(1, petals_per_spiral + 1);
|
||||||
|
|
||||||
for(i = [0:spirals - 1]) {
|
for(i = [0:spirals - 1]) {
|
||||||
rotate(i * step_angle)
|
rotate(i * step_angle)
|
||||||
|
@@ -8,7 +8,7 @@ function _fibonacci_sequence(seq, n, i = 2) =
|
|||||||
i + 1
|
i + 1
|
||||||
);
|
);
|
||||||
|
|
||||||
function fibonacci_sequence(from, to) =
|
function fibseq(from, to) =
|
||||||
let(f = __fast_fibonacci(from))
|
let(f = __fast_fibonacci(from))
|
||||||
from == to ? [f] :
|
from == to ? [f] :
|
||||||
_fibonacci_sequence(
|
_fibonacci_sequence(
|
||||||
|
Reference in New Issue
Block a user