From 074028c6463aa41222e1913c1381a1d1ffda8f67 Mon Sep 17 00:00:00 2001 From: jgv Date: Fri, 6 Jul 2012 01:35:34 +0400 Subject: [PATCH] 0023201: Projection algorithm produces wrong results. --- src/ProjLib/ProjLib_ProjectedCurve.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ProjLib/ProjLib_ProjectedCurve.cxx b/src/ProjLib/ProjLib_ProjectedCurve.cxx index 46b01c3992..b4ac5189fa 100755 --- a/src/ProjLib/ProjLib_ProjectedCurve.cxx +++ b/src/ProjLib/ProjLib_ProjectedCurve.cxx @@ -619,25 +619,25 @@ void ProjLib_ProjectedCurve::Load(const Handle(Adaptor3d_HCurve)& C) V1 = S.FirstVParameter(); V2 = S.LastVParameter(); - if(IsoIsDeg(S, U1, GeomAbs_IsoU, 0., 1.e-9) ) { + if(IsoIsDeg(S, U1, GeomAbs_IsoU, 0., myTolerance) ) { //Surface has pole at U = Umin gp_Pnt Pole = mySurface->Value(U1, V1); TrimC3d(myCurve, IsTrimmed, dt, Pole); } - if(IsoIsDeg(S, U2, GeomAbs_IsoU, 0., 1.e-9) ) { + if(IsoIsDeg(S, U2, GeomAbs_IsoU, 0., myTolerance) ) { //Surface has pole at U = Umax gp_Pnt Pole = mySurface->Value(U2, V1); TrimC3d(myCurve, IsTrimmed, dt, Pole); } - if(IsoIsDeg(S, V1, GeomAbs_IsoV, 0., 1.e-9) ) { + if(IsoIsDeg(S, V1, GeomAbs_IsoV, 0., myTolerance) ) { //Surface has pole at V = Vmin gp_Pnt Pole = mySurface->Value(U1, V1); TrimC3d(myCurve, IsTrimmed, dt, Pole); } - if(IsoIsDeg(S, V2, GeomAbs_IsoV, 0., 1.e-9) ) { + if(IsoIsDeg(S, V2, GeomAbs_IsoV, 0., myTolerance) ) { //Surface has pole at V = Vmax gp_Pnt Pole = mySurface->Value(U1, V2); TrimC3d(myCurve, IsTrimmed, dt, Pole);