For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

[Patch] Fixes in various abs calls

Fotis Sioutis's picture
Forums: 

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 should become
if(Abs(deno)

Fotis

P Dolbey's picture

OCC650PATCH

sergey zaritchny's picture

Hi Fotis,

Thanks for your contribution.
The corresponding issue with ID = OCC22324 has been registered.
Later you can know if the patch is integrated by checking references to the specified ID in OCCT Release Notes.

Regards

Timo Roth's picture

Was corrected in OCC 6.5.1