// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
RemoveSubMeshElementsAndNodes();
{
try {
+ OCC_CATCH_SIGNALS;
if (!algo->NeedDescretBoundary() && !algo->OnlyUnaryInput())
ret = ApplyToCollection( algo, GetCollection( gen, algo ) );
else
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
#include "SMESH_Gen_i.hxx"
#include "SMESH_Filter_i.hxx"
#include "SMESH_PythonDump.hxx"
-#include "CASCatch.hxx"
#include "utilities.h"
#include <gp_Ax2.hxx>
#include <gp_Vec.hxx>
+#include <Standard_Failure.hxx>
+#include <Standard_ErrorHandler.hxx>
+
#include <sstream>
typedef map<const SMDS_MeshElement*,
myLastCreatedElems = new SMESH::long_array();
myLastCreatedNodes = new SMESH::long_array();
- CASCatch_TRY {
+ try {
+ OCC_CATCH_SIGNALS;
SMESHDS_Mesh* aMesh = GetMeshDS();
map<int,const SMDS_MeshElement*> elements;
<< theIDsOfElements << ", stepVector, " << theNbOfSteps << " )";
}
- CASCatch_CATCH(Standard_Failure) {
+ catch(Standard_Failure) {
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
INFOS( "SMESH_MeshEditor_i::ExtrusionSweep fails - "<< aFail->GetMessageString() );
}
// $Header$
#include "StdMeshers_Distribution.hxx"
-#include "CASCatch.hxx"
#include <math_GaussSingleIntegration.hxx>
#include <utilities.h>
+#include <Standard_Failure.hxx>
+#include <Standard_ErrorHandler.hxx>
+
Function::Function( const int conv )
: myConv( conv )
{
bool ok = true;
if( myConv==0 )
{
- CASCatch_TRY
- {
+ try {
+ OCC_CATCH_SIGNALS;
f = pow( 10, f );
}
- CASCatch_CATCH(Standard_Failure)
+ catch(Standard_Failure)
{
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
f = 0.0;
myValues( 1, 1 )
{
bool ok = true;
- CASCatch_TRY
- {
+ try {
+ OCC_CATCH_SIGNALS;
myExpr = ExprIntrp_GenExp::Create();
myExpr->Process( ( Standard_CString )str );
}
- CASCatch_CATCH(Standard_Failure)
+ catch(Standard_Failure)
{
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
ok = false;
( ( TColStd_Array1OfReal& )myValues ).ChangeValue( 1 ) = t;
bool ok = true;
- CASCatch_TRY {
+ try {
+ OCC_CATCH_SIGNALS;
f = myExpr->Expression()->Evaluate( myVars, myValues );
}
- CASCatch_CATCH(Standard_Failure) {
+ catch(Standard_Failure) {
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
f = 0.0;
ok = false;
double FunctionExpr::integral( const double a, const double b ) const
{
double res = 0.0;
- CASCatch_TRY
- {
+ try {
+ OCC_CATCH_SIGNALS;
math_GaussSingleIntegration _int( ( math_Function& )*this, a, b, 20 );
if( _int.IsDone() )
res = _int.Value();
}
- CASCatch_CATCH(Standard_Failure)
+ catch(Standard_Failure)
{
res = 0.0;
MESSAGE( "Exception in integral calculating" );
#include "SMESHDS_SubMesh.hxx"
#include "SMESH_Mesh.hxx"
-#include "CASCatch.hxx"
-
#include <ExprIntrp_GenExp.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <Expr_NamedUnknown.hxx>
#include <TopExp.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
+#include <Standard_Failure.hxx>
+#include <Standard_ErrorHandler.hxx>
+
using namespace std;
const double PRECISION = 1e-7;
double val = table[i*2+1];
if( _convMode==0 )
{
- CASCatch_TRY
- {
+ try {
+ OCC_CATCH_SIGNALS;
val = pow( 10.0, val );
}
- CASCatch_CATCH(Standard_Failure)
+ catch(Standard_Failure)
{
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
throw SALOME_Exception( LOCALIZED( "invalid value"));
{
bool parsed_ok = true;
Handle( ExprIntrp_GenExp ) myExpr;
- CASCatch_TRY
- {
+ try {
+ OCC_CATCH_SIGNALS;
myExpr = ExprIntrp_GenExp::Create();
myExpr->Process( str.ToCString() );
}
- CASCatch_CATCH(Standard_Failure)
+ catch(Standard_Failure)
{
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
parsed_ok = false;
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
#include "StdMeshers_Regular_1D.hxx"
#include "StdMeshers_Distribution.hxx"
-#include "SMESH_Gen.hxx"
-#include "SMESH_Mesh.hxx"
-#include "SMESH_HypoFilter.hxx"
-#include "SMESH_subMesh.hxx"
#include "StdMeshers_LocalLength.hxx"
#include "StdMeshers_NumberOfSegments.hxx"
#include "StdMeshers_Deflection1D.hxx"
#include "StdMeshers_AutomaticLength.hxx"
+#include "SMESH_Gen.hxx"
+#include "SMESH_Mesh.hxx"
+#include "SMESH_HypoFilter.hxx"
+#include "SMESH_subMesh.hxx"
+
#include "SMDS_MeshElement.hxx"
#include "SMDS_MeshNode.hxx"
#include "SMDS_EdgePosition.hxx"
#include <GCPnts_AbscissaPoint.hxx>
#include <GCPnts_UniformAbscissa.hxx>
#include <GCPnts_UniformDeflection.hxx>
-#include <Standard_ErrorHandler.hxx>
#include <Precision.hxx>
#include <Expr_GeneralExpression.hxx>
#include <Expr_NamedUnknown.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
-#include <TColStd_Array1OfReal.hxx>
#include <ExprIntrp_GenExp.hxx>
+#include <TColStd_Array1OfReal.hxx>
#include <OSD.hxx>
+#include <Standard_ErrorHandler.hxx>
+#include <Standard_Failure.hxx>
+
#include <string>
#include <math.h>
if ( !_mainEdge.IsNull() )
reversed = aMesh.IsReversedInChain( EE, _mainEdge );
try {
+ OCC_CATCH_SIGNALS;
if ( ! computeInternalParameters( E, params, reversed )) {
//cout << "computeInternalParameters() failed" <<endl;
return false;
//
#include "StdMeshersGUI_DistrPreview.h"
-#include "CASCatch.hxx"
#include <Expr_NamedUnknown.hxx>
#include <Expr_GeneralExpression.hxx>
+#include <Standard_Failure.hxx>
+#include <Standard_ErrorHandler.hxx>
+
StdMeshersGUI_DistrPreview::StdMeshersGUI_DistrPreview( QWidget* p, StdMeshers::StdMeshers_NumberOfSegments_ptr h )
: QwtPlot( p ),
myPoints( 50 ),
delete[] y;
x = y = 0;
- CASCatch_TRY
- {
+ try {
+ OCC_CATCH_SIGNALS;
replot();
}
- CASCatch_CATCH(Standard_Failure)
+ catch(Standard_Failure)
{
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
}
bool StdMeshersGUI_DistrPreview::init( const QString& str )
{
bool parsed_ok = true;
- CASCatch_TRY
- {
+ try {
+ OCC_CATCH_SIGNALS;
myExpr = ExprIntrp_GenExp::Create();
myExpr->Process( ( Standard_CString ) str.latin1() );
}
- CASCatch_CATCH(Standard_Failure)
+ catch(Standard_Failure)
{
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
parsed_ok = false;
double res = 0.0;
ok = true;
- CASCatch_TRY {
+ try {
+ OCC_CATCH_SIGNALS;
res = myExpr->Expression()->Evaluate( myVars, myValues );
}
- CASCatch_CATCH(Standard_Failure) {
+ catch(Standard_Failure) {
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
ok = false;
res = 0.0;
{
case EXPONENT:
{
- CASCatch_TRY
- {
+ try {
+ OCC_CATCH_SIGNALS;
// in StdMeshers_NumberOfSegments.cc
// const double PRECISION = 1e-7;
//
if(v < -7) v = -7.0;
v = pow( 10.0, v );
}
- CASCatch_CATCH(Standard_Failure)
+ catch(Standard_Failure)
{
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
v = 0.0;