
Wed, 06/19/2024 - 05:21
When I use BRepOffsetAPI_MakePipeShell build pipe,around the corner, have a blank.How to optimize this thing?
Here's my code
gp_Circ circle(gp_Ax2(p, vec.Normalized()), 2.0);
Handle(Geom_Circle) geomCircle = new Geom_Circle(circle);
BRepBuilderAPI_MakeEdge edgecircle(geomCircle);
TopoDS_Wire circlewire = BRepBuilderAPI_MakeWire(edgecircle);
BRepOffsetAPI_MakePipeShell pipe(wire);
pipe.Add(circlewire,Standard_False,Standard_False);
pipe.SetMode(Standard_True);
BRepBuilderAPI_TransitionMode Transition = BRepBuilderAPI_Transformed;
Transition = BRepBuilderAPI_RoundCorner;
pipe.SetTransitionMode(Transition);
pipe.Build();
TopoDS_Shape pipishape = pipe.Shape();
pipe.png is my condition