82 is_list( ids ) ? len(ids) : undef;
101 (n == 0) ? ids : ids[n-1];
157 "id does not exists for id=[",
id,
158 "], tr=[ph_db_dtr], and tc=[ph_db_dtc]."
163 if ( shape_id_exists )
170 r =
rotate_p(c, [yz ? 90 : 0, 0, 0]);
178 s = is_undef(size) ? r :
resize_p(r, [sx, sy, sz]);
dtr_polyhedra_polyhedra_all
dtc_polyhedra_polyhedra_all
function defined_e_or(v, i, d)
Return an element of an iterable when it exists or a default value otherwise.
function table_exists(r, c, ri, ci)
Test the existence of a table row identifier, table column identifier, or both.
function table_get_row_ids(r)
Form a list of all table row identifiers.
function table_get_value(r, c, ri, ci)
Get the table cell value for a specified row and column identifier.
function rotate_p(c, a, v, o=origin3d)
Rotate all coordinates about one or more axes in 2D or 3D.
function resize_p(c, v)
Scale all coordinates dimensions proportionately to fit inside a region.
function translate_p(c, v)
Translate all coordinates dimensions.
function polytope_limits(c, f, a, d, s=true)
Determine the bounding limits of a polytope.
function ph_db_get_size(tr=ph_db_dtr)
Get the number of shape identifiers in data table.
module ph_db_polyhedron(id, size, align, yz=true, tr=ph_db_dtr, tc=ph_db_dtc)
Construct a named polyhedron.
function ph_db_get_id(n, tr=ph_db_dtr)
Get data table identifier name (or names).
ph_db_dtc
<map> The default polyhedra data table columns.
ph_db_dtr
<table> The default polyhedra data table rows.