Sweep rotating the profile along the spine

Hi, 

I'm trying to sweep a profile on a spline but it seems that the profile remains in the same orientation...

I'm using the BRepOffsetAPI_MakePipe(spine, profile) function.

The attachment is a drawing that shows the desired result...

Fabrizio Pelosi's picture

The problem is when I use an Edge built by GC_MakeSegment...