mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0024235: BRepBuilderAPI_Sewing - add protection against too small tolerance
This commit is contained in:
parent
229c0b6a3b
commit
eb7c351adf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user