rnc : corrected the bug that the starting point is false when using reverse parameter

This commit is contained in:
gdd 2011-02-16 15:10:28 +00:00
parent d404209557
commit b664a705b8

View File

@ -173,7 +173,7 @@ Standard_Integer GEOMImpl_PointDriver::Execute(TFunction_Logbook& log) const
Handle(Geom_Curve) ReOrientedCurve = EdgeCurve; Handle(Geom_Curve) ReOrientedCurve = EdgeCurve;
if ( theReversed ) { if ( theReversed ) {
ReOrientedCurve = EdgeCurve -> Reversed(); ReOrientedCurve = EdgeCurve -> Reversed();
UFirst=ULast; UFirst = EdgeCurve -> ReversedParameter(ULast);
} }
GeomAdaptor_Curve AdapCurve = GeomAdaptor_Curve(ReOrientedCurve); GeomAdaptor_Curve AdapCurve = GeomAdaptor_Curve(ReOrientedCurve);
GCPnts_AbscissaPoint anAbsPnt(AdapCurve, theLength, UFirst); GCPnts_AbscissaPoint anAbsPnt(AdapCurve, theLength, UFirst);