121     translate(fo) rotate(tr)
 
  123       linear_extrude(fh, center=
true)
 
  124       text(str(i), size=fs, halign="center", valign="center");
 
  126       text(str(i), size=fs, halign="center", valign="center");
 
  138     translate(fo) rotate(tr)
 
  140       linear_extrude(fh, center=
true)
 
  141       text(str(i), size=fs, halign="center", valign="center");
 
  143       text(str(i), size=fs, halign="center", valign="center");
 
  155     translate(fo) rotate(tr)
 
  157       linear_extrude(fh, center=
true)
 
  158       text(str(i), size=fs, halign="center", valign="center");
 
  160       text(str(i), size=fs, halign="center", valign="center");
 
  237   if (
is_between(vc, 0, $children-1) && ($children > 0))
 
  251   if (
is_between(fc, 0, $children-1) && ($children > 0))
 
  265   if (
is_between(ec, 0, $children-1) && ($children > 0))
 
  317     translate([b[0][0], b[1][0], b[2][0]])
 
  318     cube([b[0][1]-b[0][0], b[1][1]-b[1][0], b[2][1]-b[2][0]]);
 
  320     translate([b[0][0], b[1][0]])
 
  321     square([b[0][1]-b[0][0], b[1][1]-b[1][0]]);
 
z_axis3d_uv
<vector-3d> The unit vector of the positive z-axis in 3d Euclidean space.
 
function point_to_3d(p)
Return 3d point unchanged or add a zeroed third dimension to 2d point.
 
function distance_pp(p1, p2)
Compute the distance between two points.
 
function second(v)
Return the second element of an iterable value.
 
function first(v)
Return the first element of an iterable value.
 
function index_gen(l, s=true, rs)
Create a element selection index list for a given list of values.
 
function mean(v)
Compute the mean/average of a list of numbers.
 
function consts(l, v, u=false)
Create a list of constant or incrementing elements.
 
function defined_or(v, d)
Return given value, if defined, or a secondary value, if primary is not defined.
 
function is_nan(v)
Test if a numerical value is 'nan' (not a number).
 
function is_between(v, l, u)
Test if a numerical value is between an upper and lower bounds.
 
function is_defined(v)
Test if a value is defined.
 
function polytope_edge_normal(c, f, e, i)
Get a normal vector for a polytope edge.
 
function polytope_faces2edges(f)
List the edge coordinate index pairs of a polytope.
 
function polytope_face_normal(c, f, i, l, cw=true)
Get the normal vector of a polytope face.
 
function polytope_face_mean(c, f, i, l)
Get the mean coordinate of all vertices of a polytope face.
 
function polytope_limits(c, f, a, d, s=true)
Determine the bounding limits of a polytope.
 
function polytope_vertex_normal(c, f, i)
Get a normal vector for a polytope vertex.