MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #22324 All Revisions ] Back to Issue ]
Summary 0022324: Mistakes with parenthesis position in abs calls
Revision 2011-11-24 16:55 by szy
Description http://www.opencascade.org/org/forum/thread_20187/. [^]
In various files there is an issue with parenthesis position in abs calls:
Adaptor3d_CurveOnSurface.cxx
Aspect_RectangularGrid.cxx
GeomFill_BoundWithSurf.cxx

Patch is attached.
"In various files there is an issue with parenthesis position in abs calls.The files are :

Adaptor3d_CurveOnSurface.cxx
if(Abs(Coord-Arr(i)>Tol)) Standard_NotImplemented::Raise("Adaptor3d_CurveOnSurface:Hunt");
should become
if(Abs(Coord-Arr(i))>Tol) Standard_NotImplemented::Raise("Adaptor3d_CurveOnSurface:Hunt");


Aspect_RectangularGrid.cxx
return Abs( Sin(alpha)*Cos(beta+Standard_PI/2.) - Cos(alpha)*Sin(beta+Standard_PI/2.) != 0) ;
should become
return (Abs( Sin(alpha)*Cos(beta+Standard_PI/2.) - Cos(alpha)*Sin(beta+Standard_PI/2.)) != 0) ;


GeomFill_BoundWithSurf.cxx
if(Abs(deno < 1.e-16)){
should become
if(Abs(deno) < 1.e-16){

Fotis"
Revision 2011-07-12 14:33 by szy
Description http://www.opencascade.org/org/forum/thread_20187/. [^]
In various files there is an issue with parenthesis position in abs calls:
Adaptor3d_CurveOnSurface.cxx
Aspect_RectangularGrid.cxx
GeomFill_BoundWithSurf.cxx

Patch is attached.


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker