coords.Coords.bounding_box_points#

Coords.bounding_box_points()#

Return all the corners of the bounding box of a Coords.

Returns#

Coords (8,3)

A Coords with the eight corners of the bounding box, in the order of a elements.Hex8.

See also#

  • bounding_box(): return only two points, with the minimum and maximum coordinates

Examples#

>>> X = Coords([[0.,0.,0.],[3.,0.,0.],[0.,3.,0.]])
>>> print(X.bounding_box_points())
[[0.  0.  0.]
 [3.  0.  0.]
 [3.  3.  0.]
 [0.  3.  0.]
 [0.  0.  0.]
 [3.  0.  0.]
 [3.  3.  0.]
 [0.  3.  0.]]