Instance Property

boundingBox

The minimum region entirely enclosing the mesh’s vertex positions, expressed in the model coordinate system of the mesh.

Declaration

var boundingBox: MDLAxisAlignedBoundingBox { get }

Discussion

This property’s value is valid only if the mesh contains vertex data for the MDLVertexAttributePosition attribute. If the mesh does not contain position information, this property’s value is a bounding box whose maxBounds coordinate is greater than its minBounds coordinate.

Reading this property for the first time processes the mesh’s vertex data to calculate and cache a bounding box. Reading this property thereafter returns the cached value.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software