mesh.Mesh.bounding_boxes#

Mesh.bounding_boxes()#

Returns the bounding_boxes of all elements in the Mesh.

Returns#

float array (n_elems,2,3).

An array with the minimal and maximal values of the coordinates of the nodes of each element, stored along the 1-axis.

Examples#

>>> M = Mesh(eltype='quad4').subdivide(2)
>>> print(M.bounding_boxes())
[[[0.  0.  0. ]
[0.5 0.5 0. ]]

[[0.5 0.  0. ]
[1.  0.5 0. ]]

[[0.  0.5 0. ]
[0.5 1.  0. ]]

[[0.5 0.5 0. ]
[1.  1.  0. ]]]