Page 1 of 1

Aligning objects

Posted: Fri Jul 05, 2024 12:34 am
by Vincent Beck
Hi

We have a system that needs as the input position and orientation of a tool relative to the workpiece loaded as an .stl file.

My question is, given a stl presenting a workpiece, is there a way to get its smallest containing box? The workpiece can be rotated arbitrary in space.

Thanks

Re: Aligning objects

Posted: Fri Jul 05, 2024 12:39 am
by Prashant Kande
Hi Vincent

Have a look at the Cloud sample in the current v7.1. Click the button in the "Oriented Bounding Box". It sounds like what you need.
The app computes the tightest oriented bounding box of the object.

See the installed sample for the code

Regards