create cubic shape that cover all the model

Hi

I want to create a solid shape that cover all the shape. I need the primary cubic of the model without features.
Can anybody help me?

Thanks
David

jelle's picture

Use a bounding box to compute the dimension of the shape, see:

http://dev.opencascade.org/doc/refman/html/class_bnd___box.html

jelle's picture

sorry, the correct class would be BRepBndLib. Just add your shape and you should be on your way...
see:
http://dev.opencascade.org/doc/refman/html/class_b_rep_bnd_lib.html

Gilles DAVID's picture

Thanks jelle
i cann't write the code :(. can u help me more?
i have topods shape like figure 1 and need the primary cubic(topods) like figure2.

Attachments: