118 _ = assert( r >= 0,
"get_fn: r must be >= 0." )
121 : ($fn > 0.0) ? ($fn >= 3) ? $fn : 3
122 : ceil( max( min(360/$fa, r*
tau/$fs), 5 ) );
213 hv = [
for (i=
unique(v)) [i, len(
find(i, v, 0))]]
221 (sm == 0) ? [for (i=hv) str(
first(i), "x",
second(i))]
226 : (is_list(cs) && len(cs) > 0 ? cs[0] :
empty_str),
229 : (is_list(cs) && len(cs) > 1 ? cs[1] :
empty_str),
232 : (is_list(cs) && len(cs) > 2 ? cs[2] :
empty_str),
235 : (is_list(cs) && len(cs) > 3 ? cs[3] :
empty_str),
240 : (sm==4) ? [undef, undef, ["i", "sup"], ["b", "sup"], undef]
243 : (sm==4) ? [undef, undef, undef, undef, undef, ["br"]]
255 [s1,
first(hv[i]), s2,
second(hv[i]), s3, if ((i<(n-1)) || fm) fs],
256 b=fb, p=fp, a=fa, f=ff, d=d
tau
<decimal> The ratio of a circle's circumference to its radius.
empty_str
<string> A string with no characters (the empty string).
grid_fine
OpenSCAD fine grid limit.
function binary_iw2i(v, s, w)
Decode the binary bits of a bit window to an integer value.
function binary_bit_is(v, b, t=1)
Test if a binary bit position of an integer value equals a test bit.
function unique(v)
Return a list of the unique elements of an iterable value.
function find(mv, v, c=1, i, i1=0, i2)
Find the occurrences of a match value in an iterable value.
function second(v)
Return the second element of an iterable value.
function first(v)
Return the first element of an iterable value.
function strl(v)
Convert a list of values to a concatenated string.
function strl_html(v, b, p, a, f, d=false)
Convert a list of values to a concatenated HTML-formatted string.
function histogram(v, m=0, cs, cb, cp, ca, cf, d=false)
Generate a histogram for the elements of a list of values.
function get_fn(r=0)
Return facets number for the given arc radius.