mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0025272: Regression in BRepOffsetAPI_MakePipe: invalid shape is created
Fix of regressions Test-case for issue #25272
This commit is contained in:
@@ -2489,9 +2489,13 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
|
||||
if (VEdge(isec, ipath).IsNull())
|
||||
VEdge(isec, ipath) = aNewFirstEdge;
|
||||
else //rebuild first edge
|
||||
{
|
||||
RebuildTopOrBottomEdge(aNewFirstEdge,
|
||||
TopoDS::Edge(VEdge(isec, ipath)),
|
||||
ReversedEdges);
|
||||
if (ReversedEdges.Contains(VEdge(isec, ipath)))
|
||||
StartEdges(isec).Reverse();
|
||||
}
|
||||
}
|
||||
|
||||
else UpdateEdge(TopoDS::Edge(VEdge(isec, ipath)),
|
||||
@@ -2660,7 +2664,7 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
|
||||
for (j = 1; j <= NbPath; j++)
|
||||
Tapes(StartEdges(isec))->SetValue(6, j, myFaces->Value(isec, j));
|
||||
TopoDS_Vertex Vfirst, Vlast;
|
||||
TopExp::Vertices(TopoDS::Edge(StartEdges(isec)), Vfirst, Vlast);
|
||||
TopExp::Vertices(TopoDS::Edge(StartEdges(isec)), Vfirst, Vlast, Standard_True); //with orientation
|
||||
if (!Rails.IsBound(Vfirst))
|
||||
{
|
||||
Handle(TopTools_HArray2OfShape) anArray = new TopTools_HArray2OfShape(1, 2, 1, NbPath+1);
|
||||
|
Reference in New Issue
Block a user