mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51: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)
|
const Standard_Boolean optionNonmanifold)
|
||||||
{
|
{
|
||||||
// Set tolerance and Perform options
|
// Set tolerance and Perform options
|
||||||
myTolerance = tolerance;
|
myTolerance = Max (tolerance, Precision::Confusion());
|
||||||
mySewing = optionSewing;
|
mySewing = optionSewing;
|
||||||
myAnalysis = optionAnalysis;
|
myAnalysis = optionAnalysis;
|
||||||
myCutting = optionCutting;
|
myCutting = optionCutting;
|
||||||
myNonmanifold = optionNonmanifold;
|
myNonmanifold = optionNonmanifold;
|
||||||
// Set min and max tolerances
|
// Set min and max tolerances
|
||||||
myMinTolerance = tolerance*1e-4; //szv: proposal
|
myMinTolerance = myTolerance * 1e-4; //szv: proposal
|
||||||
if (myMinTolerance < Precision::Confusion()) myMinTolerance = Precision::Confusion();
|
if (myMinTolerance < Precision::Confusion()) myMinTolerance = Precision::Confusion();
|
||||||
myMaxTolerance = Precision::Infinite();
|
myMaxTolerance = Precision::Infinite();
|
||||||
// Set other modes
|
// Set other modes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user