74 rotate_extrude(
angle = ra)
120 sn = (m == 0) ? ceil(
get_fn(r) * ra/360)
121 : ceil(sqrt(
get_fn(r) * ra/360));
128 rotate(sa * f - so/2)
129 rotate_extrude(
angle = sa + so)
187 [+lx/2, +ly/2, 0, 1],
188 [-lx/2, +ly/2, 90, 3],
189 [-lx/2, -ly/2, 180, 5],
190 [+lx/2, -ly/2, 270, 7]
195 translate([i[0], i[1], 0])
205 [ +r +lx/2, +ly/2, 0, ly, 0],
206 [ -lx/2, +r +ly/2, 90, lx, 2],
207 [ -r -lx/2, -ly/2, 180, ly, 4],
208 [ lx/2, -r -ly/2, 270, lx, 6]
213 translate([i[0], i[1], 0])
214 rotate([90, 0, i[2]])
215 translate([0, 0, -
eps])
216 linear_extrude(height=i[3] +
eps*2)
269 if ( is_undef(h) || (c ==
false) )
275 linear_extrude(height=h + ha, center=center)
283 su = is_list(ss) ? ss : [ss];
286 sv = (len(su) == 1) ? concat(su, su) : su;
292 translate(center==
true ? [0, 0, -ht/2] :
origin3d)
296 nl = is_list(sv[f+1]);
300 : !cl && nl ? [
first(sv[f+1])/ sv[f] ,
second(sv[f+1])/ sv[f] ]
303 translate([0, 0, sz * f - so/2])
304 linear_extrude(height=sz + so, scale=es)
345 if ( is_undef(h) || (c ==
false) )
351 linear_extrude(height=h, center=center)
357 hv = [
for (e=h) is_list(e) ?
first(e) : e];
363 translate(center==
true ? [0, 0, -ht/2] :
origin3d)
367 tv = (f == 0) ? [0] : [
for (g=[0:f-1]) is_list(h[g]) ?
first(h[g]) : h[g] ];
371 translate([0, 0, tt - so/2])
origin3d
<point-3d> The origin point coordinate in 3-dimensional Euclidean space.
eps
<decimal> Epsilon, small distance to deal with overlapping shapes.
function binary_bit_is(v, b, t=1)
Test if a binary bit position of an integer value equals a test bit.
function defined_e_or(v, i, d)
Return an element of an iterable when it exists or a default value otherwise.
function second(v)
Return the second element of an iterable value.
function first(v)
Return the first element of an iterable value.
function sum(v, i1, i2)
Compute the sum of a list of numbers.
function is_scalar(v)
Test if a value is a single non-iterable value.
function get_fn(r)
Return facets number for the given arc radius.
function angle(a, from=angle_unit_default, to=angle_unit_base)
Convert an angle from some units to another.