Aligning objects

Everything DG Kernel: Technical discussions and issues
Post Reply
Vincent Beck
Posts: 1
Joined: Fri Jul 05, 2024 12:26 am

Aligning objects

Post 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
Prashant Kande
Posts: 65
Joined: Tue Jun 18, 2024 6:12 am

Re: Aligning objects

Post 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
Post Reply