I am trying to build a face sweeping a profile along a spine using the BRepOffsetAPI_MakePipe class. The spine is a wire composed of one edge created from a BSpline curve with C1 continuity while the profile is an edge created from two points. The code I use to create the face is the following (quite basic):
BRepOffsetAPI_MakePipe pipe( spine, profile );
BRepTools::Write( pipe.Shape(), "swept.brep");
However, as you can see from the swept.brep file I have attached to the message, the swept face has irregularities at the end of the spine. How could these irregularities be generated? Is there any condition on the continuity (or regularity in general) of the spine I should satisfy before safely apply the MakePipe algorithm? Maybe having G2 continuity? If there is any condition, I do not see how I could increase the continuity of my curve in a very easy way...Do you have an advice on how I could fix this issue?
Thank you very much for your help,