How to calculate the dimensions of the 3D object from MeshAnchor.Geometry?

From the Apple visionOS ARKit scene reconstruction, we can get the geometry of the 3D objects: MeshAnchor.Geometry. I have tried calculating the bounding box of it but had no success.

How could we calculate the width, height and depth from the MeshAnchor.Geometry?

You can use the set of vertices of ARMeshAnchor as a point cloud. https://developer.apple.com/documentation/arkit/armeshgeometry/3516924-vertices

Then, there will be methods for determining the bounding box of the point cloud.

How to calculate the dimensions of the 3D object from MeshAnchor.Geometry?
 
 
Q