1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +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 *= 0.5;
} }
aPreciseLinDef = Max(aPreciseLinDef, Precision::Confusion());
aPreciseAngDef = Max(aPreciseAngDef, Precision::Angular());
mySquareEdgeDef = aPreciseLinDef * aPreciseLinDef; mySquareEdgeDef = aPreciseLinDef * aPreciseLinDef;
mySquareMinSize = Max(mySquareEdgeDef, myParameters.MinSize * myParameters.MinSize); mySquareMinSize = Max(mySquareEdgeDef, myParameters.MinSize * myParameters.MinSize);

View File

@ -135,7 +135,9 @@ void GCPnts_TangentialDeflection::Initialize (
{ {
Standard_ConstructionError_Raise_if (CurvatureDeflection <= Precision::Confusion () || AngularDeflection <= Precision::Angular (), "GCPnts_TangentialDeflection::Initialize - Zero Deflection") Standard_ConstructionError_Raise_if (CurvatureDeflection < Precision::Confusion () ||
AngularDeflection < Precision::Angular (),
"GCPnts_TangentialDeflection::Initialize - Zero Deflection")
parameters.Clear (); parameters.Clear ();
points .Clear (); points .Clear ();