How to extrude a rectangular in a direction with a twist angle.

Hello
I want to extrude a rectangular in a fixed direction with a twist angle to form a solid.
I don't know how to use occ to realize this.
Can anyone help?
Thanks for the help.

Nicholas Seward's picture

I would also like to know how to do this.

Thanks,
Nicholas Seward
The CADDD Project
Open Source Cross Platform 3D CAD Project