mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0023404: Create SquareConfusion function in Precision package for speed and convenience
SquareConfusion function was created in FoundationClasses module -> TKMath toolkit -> Precision package. The function returns square of Precision::Confusion(). SquareConfusion function was corrected in FoundationClasses module -> TKMath toolkit -> Precision package. Squares of Precision::Confusion() were replaced by Precision::SquareConfusion().
This commit is contained in:
@@ -223,7 +223,7 @@ void NIS_Surface::Init (const TopoDS_Shape& theShape,
|
||||
myNEdges = 0;
|
||||
|
||||
// The second loop: copy all nodes and triangles face-by-face
|
||||
const Standard_Real eps2 = Precision::Confusion()*Precision::Confusion();
|
||||
const Standard_Real eps2 = Precision::SquareConfusion();
|
||||
Standard_Integer nNodes (0), nTriangles (0);
|
||||
for (fexp.ReInit(); fexp.More(); fexp.Next())
|
||||
{
|
||||
|
Reference in New Issue
Block a user