pyblenderSDIC.meshes.TriangleMesh3D.bounding_box#

property TriangleMesh3D.bounding_box: ndarray | None#

Get the bounding box of the mesh.

The bounding box is represented as a NumPy array of shape (2, 3), where the first row contains the minimum coordinates and the second row contains the maximum coordinates in each dimension.

See also

The method compute_bounding_box can be used to compute the bounding box if it is not already computed.

Warning

This property uses numpy.asarray on the internal bounding_box array. As a result, any modification to the returned or setted array directly affects the mesh data. To avoid unintentional updates, assign a copy instead.

Returns:

A NumPy array of shape (2, 3) representing the bounding box of the mesh. If not computed, returns None.

Return type:

Optional[numpy.ndarray]