create cubic shape that cover all the model


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?


jelle's picture

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

jelle's picture

sorry, the correct class would be BRepBndLib. Just add your shape and you should be on your way...

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.