1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0030345: Mesh, BRepMesh_CurveTessellator - GCPnts_TangentialDeflection throws Standard_ConstructionError

Now the algorithm GCPnts_TangentialDeflection is initialized by appropriate parameters.
This commit is contained in:
nbv
2018-11-08 11:45:01 +03:00
committed by bugmaster
parent e2f8fe449c
commit 51cf5bb604
2 changed files with 6 additions and 1 deletions

View File

@@ -79,6 +79,9 @@ void BRepMesh_CurveTessellator::init()
aPreciseLinDef *= 0.5;
}
aPreciseLinDef = Max(aPreciseLinDef, Precision::Confusion());
aPreciseAngDef = Max(aPreciseAngDef, Precision::Angular());
mySquareEdgeDef = aPreciseLinDef * aPreciseLinDef;
mySquareMinSize = Max(mySquareEdgeDef, myParameters.MinSize * myParameters.MinSize);