mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +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:
parent
e2f8fe449c
commit
51cf5bb604
@ -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);
|
||||
|
||||
|
@ -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 ();
|
||||
points .Clear ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user