]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/STLPlugin/STLPlugin_ExportDriver.cxx
Salome HOME
Porting to OCCT 7.8.0
[modules/geom.git] / src / STLPlugin / STLPlugin_ExportDriver.cxx
index b98686a944afeaf07a5b53a051aad8590d7706a8..0bb1352cae673afb3643b827239cde885510c18a 100644 (file)
@@ -102,6 +102,7 @@ Standard_Integer STLPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& log)
       BRepBndLib::Add( aShape, bndBox );
       bndBox.Get( aXmin, aYmin, aZmin, aXmax, aYmax, aZmax );
       aDeflection = MAX3( aXmax-aXmin, aYmax-aYmin, aZmax-aZmin ) * aDeflection;
+      aDeflection = MAX2( aDeflection, Precision::Confusion() );
     }
     //Compute triangulation
     BRepTools::Clean( aCopyShape );