
Thu, 04/14/2022 - 13:07
Forums:
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:
Thu, 04/14/2022 - 14:18
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.
Thu, 04/14/2022 - 14:24
I've tried to reproduce your picture in CAD Builder:
Fri, 04/15/2022 - 10:45
thank you!
I'll try this!
Wed, 04/20/2022 - 03:47
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.