X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FBRepMesh%2FBRepMesh_FastDiscret.cxx;h=aa21afcb0f5e6b20ef9333500c3a060dc2da0175;hp=c6fd0efee7b754f05b222e30c62dcda2d851e984;hb=304c45c83f682952628bd45eae94874f9fb8b6db;hpb=55f1e74d757223ae5fb32974de11b155ae7e7bee diff --git a/src/BRepMesh/BRepMesh_FastDiscret.cxx b/src/BRepMesh/BRepMesh_FastDiscret.cxx index c6fd0efee7..aa21afcb0f 100755 --- a/src/BRepMesh/BRepMesh_FastDiscret.cxx +++ b/src/BRepMesh/BRepMesh_FastDiscret.cxx @@ -323,8 +323,8 @@ void BRepMesh_FastDiscret::Add(const TopoDS_Face& theface, Standard_Real aUmin, aVmin, aUmax, aVmax; BRepTools::UVBounds (theface, aUmin, aUmax, aVmin, aVmax); - Standard_Real aTolU = (aUmax - aUmin) * UVDEFLECTION; - Standard_Real aTolV = (aVmax - aVmin) * UVDEFLECTION; + Standard_Real aTolU = Max( Precision::PConfusion(), (aUmax - aUmin) * UVDEFLECTION ); + Standard_Real aTolV = Max( Precision::PConfusion(), (aVmax - aVmin) * UVDEFLECTION ); myStructure->Data().SetCellSize ( 14 * aTolU, 14 * aTolV ); myStructure->Data().SetTolerance( aTolU, aTolV );