From 0416c449f54b472bf8cea8b1405d282a7cb19c41 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sat, 11 Jan 2020 11:39:54 +0800 Subject: [PATCH] refactor --- src/__comm__/__frags.scad | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/__comm__/__frags.scad b/src/__comm__/__frags.scad index 9b929dc6..8bab1343 100644 --- a/src/__comm__/__frags.scad +++ b/src/__comm__/__frags.scad @@ -1,3 +1,3 @@ -function __frags(radius) = $fn > 0 ? - ($fn >= 3 ? $fn : 3) : - max(min(360 / $fa, radius * PI * 2 / $fs), 5); \ No newline at end of file +function __frags(radius) = + $fn == 0 ? max(min(360 / $fa, radius * PI * 2 / $fs), 5) : + $fn >= 3 ? $fn : 3; \ No newline at end of file