1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0024667: BRepOffsetAPI_MakePipe::FirstShape() and LastShape() return shapes not from result

Test case for issue CR24667
This commit is contained in:
skv
2014-03-13 14:24:28 +04:00
committed by bugmaster
parent cb389a77e4
commit 2cd138b878
3 changed files with 105 additions and 4 deletions

View File

@@ -639,6 +639,15 @@ TopoDS_Shape BRepFill_Pipe::MakeShape(const TopoDS_Shape& S,
MkSw.Build( myReversedEdges, myTapes,
BRepFill_Modified, myContinuity, GeomFill_Location, myDegmax, mySegmax );
result = MkSw.Shape();
Handle(TopTools_HArray2OfShape) aSections = MkSw.Sections();
if (aSections.IsNull() == Standard_False) {
const Standard_Integer aVLast = aSections->UpperCol();
myFirst = aSections->Value(1, 1);
myLast = aSections->Value(1, aVLast);
}
}
if (TheS.ShapeType() == TopAbs_WIRE ) {