1
0
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:
jgv
2018-10-01 18:18:54 +03:00
committed by bugmaster
parent c3ca03eb17
commit cab49d68fc
20 changed files with 677 additions and 205 deletions

View File

@@ -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;
}