mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -2408,7 +2408,7 @@ void BRepOffset_Tool::Inter2d (const TopoDS_Face& F,
|
||||
IndexMin = ind;
|
||||
}
|
||||
}
|
||||
if (Dist2Min <= Precision::Confusion() * Precision::Confusion())
|
||||
if (Dist2Min <= Precision::SquareConfusion())
|
||||
{
|
||||
YaSol = Standard_True;
|
||||
P2d = P1[i1];
|
||||
@@ -2435,7 +2435,7 @@ void BRepOffset_Tool::Inter2d (const TopoDS_Face& F,
|
||||
IndexMin = ind;
|
||||
}
|
||||
}
|
||||
if (Dist2Min <= Precision::Confusion() * Precision::Confusion())
|
||||
if (Dist2Min <= Precision::SquareConfusion())
|
||||
{
|
||||
YaSol = Standard_True;
|
||||
P2d = P2[i2];
|
||||
|
Reference in New Issue
Block a user