mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +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:
@@ -1638,7 +1638,7 @@ static TopoDS_Edge NewEdge(const TopoDS_Edge& edg,
|
||||
}
|
||||
}
|
||||
|
||||
if (Dist2Min <= Precision::Confusion() * Precision::Confusion()) {
|
||||
if (Dist2Min <= Precision::SquareConfusion()) {
|
||||
prmf = thepmin;
|
||||
myExtPC.Perform(pvl);
|
||||
if (myExtPC.IsDone()) {
|
||||
@@ -1656,7 +1656,7 @@ static TopoDS_Edge NewEdge(const TopoDS_Edge& edg,
|
||||
}
|
||||
}
|
||||
|
||||
if (Dist2Min <= Precision::Confusion() * Precision::Confusion()) {
|
||||
if (Dist2Min <= Precision::SquareConfusion()) {
|
||||
prml = thepmin;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user