Tue, 05/02/2017 - 18:33
Forums:
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
Wed, 05/03/2017 - 19:43
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.
Wed, 05/03/2017 - 19:51
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