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:
@@ -910,7 +910,7 @@ void ChFi3d_Builder::PerformOneCorner(const Standard_Integer Index,
|
||||
distmin2 = extCC.SquareDistance(i);
|
||||
imin = i;
|
||||
}
|
||||
if (distmin2 <= Precision::Confusion() * Precision::Confusion())
|
||||
if (distmin2 <= Precision::SquareConfusion())
|
||||
{
|
||||
Extrema_POnCurv ponc1,ponc2;
|
||||
extCC.Points( imin, ponc1, ponc2 );
|
||||
@@ -4101,7 +4101,7 @@ void ChFi3d_Builder::IntersectMoreCorner(const Standard_Integer Index)
|
||||
dist2min = extCC.SquareDistance(i);
|
||||
imin = i;
|
||||
}
|
||||
if (dist2min <= Precision::Confusion() * Precision::Confusion())
|
||||
if (dist2min <= Precision::SquareConfusion())
|
||||
{
|
||||
Extrema_POnCurv ponc1,ponc2;
|
||||
extCC.Points( imin, ponc1, ponc2 );
|
||||
|
Reference in New Issue
Block a user