1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00

refactor: use max

This commit is contained in:
Justin Lin 2022-05-10 16:40:33 +08:00
parent cf61ba06c2
commit de97253d92

View File

@ -1,3 +1,4 @@
function __frags(radius) =
$fn == 0 ? max(min(360 / $fa, radius * 6.283185307179586 / $fs), 5) :
$fn >= 3 ? $fn : 3;
$fn == 0 ?
max(min(360 / $fa, radius * 6.283185307179586 / $fs), 5) :
max($fn, 3);