117 translate(fo) rotate(tr)
119 linear_extrude(fh, center=
true)
120 text(str(i), size=fs, halign="center", valign="center");
122 text(str(i), size=fs, halign="center", valign="center");
134 translate(fo) rotate(tr)
136 linear_extrude(fh, center=
true)
137 text(str(i), size=fs, halign="center", valign="center");
139 text(str(i), size=fs, halign="center", valign="center");
151 translate(fo) rotate(tr)
153 linear_extrude(fh, center=
true)
154 text(str(i), size=fs, halign="center", valign="center");
156 text(str(i), size=fs, halign="center", valign="center");
233 if (
is_between(vc, 0, $children-1) && ($children > 0))
247 if (
is_between(fc, 0, $children-1) && ($children > 0))
261 if (
is_between(ec, 0, $children-1) && ($children > 0))
313 translate([b[0][0], b[1][0], b[2][0]])
314 cube([b[0][1]-b[0][0], b[1][1]-b[1][0], b[2][1]-b[2][0]]);
316 translate([b[0][0], b[1][0]])
317 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 mean(v)
Compute the mean/average of a list of numbers.
function index_sel(l, s=true, rs)
Selected element indices of a given list according to a selection scheme.
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.