From: kgv Date: Mon, 7 Oct 2013 11:53:19 +0000 (+0400) Subject: 0024235: BRepBuilderAPI_Sewing - add protection against too small tolerance X-Git-Tag: V6_7_0_beta~85 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=eb7c351adf736d5169703c2118a7dcab9234d3fc;p=occt-copy.git 0024235: BRepBuilderAPI_Sewing - add protection against too small tolerance --- diff --git a/src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx b/src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx index 027e240529..3631e8155c 100755 --- a/src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx +++ b/src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx @@ -1697,13 +1697,13 @@ void BRepBuilderAPI_Sewing::Init(const Standard_Real tolerance, const Standard_Boolean optionNonmanifold) { // Set tolerance and Perform options - myTolerance = tolerance; + myTolerance = Max (tolerance, Precision::Confusion()); mySewing = optionSewing; myAnalysis = optionAnalysis; myCutting = optionCutting; myNonmanifold = optionNonmanifold; // Set min and max tolerances - myMinTolerance = tolerance*1e-4; //szv: proposal + myMinTolerance = myTolerance * 1e-4; //szv: proposal if (myMinTolerance < Precision::Confusion()) myMinTolerance = Precision::Confusion(); myMaxTolerance = Precision::Infinite(); // Set other modes