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

use [each lt, v] to replace concat(lt, [v])

This commit is contained in:
Justin Lin
2022-02-28 11:22:58 +08:00
parent 9a143a9f72
commit e04381bdea
10 changed files with 36 additions and 40 deletions

View File

@@ -55,7 +55,5 @@ function _px_spiral(from, leng, max_leng, clockwise, dir) =
leng > max_leng ? [] : _px_spiral_go_turn(from, leng, max_leng, clockwise, dir);
function px_spiral(init_leng, max_leng, clockwise = false) =
let(
org = [0, 0]
)
concat([org], _px_spiral(org, init_leng, max_leng, clockwise, 0));
let(org = [0, 0])
[org, each _px_spiral(org, init_leng, max_leng, clockwise, 0)];