1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-06 18:26:22 +03:00

0023145: Suspicious else (2)

else statement was incorrect, is has been changed.
This commit is contained in:
ika 2012-10-16 18:10:31 +04:00
parent 80cead4136
commit 9a79c9529a

View File

@ -62,10 +62,10 @@ void LocalAnalysis_SurfaceContinuity::SurfC1( GeomLProp_SLProps& Surf1,
&&(norm2v>myepsnul)) &&(norm2v>myepsnul))
{ if (norm1u >= norm2u ) { if (norm1u >= norm2u )
myLambda1U= norm2u / norm1u; myLambda1U= norm2u / norm1u;
else myLambda1U = norm2u / norm1u; else myLambda1U = norm1u / norm2u;
if (norm1v >= norm2v ) if (norm1v >= norm2v )
myLambda1V= norm2v / norm1v; myLambda1V= norm2v / norm1v;
else myLambda1V = norm2v / norm1v; else myLambda1V = norm1v / norm2v;
angu= V1u.Angle(V2u); angu= V1u.Angle(V2u);
if (angu>M_PI/2) myContC1U=M_PI-angu; if (angu>M_PI/2) myContC1U=M_PI-angu;
else myContC1U=angu; else myContC1U=angu;