I want a sweeped shape

Hello,

I want a shape that sweeps TopoDS_face.

I tried BRepOffsetAPI_MakePipe but it wasn't what I wanted.

In BRepOffsetAPI_MakePipe, Angle of Profile changes along with Spine.

However, I want a shape that is made along the Spine with the Angle kept constant.

Spine:TopoDS_Edge(Wire)/Arc or line
Profile:TopoDS_Face / Plane or Cylinder

Please see picture1.png

best regard.

Attachments: 
Mikhail MPV's picture

  Hello,

I would suggest using BRepOffsetAPI_MakePipeShell class, calling "Add" on the initial "A" profile and the last "B" profile. On my example it works exactly as on your picture.

Best Regards,

Mikhail.

Mikhail MPV's picture

I've tried to reproduce your picture in CAD Builder:

 

Attachments: 
Noba kazu's picture

thank you!
I'll try this!

Noba kazu's picture

Using BRepOffsetAPI_MakePipeShell, it worked fine when "Profile is in contact with Spine" and "Profile is flat".

However, in the cases of (1) and (2) below, the correct solid could not be obtained.

I would like to know what to do in the cases of (1) and (2) below.

(1) If the Profile is far from Spine, the correct Solid cannot be obtained.
"ShapeSweeped" created by "Code-1" cannot be acquired correctly (MakeSolid () fails)

(2) If the Profile is an arc, the correct Solid cannot be obtained.
"ShapeSweeped" created by "Code-2" cannot be acquired correctly (MakeSolid () fails)

best regard.