mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0030186: BRepOffsetAPI_MakePipe Generated() method produces no results for the spine edges
Add method BuildHistory providing history for sub-shapes of profile and spine to BRepFill_Pipe.
This commit is contained in:
@@ -171,13 +171,23 @@ static Standard_Integer pipe(Draw_Interpretor& di,
|
||||
if (n >= 6)
|
||||
ForceApproxC1 = Standard_True;
|
||||
|
||||
TopoDS_Shape S = BRepOffsetAPI_MakePipe(TopoDS::Wire(Spine),
|
||||
Profile,
|
||||
Mode,
|
||||
ForceApproxC1);
|
||||
BRepOffsetAPI_MakePipe PipeBuilder(TopoDS::Wire(Spine),
|
||||
Profile,
|
||||
Mode,
|
||||
ForceApproxC1);
|
||||
TopoDS_Shape S = PipeBuilder.Shape();
|
||||
|
||||
DBRep::Set(a[1],S);
|
||||
|
||||
// Save history of pipe
|
||||
if (BRepTest_Objects::IsHistoryNeeded())
|
||||
{
|
||||
TopTools_ListOfShape aList;
|
||||
aList.Append(Profile);
|
||||
aList.Append(Spine);
|
||||
BRepTest_Objects::SetHistory(aList, PipeBuilder);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user