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 )
180 s = is_undef(size) ? c :
resize_p(c, [sx, sy, sz]);
192 m =
translate_p(s, [r.x * ax - z.x, r.y * ay - z.y, r.z * az - z.z] );
dtr_polyhedra_polyhedra_all
dtc_polyhedra_polyhedra_all
function defined_e_or(v, i, d)
Returns an element from an iterable if it exists, or a default value if not.
function second(v)
Return the second element of an iterable value.
function first(v)
Return the first element of an iterable value.
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 resize_p(c, v, center=false, o)
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.
function ph_db_get_id(n, tr=ph_db_dtr)
Get data table identifier name (or names).
module ph_db_polyhedron(id, size, align, tr=ph_db_dtr, tc=ph_db_dtc)
Construct a named polyhedron.
ph_db_dtc
<map> The default polyhedra data table columns.
ph_db_dtr
<table> The default polyhedra data table rows.