-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2024 CEA, EDF, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
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 );
log->SetTouched(Label());
return 1;
}
- catch( Standard_Failure )
+ catch( Standard_Failure& )
{
//THROW_SALOME_CORBA_EXCEPTION("Exception caught in ExportSTL", SALOME::BAD_PARAM);
}
*/
//================================================================================
bool STLPlugin_ExportDriver::
-GetCreationInformation( std::string& theOperationName,
- std::vector<GEOM_Param>& theParams )
+GetCreationInformation( std::string& /*theOperationName*/,
+ std::vector<GEOM_Param>& /*theParams*/ )
{
return false;
}
-IMPLEMENT_STANDARD_RTTIEXT( STLPlugin_ExportDriver,GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( STLPlugin_ExportDriver,GEOM_BaseDriver )