Extrude and twist

Technical discussions
Post Reply
Boris Skorking
Posts: 2
Joined: Wed Jul 03, 2019 5:39 am

Extrude and twist

Post by Boris Skorking »

Hello gents

I need to extrude a simple rectangle in x,y-area along a straight line (e.g. from (0,0,0) to (0,0,100)). This works fine with RepBuilderEx_DG.Extrude(). But now I also need to rotate the rectangle while extruding with a certain angle. I can not find an example how to solve my problem.

Thanks for your help
Boris

Prashant Kande
Posts: 121
Joined: Mon Apr 04, 2016 4:55 am

Re: Extrude and twist

Post by Prashant Kande »

Hi Boris

It is a good question.
IWireArrayToSurfaceBuilder_DG demo-ed in Surface sample SurfacesView.CreateSurface() should work. You need to define the second etc. wires in the wire array as rotations of your profile (the rectangle). This should work for any profile.

Rotating the profile can be done by redefining with rotated points or using IGeometricObject_DG.Transform()

I will see if I have time for a bit more specific code snippet

Regards

Post Reply