How to change the dimension of a shape?

Hi,

 

Is it possible to change the dimension of an object in Open CasCade? For ex, I have already created cylinder, and If I want to modify (increase or decrease) the height of that cylinder. How can I update/modify the height of the cylinder?

 

Thanks & Regards

Rakesh Patil

Kirill Gavrilov's picture

Boundary representation of shape in OCCT does not define special cases like boxes or cylinders - so no, you can not modify existing shape in this way.

Applications providing parametric functionality usually store parameters in the (OCAF) document and regenerate entire shape on their modification.

Rakesh Patil's picture

Hi Kirill,

Thanks. Can you point me to specific examples? I was trying with https://www.opencascade.com/doc/occt-6.9.0/refman/html/classgp___g_trsf..... I am using VTK for visualization. So, I need to sync VTK actor with the actual OCCT Shape. Sync should happen when an object is translated, rotated or scaled.

Thanks & Regards

Rakesh Patil