From 871a52cf1b846c360a438da940a218830843857b Mon Sep 17 00:00:00 2001 From: gka Date: Fri, 20 Apr 2018 17:52:21 +0300 Subject: [PATCH] 0029713: Test Harness command "fixshape" can not fix attached face Fix to reverse invalid oriented pcurves was made --- src/ShapeAnalysis/ShapeAnalysis_Edge.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ShapeAnalysis/ShapeAnalysis_Edge.cxx b/src/ShapeAnalysis/ShapeAnalysis_Edge.cxx index f1bc7821c4..0ae7794bd4 100644 --- a/src/ShapeAnalysis/ShapeAnalysis_Edge.cxx +++ b/src/ShapeAnalysis/ShapeAnalysis_Edge.cxx @@ -469,13 +469,13 @@ Standard_Boolean ShapeAnalysis_Edge::CheckPoints (const gp_Pnt& P1A, const Standard_Real preci2) { myStatus = ShapeExtend::EncodeStatus (ShapeExtend_OK); - if (P1A.SquareDistance (P2A) <= preci1 * preci1 && - P1B.SquareDistance (P2B) <= preci2 * preci2) - return Standard_False; - else if (P1A.Distance (P2B) + (P1B.Distance (P2A)) < - P1A.Distance (P2A) + (P1B.Distance (P2B))) - myStatus |= ShapeExtend::EncodeStatus (ShapeExtend_DONE1); - return Standard_True; + if( (P1A.SquareDistance(P2B) < P1A.SquareDistance(P2A) ) && + ( P1B.SquareDistance(P2A) < P1B.SquareDistance(P2B)) ) + { + myStatus |= ShapeExtend::EncodeStatus(ShapeExtend_DONE1); + return Standard_True; + } + return Standard_False; } -- 2.39.5