mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-03 19:20:34 +05:00
0022512: Fix for regression after fix for 0022514
This commit is contained in:
parent
dd223ab63f
commit
239fd07e4d
@ -990,9 +990,23 @@ TopoDS_Edge GEOMImpl_ShapeDriver::MakeEdgeFromWire(const TopoDS_Shape& aWire,
|
|||||||
Handle(Geom_Curve)::DownCast(CurveSeq(1)->Copy());
|
Handle(Geom_Curve)::DownCast(CurveSeq(1)->Copy());
|
||||||
|
|
||||||
aNewCurve->Transform(LocSeq(1).Location().Transformation());
|
aNewCurve->Transform(LocSeq(1).Location().Transformation());
|
||||||
|
|
||||||
|
if (LocSeq(1).Orientation() == TopAbs_REVERSED) {
|
||||||
|
const TopoDS_Vertex aVtxTmp = FirstVertex;
|
||||||
|
|
||||||
|
FirstVertex = LastVertex;
|
||||||
|
LastVertex = aVtxTmp;
|
||||||
|
FirstVertex.Orientation(TopAbs_FORWARD);
|
||||||
|
LastVertex.Orientation(TopAbs_REVERSED);
|
||||||
|
}
|
||||||
|
|
||||||
ResEdge = BRepLib_MakeEdge(aNewCurve,
|
ResEdge = BRepLib_MakeEdge(aNewCurve,
|
||||||
FirstVertex, LastVertex,
|
FirstVertex, LastVertex,
|
||||||
FparSeq(1), LparSeq(1));
|
FparSeq(1), LparSeq(1));
|
||||||
|
|
||||||
|
if (LocSeq(1).Orientation() == TopAbs_REVERSED) {
|
||||||
|
ResEdge.Reverse();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user