how to implement the twist feature

Hello,
I was wondering how OCC twist the model as shown in attachments? I have tried some methods but didn't secceed. My OOC version is 7.6.0. It will very appreciated if someone could show me an example.
Any help is greatly appreciated. Thank you!

w d's picture

I also wanted to achieve similar effects before, including bending, twisting, spiraling, etc. But I didn't see such an interface in OCC.

Later I found that there are bending and twisting operations for NURBS.

So, you can search for content about NURBS deformation to see if you can convert the model to be deformed into a NURBS set, then deform each NURBS, and finally merge the deformed NURBS sets to get the final model.

Good luck!