mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-18 17:20:37 +05:00
Mantis issue 0020659: EDF 1239 GEOM: ChangeOrientation does not change the orientation of edges.
This commit is contained in:
parent
494747da19
commit
97f954ad21
@ -18,7 +18,7 @@
|
|||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
//
|
//
|
||||||
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
//
|
|
||||||
#include <Standard_Stream.hxx>
|
#include <Standard_Stream.hxx>
|
||||||
|
|
||||||
#include <GEOMImpl_FillingDriver.hxx>
|
#include <GEOMImpl_FillingDriver.hxx>
|
||||||
@ -122,6 +122,10 @@ Standard_Integer GEOMImpl_FillingDriver::Execute(TFunction_Logbook& log) const
|
|||||||
if (Scurrent.IsNull() || Scurrent.ShapeType() != TopAbs_EDGE) return 0;
|
if (Scurrent.IsNull() || Scurrent.ShapeType() != TopAbs_EDGE) return 0;
|
||||||
if (BRep_Tool::Degenerated(TopoDS::Edge(Scurrent))) continue;
|
if (BRep_Tool::Degenerated(TopoDS::Edge(Scurrent))) continue;
|
||||||
C = BRep_Tool::Curve(TopoDS::Edge(Scurrent), First, Last);
|
C = BRep_Tool::Curve(TopoDS::Edge(Scurrent), First, Last);
|
||||||
|
if (Scurrent.Orientation() == TopAbs_REVERSED)
|
||||||
|
// Mantis isuue 0020659: consider the orientation of the edges
|
||||||
|
C = new Geom_TrimmedCurve(C, Last, First);
|
||||||
|
else
|
||||||
C = new Geom_TrimmedCurve(C, First, Last);
|
C = new Geom_TrimmedCurve(C, First, Last);
|
||||||
Section.AddCurve(C);
|
Section.AddCurve(C);
|
||||||
i++;
|
i++;
|
||||||
@ -262,7 +266,5 @@ const Handle(GEOMImpl_FillingDriver) Handle(GEOMImpl_FillingDriver)::DownCast(co
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return _anOtherObject ;
|
return _anOtherObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user