Mantis issue 0020659: EDF 1239 GEOM: ChangeOrientation does not change the orientation of edges.

This commit is contained in:
jfa 2010-01-21 12:37:29 +00:00
parent 494747da19
commit 97f954ad21

View File

@ -18,7 +18,7 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#include <Standard_Stream.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 (BRep_Tool::Degenerated(TopoDS::Edge(Scurrent))) continue;
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);
Section.AddCurve(C);
i++;
@ -262,7 +266,5 @@ const Handle(GEOMImpl_FillingDriver) Handle(GEOMImpl_FillingDriver)::DownCast(co
}
}
return _anOtherObject ;
return _anOtherObject;
}