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:
@@ -968,7 +968,7 @@ void Draft_Modification::Perform ()
|
||||
Dist2Min = myExtPC.SquareDistance(1);
|
||||
locpmin = myExtPC.Point(1).Parameter();
|
||||
}
|
||||
if(myExtPC.NbExt() == 2 && Dist2Min > Precision::Confusion() * Precision::Confusion()) {
|
||||
if(myExtPC.NbExt() == 2 && Dist2Min > Precision::SquareConfusion()) {
|
||||
//to avoid incorrectly choosing the image
|
||||
//of the first vertex of the initial edge
|
||||
Standard_Real d1_2 = myExtPC.SquareDistance(1);
|
||||
|
Reference in New Issue
Block a user