How to change width of a box ?

Hello all,

I am using BRepPrimAPI_MakeBox class to make a box.

I want to change width,height of the box without creating the

new box again. There is no such set method is given in class.

So can someone tell me how to achive this ?

Thanks.

Yves Fricaud's picture

Hello

It's not possible to modify a Shape. You have to build a new one with new values. It's a choice in opencascade, the shape can not be modified, one reason is that a TShape S1 can be contained by an other shape S2, and if S1 changes... what should we do with S2 ? An other reason is that a Shape doesn't know where it is used. There is not back pointers. Theses choices are strong and with uses they prove to be effective.

Best Regards

Yves