pytha.get_element_bounding_box - pytha-3d-cad/pytha-lua-api GitHub Wiki

Gets the bounding box coordinates for a single element or a table of elements.

pytha.get_element_bounding_box(element [,options]) 
Parameter Type Description
element element_handle or {...} A single element handle or a table of element handles
options {...} Optional: a table that may contain the following options:
options.u_axis {x,y,z} Local coordinate u-axis for the orientation of the bounding box
options.v_axis {x,y,z} Local coordinate v-axis for the orientation of the bounding box
options.w_axis {x,y,z} Local coordinate w-axis for the orientation of the bounding box

Return value

Type Description
{{x,y,z},{x,y,z}} A table with two point coordinates: the minimal x/y/z coordinates and the maximal x/y//z coordinates

Remarks

The function will calculate the total bounding box for element, including the reference points.

See also:

pytha, element handles, get_element_volume, create_element_ref_point