mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Update utility.scad
Fixed typo in segs() example 1
This commit is contained in:
parent
38f898394e
commit
46399761bb
1 changed files with 1 additions and 1 deletions
|
@ -779,7 +779,7 @@ function scalar_vec3(v, dflt) =
|
||||||
// r = Radius of circle to get the number of segments for.
|
// r = Radius of circle to get the number of segments for.
|
||||||
// Example:
|
// Example:
|
||||||
// $fn=12; sides=segs(10); // Returns: 12
|
// $fn=12; sides=segs(10); // Returns: 12
|
||||||
// $fa=2; $fs=3, sides=segs(10); // Returns: 21
|
// $fa=2; $fs=3; sides=segs(10); // Returns: 21
|
||||||
function segs(r) =
|
function segs(r) =
|
||||||
$fn>0? ($fn>3? $fn : 3) :
|
$fn>0? ($fn>3? $fn : 3) :
|
||||||
let( r = is_finite(r)? r : 0 )
|
let( r = is_finite(r)? r : 0 )
|
||||||
|
|
Loading…
Reference in a new issue