How to get Xmin Ymin and Zmin of a imported Step File

Hi,

I need to know how to get Xmin Ymin Zmin of a shape.
In fact I import a STEP file and I want to build a box which contains this shape.

Does someone knows some functions doing that ?

Thank you in advance for your response.

Kreshnik

Rob Bachrach's picture

Create a Bnd_Box and add your shape to it with BRepBndLib::Add. Note that if you want an exact measurement, you will need to set the gap of the bounding box to 0.0.

Kreshnik's picture

It works,

Thank you very much Rob,

Kreshnik,