mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 03:30:32 +05:00
Clean-up deprecated OCCT-related code
This commit is contained in:
parent
dbd1374aa8
commit
9d73526fbc
@ -42,8 +42,6 @@
|
|||||||
#include "SMESH_TypeDefs.hxx"
|
#include "SMESH_TypeDefs.hxx"
|
||||||
#include "SMESH_subMesh.hxx"
|
#include "SMESH_subMesh.hxx"
|
||||||
|
|
||||||
#include <Basics_OCCTVersion.hxx>
|
|
||||||
|
|
||||||
#include <BRepAdaptor_Curve.hxx>
|
#include <BRepAdaptor_Curve.hxx>
|
||||||
#include <BRepLProp.hxx>
|
#include <BRepLProp.hxx>
|
||||||
#include <BRep_Tool.hxx>
|
#include <BRep_Tool.hxx>
|
||||||
|
@ -46,8 +46,6 @@
|
|||||||
#include "SMESH_OctreeNode.hxx"
|
#include "SMESH_OctreeNode.hxx"
|
||||||
#include "SMESH_subMesh.hxx"
|
#include "SMESH_subMesh.hxx"
|
||||||
|
|
||||||
#include <Basics_OCCTVersion.hxx>
|
|
||||||
|
|
||||||
#include "utilities.h"
|
#include "utilities.h"
|
||||||
#include "chrono.hxx"
|
#include "chrono.hxx"
|
||||||
|
|
||||||
|
@ -75,8 +75,6 @@
|
|||||||
#include <gp_XY.hxx>
|
#include <gp_XY.hxx>
|
||||||
#include <gp_XYZ.hxx>
|
#include <gp_XYZ.hxx>
|
||||||
|
|
||||||
#include <Basics_OCCTVersion.hxx>
|
|
||||||
|
|
||||||
#include <Basics_Utils.hxx>
|
#include <Basics_Utils.hxx>
|
||||||
#include "utilities.h"
|
#include "utilities.h"
|
||||||
|
|
||||||
|
@ -38,8 +38,6 @@
|
|||||||
#include "SMESH_MesherHelper.hxx"
|
#include "SMESH_MesherHelper.hxx"
|
||||||
#include "SMESH_subMeshEventListener.hxx"
|
#include "SMESH_subMeshEventListener.hxx"
|
||||||
|
|
||||||
#include <Basics_OCCTVersion.hxx>
|
|
||||||
|
|
||||||
#include "utilities.h"
|
#include "utilities.h"
|
||||||
#include "OpUtil.hxx"
|
#include "OpUtil.hxx"
|
||||||
#include "Basics_Utils.hxx"
|
#include "Basics_Utils.hxx"
|
||||||
|
@ -2646,9 +2646,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
|||||||
if(checkLock(aStudy)) break;
|
if(checkLock(aStudy)) break;
|
||||||
SUIT_OverrideCursor wc;
|
SUIT_OverrideCursor wc;
|
||||||
try {
|
try {
|
||||||
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
SMESH::UpdateView();
|
SMESH::UpdateView();
|
||||||
}
|
}
|
||||||
catch (std::bad_alloc) { // PAL16774 (Crash after display of many groups)
|
catch (std::bad_alloc) { // PAL16774 (Crash after display of many groups)
|
||||||
|
@ -1984,9 +1984,7 @@ void SMESHGUI_PrecomputeOp::onPreview()
|
|||||||
|
|
||||||
SMESH::long_array_var aShapesId = new SMESH::long_array();
|
SMESH::long_array_var aShapesId = new SMESH::long_array();
|
||||||
try {
|
try {
|
||||||
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
|
|
||||||
SMESH::MeshPreviewStruct_var previewData =
|
SMESH::MeshPreviewStruct_var previewData =
|
||||||
gen->Precompute(myMesh, myMainShape, (SMESH::Dimension)dim, aShapesId);
|
gen->Precompute(myMesh, myMainShape, (SMESH::Dimension)dim, aShapesId);
|
||||||
@ -2009,9 +2007,7 @@ void SMESHGUI_PrecomputeOp::onPreview()
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
aCompErrors = gen->GetComputeErrors( myMesh, myMainShape );
|
aCompErrors = gen->GetComputeErrors( myMesh, myMainShape );
|
||||||
// check if there are memory problems
|
// check if there are memory problems
|
||||||
for ( CORBA::ULong i = 0; (i < aCompErrors->length()) && !memoryLack; ++i )
|
for ( CORBA::ULong i = 0; (i < aCompErrors->length()) && !memoryLack; ++i )
|
||||||
@ -2227,9 +2223,7 @@ void SMESHGUI_BaseComputeOp::evaluateMesh()
|
|||||||
}
|
}
|
||||||
SUIT_OverrideCursor aWaitCursor;
|
SUIT_OverrideCursor aWaitCursor;
|
||||||
try {
|
try {
|
||||||
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
aRes = gen->Evaluate(myMesh, myMainShape);
|
aRes = gen->Evaluate(myMesh, myMainShape);
|
||||||
}
|
}
|
||||||
catch(const SALOME::SALOME_Exception & S_ex){
|
catch(const SALOME::SALOME_Exception & S_ex){
|
||||||
@ -2237,9 +2231,7 @@ void SMESHGUI_BaseComputeOp::evaluateMesh()
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
aCompErrors = gen->GetComputeErrors( myMesh, myMainShape );
|
aCompErrors = gen->GetComputeErrors( myMesh, myMainShape );
|
||||||
}
|
}
|
||||||
catch(const SALOME::SALOME_Exception & S_ex){
|
catch(const SALOME::SALOME_Exception & S_ex){
|
||||||
|
@ -33,13 +33,13 @@
|
|||||||
#include <SMDS_Mesh.hxx>
|
#include <SMDS_Mesh.hxx>
|
||||||
#include <SMDSAbs_ElementType.hxx>
|
#include <SMDSAbs_ElementType.hxx>
|
||||||
|
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(SMESHGUI_Filter, VTKViewer_Filter)
|
IMPLEMENT_STANDARD_RTTIEXT(SMESHGUI_Filter, VTKViewer_Filter)
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(SMESHGUI_PredicateFilter, SMESHGUI_Filter)
|
IMPLEMENT_STANDARD_RTTIEXT(SMESHGUI_PredicateFilter, SMESHGUI_Filter)
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(SMESHGUI_QuadrangleFilter, SMESHGUI_Filter)
|
IMPLEMENT_STANDARD_RTTIEXT(SMESHGUI_QuadrangleFilter, SMESHGUI_Filter)
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(SMESHGUI_TriangleFilter, SMESHGUI_Filter)
|
IMPLEMENT_STANDARD_RTTIEXT(SMESHGUI_TriangleFilter, SMESHGUI_Filter)
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(SMESHGUI_FacesFilter, SMESHGUI_Filter)
|
IMPLEMENT_STANDARD_RTTIEXT(SMESHGUI_FacesFilter, SMESHGUI_Filter)
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(SMESHGUI_VolumesFilter, SMESHGUI_Filter)
|
IMPLEMENT_STANDARD_RTTIEXT(SMESHGUI_VolumesFilter, SMESHGUI_Filter)
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(SMESHGUI_VolumeShapeFilter, SMESHGUI_Filter)
|
IMPLEMENT_STANDARD_RTTIEXT(SMESHGUI_VolumeShapeFilter, SMESHGUI_Filter)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Class : SMESHGUI_PredicateFilter
|
Class : SMESHGUI_PredicateFilter
|
||||||
|
@ -70,7 +70,7 @@ public:
|
|||||||
Standard_EXPORT virtual bool IsObjValid( const int ) const = 0;
|
Standard_EXPORT virtual bool IsObjValid( const int ) const = 0;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(SMESHGUI_Filter,VTKViewer_Filter)
|
DEFINE_STANDARD_RTTIEXT(SMESHGUI_Filter,VTKViewer_Filter)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -99,7 +99,7 @@ private:
|
|||||||
SMESH::Predicate_var myPred;
|
SMESH::Predicate_var myPred;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(SMESHGUI_PredicateFilter,SMESHGUI_Filter)
|
DEFINE_STANDARD_RTTIEXT(SMESHGUI_PredicateFilter,SMESHGUI_Filter)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -121,7 +121,7 @@ public:
|
|||||||
Standard_EXPORT virtual bool IsNodeFilter() const;
|
Standard_EXPORT virtual bool IsNodeFilter() const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(SMESHGUI_QuadrangleFilter,SMESHGUI_Filter)
|
DEFINE_STANDARD_RTTIEXT(SMESHGUI_QuadrangleFilter,SMESHGUI_Filter)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -143,7 +143,7 @@ public:
|
|||||||
Standard_EXPORT virtual bool IsNodeFilter() const;
|
Standard_EXPORT virtual bool IsNodeFilter() const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(SMESHGUI_TriangleFilter,SMESHGUI_Filter)
|
DEFINE_STANDARD_RTTIEXT(SMESHGUI_TriangleFilter,SMESHGUI_Filter)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -165,7 +165,7 @@ public:
|
|||||||
Standard_EXPORT virtual bool IsNodeFilter() const;
|
Standard_EXPORT virtual bool IsNodeFilter() const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(SMESHGUI_FacesFilter,SMESHGUI_Filter)
|
DEFINE_STANDARD_RTTIEXT(SMESHGUI_FacesFilter,SMESHGUI_Filter)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -187,7 +187,7 @@ public:
|
|||||||
Standard_EXPORT virtual bool IsNodeFilter() const;
|
Standard_EXPORT virtual bool IsNodeFilter() const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(SMESHGUI_VolumesFilter,SMESHGUI_Filter)
|
DEFINE_STANDARD_RTTIEXT(SMESHGUI_VolumesFilter,SMESHGUI_Filter)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -211,7 +211,7 @@ public:
|
|||||||
Standard_EXPORT static int GetId( SMDSAbs_GeometryType geom );
|
Standard_EXPORT static int GetId( SMDSAbs_GeometryType geom );
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(SMESHGUI_VolumeShapeFilter,SMESHGUI_Filter)
|
DEFINE_STANDARD_RTTIEXT(SMESHGUI_VolumeShapeFilter,SMESHGUI_Filter)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SMESHGUI_FILTER_H
|
#endif // SMESHGUI_FILTER_H
|
||||||
|
@ -33,7 +33,6 @@
|
|||||||
#include <Utils_SALOME_Exception.hxx>
|
#include <Utils_SALOME_Exception.hxx>
|
||||||
#include <Standard_Failure.hxx>
|
#include <Standard_Failure.hxx>
|
||||||
#include <Standard_ErrorHandler.hxx>
|
#include <Standard_ErrorHandler.hxx>
|
||||||
#include <Basics_OCCTVersion.hxx>
|
|
||||||
#include <utilities.h>
|
#include <utilities.h>
|
||||||
|
|
||||||
// IMPORTANT: include this file _after_ OCC ones, else OCC_CATCH_SIGNALS can be undefined!
|
// IMPORTANT: include this file _after_ OCC ones, else OCC_CATCH_SIGNALS can be undefined!
|
||||||
|
@ -50,22 +50,22 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(_pyObject ,Standard_Transient);
|
IMPLEMENT_STANDARD_RTTIEXT(_pyObject ,Standard_Transient);
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(_pyCommand ,Standard_Transient);
|
IMPLEMENT_STANDARD_RTTIEXT(_pyCommand ,Standard_Transient);
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(_pyHypothesisReader,Standard_Transient);
|
IMPLEMENT_STANDARD_RTTIEXT(_pyHypothesisReader,Standard_Transient);
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(_pyGen ,_pyObject);
|
IMPLEMENT_STANDARD_RTTIEXT(_pyGen ,_pyObject);
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(_pyMesh ,_pyObject);
|
IMPLEMENT_STANDARD_RTTIEXT(_pyMesh ,_pyObject);
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(_pySubMesh ,_pyObject);
|
IMPLEMENT_STANDARD_RTTIEXT(_pySubMesh ,_pyObject);
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(_pyMeshEditor ,_pyObject);
|
IMPLEMENT_STANDARD_RTTIEXT(_pyMeshEditor ,_pyObject);
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(_pyHypothesis ,_pyObject);
|
IMPLEMENT_STANDARD_RTTIEXT(_pyHypothesis ,_pyObject);
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(_pySelfEraser ,_pyObject);
|
IMPLEMENT_STANDARD_RTTIEXT(_pySelfEraser ,_pyObject);
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(_pyGroup ,_pyObject);
|
IMPLEMENT_STANDARD_RTTIEXT(_pyGroup ,_pyObject);
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(_pyFilter ,_pyObject);
|
IMPLEMENT_STANDARD_RTTIEXT(_pyFilter ,_pyObject);
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(_pyAlgorithm ,_pyHypothesis);
|
IMPLEMENT_STANDARD_RTTIEXT(_pyAlgorithm ,_pyHypothesis);
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(_pyComplexParamHypo,_pyHypothesis);
|
IMPLEMENT_STANDARD_RTTIEXT(_pyComplexParamHypo,_pyHypothesis);
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(_pyNumberOfSegmentsHyp,_pyHypothesis);
|
IMPLEMENT_STANDARD_RTTIEXT(_pyNumberOfSegmentsHyp,_pyHypothesis);
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(_pyLayerDistributionHypo,_pyHypothesis);
|
IMPLEMENT_STANDARD_RTTIEXT(_pyLayerDistributionHypo,_pyHypothesis);
|
||||||
OCCT_IMPLEMENT_STANDARD_RTTIEXT(_pySegmentLengthAroundVertexHyp,_pyHypothesis);
|
IMPLEMENT_STANDARD_RTTIEXT(_pySegmentLengthAroundVertexHyp,_pyHypothesis);
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using SMESH::TPythonDump;
|
using SMESH::TPythonDump;
|
||||||
|
@ -40,8 +40,6 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
#include <Basics_OCCTVersion.hxx>
|
|
||||||
|
|
||||||
#include <SALOMEconfig.h>
|
#include <SALOMEconfig.h>
|
||||||
#include CORBA_CLIENT_HEADER(SALOMEDS)
|
#include CORBA_CLIENT_HEADER(SALOMEDS)
|
||||||
|
|
||||||
@ -160,7 +158,7 @@ public:
|
|||||||
|
|
||||||
bool AddAccessorMethod( _pyID theObjectID, const char* theAcsMethod );
|
bool AddAccessorMethod( _pyID theObjectID, const char* theAcsMethod );
|
||||||
|
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(_pyCommand,Standard_Transient)
|
DEFINE_STANDARD_RTTIEXT(_pyCommand,Standard_Transient)
|
||||||
};
|
};
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------------
|
||||||
@ -200,7 +198,7 @@ public:
|
|||||||
virtual void ClearCommands();
|
virtual void ClearCommands();
|
||||||
virtual void Free() {}
|
virtual void Free() {}
|
||||||
|
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(_pyObject,Standard_Transient)
|
DEFINE_STANDARD_RTTIEXT(_pyObject,Standard_Transient)
|
||||||
};
|
};
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------------
|
||||||
@ -331,7 +329,7 @@ private:
|
|||||||
std::map< _AString, ExportedMeshData > myFile2ExportedMesh;
|
std::map< _AString, ExportedMeshData > myFile2ExportedMesh;
|
||||||
Handle( _pyHypothesisReader ) myHypReader;
|
Handle( _pyHypothesisReader ) myHypReader;
|
||||||
|
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(_pyGen,_pyObject)
|
DEFINE_STANDARD_RTTIEXT(_pyGen,_pyObject)
|
||||||
};
|
};
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------------
|
||||||
@ -372,7 +370,7 @@ private:
|
|||||||
static void AddMeshAccess( const Handle(_pyCommand)& theCommand )
|
static void AddMeshAccess( const Handle(_pyCommand)& theCommand )
|
||||||
{ theCommand->SetObject( theCommand->GetObject() + "." _pyMesh_ACCESS_METHOD ); }
|
{ theCommand->SetObject( theCommand->GetObject() + "." _pyMesh_ACCESS_METHOD ); }
|
||||||
|
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(_pyMesh,_pyObject)
|
DEFINE_STANDARD_RTTIEXT(_pyMesh,_pyObject)
|
||||||
};
|
};
|
||||||
#undef _pyMesh_ACCESS_METHOD
|
#undef _pyMesh_ACCESS_METHOD
|
||||||
|
|
||||||
@ -392,7 +390,7 @@ public:
|
|||||||
virtual void Flush() {}
|
virtual void Flush() {}
|
||||||
virtual bool CanClear();
|
virtual bool CanClear();
|
||||||
|
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(_pyMesh,_pyObject)
|
DEFINE_STANDARD_RTTIEXT(_pyMesh,_pyObject)
|
||||||
};
|
};
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------------
|
||||||
@ -476,7 +474,7 @@ public:
|
|||||||
//void ComputeSaved ( const Handle(_pyCommand)& theComputeCommand );
|
//void ComputeSaved ( const Handle(_pyCommand)& theComputeCommand );
|
||||||
|
|
||||||
|
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(_pyHypothesis,_pyObject)
|
DEFINE_STANDARD_RTTIEXT(_pyHypothesis,_pyObject)
|
||||||
};
|
};
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------------
|
||||||
@ -493,7 +491,7 @@ public:
|
|||||||
virtual const char* AccessorMethod() const { return "GetAlgorithm()"; }
|
virtual const char* AccessorMethod() const { return "GetAlgorithm()"; }
|
||||||
virtual bool IsWrappable(const _pyID& theMesh) { return !myIsWrapped; }
|
virtual bool IsWrappable(const _pyID& theMesh) { return !myIsWrapped; }
|
||||||
|
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(_pyAlgorithm,_pyHypothesis)
|
DEFINE_STANDARD_RTTIEXT(_pyAlgorithm,_pyHypothesis)
|
||||||
};
|
};
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------------
|
||||||
@ -508,7 +506,7 @@ public:
|
|||||||
virtual void Process( const Handle(_pyCommand)& theCommand);
|
virtual void Process( const Handle(_pyCommand)& theCommand);
|
||||||
virtual void Flush();
|
virtual void Flush();
|
||||||
|
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(_pyComplexParamHypo,_pyHypothesis)
|
DEFINE_STANDARD_RTTIEXT(_pyComplexParamHypo,_pyHypothesis)
|
||||||
};
|
};
|
||||||
DEFINE_STANDARD_HANDLE (_pyComplexParamHypo, _pyHypothesis);
|
DEFINE_STANDARD_HANDLE (_pyComplexParamHypo, _pyHypothesis);
|
||||||
|
|
||||||
@ -530,7 +528,7 @@ public:
|
|||||||
const _pyID& theMesh);
|
const _pyID& theMesh);
|
||||||
virtual void Free() { my1dHyp.Nullify(); }
|
virtual void Free() { my1dHyp.Nullify(); }
|
||||||
|
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(_pyLayerDistributionHypo,_pyHypothesis)
|
DEFINE_STANDARD_RTTIEXT(_pyLayerDistributionHypo,_pyHypothesis)
|
||||||
};
|
};
|
||||||
DEFINE_STANDARD_HANDLE (_pyLayerDistributionHypo, _pyHypothesis);
|
DEFINE_STANDARD_HANDLE (_pyLayerDistributionHypo, _pyHypothesis);
|
||||||
|
|
||||||
@ -547,7 +545,7 @@ public:
|
|||||||
const _pyID& theMesh);
|
const _pyID& theMesh);
|
||||||
void Flush();
|
void Flush();
|
||||||
|
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(_pyNumberOfSegmentsHyp,_pyHypothesis)
|
DEFINE_STANDARD_RTTIEXT(_pyNumberOfSegmentsHyp,_pyHypothesis)
|
||||||
};
|
};
|
||||||
DEFINE_STANDARD_HANDLE (_pyNumberOfSegmentsHyp, _pyHypothesis);
|
DEFINE_STANDARD_HANDLE (_pyNumberOfSegmentsHyp, _pyHypothesis);
|
||||||
|
|
||||||
@ -562,7 +560,7 @@ public:
|
|||||||
_pySegmentLengthAroundVertexHyp(const Handle(_pyCommand)& theCrCmd): _pyHypothesis(theCrCmd) {}
|
_pySegmentLengthAroundVertexHyp(const Handle(_pyCommand)& theCrCmd): _pyHypothesis(theCrCmd) {}
|
||||||
virtual bool Addition2Creation( const Handle(_pyCommand)& theAdditionCmd,
|
virtual bool Addition2Creation( const Handle(_pyCommand)& theAdditionCmd,
|
||||||
const _pyID& theMesh);
|
const _pyID& theMesh);
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(_pySegmentLengthAroundVertexHyp,_pyHypothesis)
|
DEFINE_STANDARD_RTTIEXT(_pySegmentLengthAroundVertexHyp,_pyHypothesis)
|
||||||
};
|
};
|
||||||
DEFINE_STANDARD_HANDLE (_pySegmentLengthAroundVertexHyp, _pyHypothesis);
|
DEFINE_STANDARD_HANDLE (_pySegmentLengthAroundVertexHyp, _pyHypothesis);
|
||||||
|
|
||||||
@ -581,7 +579,7 @@ public:
|
|||||||
virtual bool CanClear();
|
virtual bool CanClear();
|
||||||
static bool IsAliveCmd( const Handle(_pyCommand)& theCmd );
|
static bool IsAliveCmd( const Handle(_pyCommand)& theCmd );
|
||||||
|
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(_pySelfEraser,_pyObject)
|
DEFINE_STANDARD_RTTIEXT(_pySelfEraser,_pyObject)
|
||||||
};
|
};
|
||||||
DEFINE_STANDARD_HANDLE (_pySelfEraser, _pyObject);
|
DEFINE_STANDARD_HANDLE (_pySelfEraser, _pyObject);
|
||||||
|
|
||||||
@ -603,7 +601,7 @@ public:
|
|||||||
void SetCreator( const Handle(_pyObject)& theCreator ) { myCreator = theCreator; }
|
void SetCreator( const Handle(_pyObject)& theCreator ) { myCreator = theCreator; }
|
||||||
static bool CanBeArgOfMethod(const _AString& theMethodName);
|
static bool CanBeArgOfMethod(const _AString& theMethodName);
|
||||||
|
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(_pySubMesh,_pyObject)
|
DEFINE_STANDARD_RTTIEXT(_pySubMesh,_pyObject)
|
||||||
};
|
};
|
||||||
// -------------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------------
|
||||||
/*!
|
/*!
|
||||||
@ -623,7 +621,7 @@ public:
|
|||||||
//virtual void Free() { myUsers.clear(); }
|
//virtual void Free() { myUsers.clear(); }
|
||||||
const _pyID& GetNewID() const { return myNewID; }
|
const _pyID& GetNewID() const { return myNewID; }
|
||||||
|
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(_pyFilter,_pyObject)
|
DEFINE_STANDARD_RTTIEXT(_pyFilter,_pyObject)
|
||||||
};
|
};
|
||||||
DEFINE_STANDARD_HANDLE (_pyFilter, _pyObject);
|
DEFINE_STANDARD_HANDLE (_pyFilter, _pyObject);
|
||||||
|
|
||||||
@ -644,7 +642,7 @@ public:
|
|||||||
virtual bool CanClear();
|
virtual bool CanClear();
|
||||||
void RemovedWithContents();
|
void RemovedWithContents();
|
||||||
|
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(_pyGroup,_pySubMesh)
|
DEFINE_STANDARD_RTTIEXT(_pyGroup,_pySubMesh)
|
||||||
};
|
};
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------------
|
||||||
@ -659,7 +657,7 @@ public:
|
|||||||
_pyHypothesisReader();
|
_pyHypothesisReader();
|
||||||
Handle(_pyHypothesis) GetHypothesis(const _AString& hypType,
|
Handle(_pyHypothesis) GetHypothesis(const _AString& hypType,
|
||||||
const Handle(_pyCommand)& creationCmd) const;
|
const Handle(_pyCommand)& creationCmd) const;
|
||||||
OCCT_DEFINE_STANDARD_RTTIEXT(_pyHypothesisReader,Standard_Transient)
|
DEFINE_STANDARD_RTTIEXT(_pyHypothesisReader,Standard_Transient)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -40,8 +40,6 @@
|
|||||||
#include <SALOMEDS_wrap.hxx>
|
#include <SALOMEDS_wrap.hxx>
|
||||||
#include <GEOM_wrap.hxx>
|
#include <GEOM_wrap.hxx>
|
||||||
|
|
||||||
#include <Basics_OCCTVersion.hxx>
|
|
||||||
|
|
||||||
#include <BRep_Tool.hxx>
|
#include <BRep_Tool.hxx>
|
||||||
#include <Geom_CylindricalSurface.hxx>
|
#include <Geom_CylindricalSurface.hxx>
|
||||||
#include <Geom_Plane.hxx>
|
#include <Geom_Plane.hxx>
|
||||||
@ -3941,16 +3939,6 @@ CORBA::Boolean FilterLibrary_i::Save()
|
|||||||
if ( myFileName == 0 || strlen( myFileName ) == 0 )
|
if ( myFileName == 0 || strlen( myFileName ) == 0 )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
#if OCC_VERSION_MAJOR < 7
|
|
||||||
FILE* aOutFile = fopen( myFileName, "wt" );
|
|
||||||
if ( !aOutFile )
|
|
||||||
return false;
|
|
||||||
|
|
||||||
LDOM_XmlWriter aWriter( aOutFile );
|
|
||||||
aWriter.SetIndentation( 2 );
|
|
||||||
aWriter << myDoc;
|
|
||||||
fclose( aOutFile );
|
|
||||||
#else
|
|
||||||
std::filebuf fb;
|
std::filebuf fb;
|
||||||
fb.open( myFileName, std::ios::out );
|
fb.open( myFileName, std::ios::out );
|
||||||
|
|
||||||
@ -3960,7 +3948,6 @@ CORBA::Boolean FilterLibrary_i::Save()
|
|||||||
aWriter.SetIndentation( 2 );
|
aWriter.SetIndentation( 2 );
|
||||||
aWriter.Write( os, myDoc );
|
aWriter.Write( os, myDoc );
|
||||||
fb.close();
|
fb.close();
|
||||||
#endif
|
|
||||||
|
|
||||||
TPythonDump()<<this<<".Save()";
|
TPythonDump()<<this<<".Save()";
|
||||||
return true;
|
return true;
|
||||||
|
@ -64,7 +64,6 @@
|
|||||||
#include <Utils_CorbaException.hxx>
|
#include <Utils_CorbaException.hxx>
|
||||||
#include <SALOMEDS_wrap.hxx>
|
#include <SALOMEDS_wrap.hxx>
|
||||||
#include <SALOME_GenericObj_i.hh>
|
#include <SALOME_GenericObj_i.hh>
|
||||||
#include <Basics_OCCTVersion.hxx>
|
|
||||||
|
|
||||||
#include <BRepAdaptor_Surface.hxx>
|
#include <BRepAdaptor_Surface.hxx>
|
||||||
#include <BRep_Tool.hxx>
|
#include <BRep_Tool.hxx>
|
||||||
@ -76,15 +75,8 @@
|
|||||||
#include <gp_Ax2.hxx>
|
#include <gp_Ax2.hxx>
|
||||||
#include <gp_Vec.hxx>
|
#include <gp_Vec.hxx>
|
||||||
|
|
||||||
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
|
||||||
#define NO_CAS_CATCH
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Standard_Failure.hxx>
|
#include <Standard_Failure.hxx>
|
||||||
|
|
||||||
#ifdef NO_CAS_CATCH
|
|
||||||
#include <Standard_ErrorHandler.hxx>
|
#include <Standard_ErrorHandler.hxx>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
@ -3890,7 +3882,6 @@ SMESH_MeshEditor_i::scale(SMESH::SMESH_IDSource_ptr theObject,
|
|||||||
};
|
};
|
||||||
gp_Trsf aTrsf;
|
gp_Trsf aTrsf;
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06070100
|
|
||||||
// fight against orthogonalization
|
// fight against orthogonalization
|
||||||
// aTrsf.SetValues( S[0], 0, 0, thePoint.x * (1-S[0]),
|
// aTrsf.SetValues( S[0], 0, 0, thePoint.x * (1-S[0]),
|
||||||
// 0, S[1], 0, thePoint.y * (1-S[1]),
|
// 0, S[1], 0, thePoint.y * (1-S[1]),
|
||||||
@ -3903,13 +3894,6 @@ SMESH_MeshEditor_i::scale(SMESH::SMESH_IDSource_ptr theObject,
|
|||||||
thePoint.z * (1-S[2]));
|
thePoint.z * (1-S[2]));
|
||||||
M.SetDiagonal( S[0], S[1], S[2] );
|
M.SetDiagonal( S[0], S[1], S[2] );
|
||||||
|
|
||||||
#else
|
|
||||||
double tol = std::numeric_limits<double>::max();
|
|
||||||
aTrsf.SetValues( S[0], 0, 0, thePoint.x * (1-S[0]),
|
|
||||||
0, S[1], 0, thePoint.y * (1-S[1]),
|
|
||||||
0, 0, S[2], thePoint.z * (1-S[2]), tol, tol);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
TIDSortedElemSet copyElements;
|
TIDSortedElemSet copyElements;
|
||||||
TIDSortedElemSet* workElements = &elements;
|
TIDSortedElemSet* workElements = &elements;
|
||||||
if ( myIsPreviewMode )
|
if ( myIsPreviewMode )
|
||||||
|
@ -295,9 +295,7 @@ SMESH::point_array*
|
|||||||
}
|
}
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
try {
|
try {
|
||||||
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
ok = myPattern.Apply( aMesh, fset, theNodeIndexOnKeyPoint1, theReverse );
|
ok = myPattern.Apply( aMesh, fset, theNodeIndexOnKeyPoint1, theReverse );
|
||||||
}
|
}
|
||||||
catch (Standard_Failure& exc) {
|
catch (Standard_Failure& exc) {
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
|
|
||||||
#include <utilities.h>
|
#include <utilities.h>
|
||||||
#include <Utils_ExceptHandlers.hxx>
|
#include <Utils_ExceptHandlers.hxx>
|
||||||
#include <Basics_OCCTVersion.hxx>
|
|
||||||
|
|
||||||
#include <GEOMUtils.hxx>
|
#include <GEOMUtils.hxx>
|
||||||
|
|
||||||
@ -1371,11 +1370,7 @@ namespace
|
|||||||
}
|
}
|
||||||
if ( surf->IsKind( STANDARD_TYPE(Geom_BSplineSurface )) ||
|
if ( surf->IsKind( STANDARD_TYPE(Geom_BSplineSurface )) ||
|
||||||
surf->IsKind( STANDARD_TYPE(Geom_BezierSurface )))
|
surf->IsKind( STANDARD_TYPE(Geom_BezierSurface )))
|
||||||
#if OCC_VERSION_MAJOR < 7
|
|
||||||
if ( !noSafeTShapes.insert((const Standard_Transient*) _face.TShape() ).second )
|
|
||||||
#else
|
|
||||||
if ( !noSafeTShapes.insert( _face.TShape().get() ).second )
|
if ( !noSafeTShapes.insert( _face.TShape().get() ).second )
|
||||||
#endif
|
|
||||||
isSafe = false;
|
isSafe = false;
|
||||||
|
|
||||||
double f, l;
|
double f, l;
|
||||||
@ -1415,11 +1410,7 @@ namespace
|
|||||||
edgeIsSafe = false;
|
edgeIsSafe = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if OCC_VERSION_MAJOR < 7
|
|
||||||
if ( !edgeIsSafe && !noSafeTShapes.insert((const Standard_Transient*) e.TShape() ).second )
|
|
||||||
#else
|
|
||||||
if ( !edgeIsSafe && !noSafeTShapes.insert( e.TShape().get() ).second )
|
if ( !edgeIsSafe && !noSafeTShapes.insert( e.TShape().get() ).second )
|
||||||
#endif
|
|
||||||
isSafe = false;
|
isSafe = false;
|
||||||
}
|
}
|
||||||
return isSafe;
|
return isSafe;
|
||||||
|
@ -31,16 +31,9 @@
|
|||||||
#include <math_GaussSingleIntegration.hxx>
|
#include <math_GaussSingleIntegration.hxx>
|
||||||
#include <utilities.h>
|
#include <utilities.h>
|
||||||
|
|
||||||
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
|
||||||
#define NO_CAS_CATCH
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Standard_Failure.hxx>
|
#include <Standard_Failure.hxx>
|
||||||
#include <Expr_NamedUnknown.hxx>
|
#include <Expr_NamedUnknown.hxx>
|
||||||
|
|
||||||
#ifdef NO_CAS_CATCH
|
|
||||||
#include <Standard_ErrorHandler.hxx>
|
#include <Standard_ErrorHandler.hxx>
|
||||||
#endif
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@ -60,9 +53,7 @@ bool Function::value( const double, double& f ) const
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
if (myConv == 0) {
|
if (myConv == 0) {
|
||||||
try {
|
try {
|
||||||
#ifdef NO_CAS_CATCH
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
f = pow( 10., f );
|
f = pow( 10., f );
|
||||||
} catch(Standard_Failure) {
|
} catch(Standard_Failure) {
|
||||||
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
|
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
|
||||||
@ -192,9 +183,7 @@ FunctionExpr::FunctionExpr( const char* str, const int conv )
|
|||||||
{
|
{
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
try {
|
try {
|
||||||
#ifdef NO_CAS_CATCH
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
myExpr = ExprIntrp_GenExp::Create();
|
myExpr = ExprIntrp_GenExp::Create();
|
||||||
myExpr->Process( ( Standard_CString )str );
|
myExpr->Process( ( Standard_CString )str );
|
||||||
} catch(Standard_Failure) {
|
} catch(Standard_Failure) {
|
||||||
@ -228,9 +217,7 @@ bool FunctionExpr::value( const double t, double& f ) const
|
|||||||
( ( TColStd_Array1OfReal& )myValues ).ChangeValue( 1 ) = t;
|
( ( TColStd_Array1OfReal& )myValues ).ChangeValue( 1 ) = t;
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
try {
|
try {
|
||||||
#ifdef NO_CAS_CATCH
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
f = myExpr->Expression()->Evaluate( myVars, myValues );
|
f = myExpr->Expression()->Evaluate( myVars, myValues );
|
||||||
} catch(Standard_Failure) {
|
} catch(Standard_Failure) {
|
||||||
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
|
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
|
||||||
@ -246,9 +233,7 @@ double FunctionExpr::integral( const double a, const double b ) const
|
|||||||
{
|
{
|
||||||
double res = 0.0;
|
double res = 0.0;
|
||||||
try {
|
try {
|
||||||
#ifdef NO_CAS_CATCH
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
math_GaussSingleIntegration _int
|
math_GaussSingleIntegration _int
|
||||||
( *static_cast<math_Function*>( const_cast<FunctionExpr*> (this) ), a, b, 20 );
|
( *static_cast<math_Function*>( const_cast<FunctionExpr*> (this) ), a, b, 20 );
|
||||||
if( _int.IsDone() )
|
if( _int.IsDone() )
|
||||||
|
@ -42,15 +42,8 @@
|
|||||||
#include <TopExp.hxx>
|
#include <TopExp.hxx>
|
||||||
#include <TopTools_IndexedMapOfShape.hxx>
|
#include <TopTools_IndexedMapOfShape.hxx>
|
||||||
|
|
||||||
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
|
||||||
#define NO_CAS_CATCH
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Standard_Failure.hxx>
|
#include <Standard_Failure.hxx>
|
||||||
|
|
||||||
#ifdef NO_CAS_CATCH
|
|
||||||
#include <Standard_ErrorHandler.hxx>
|
#include <Standard_ErrorHandler.hxx>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Basics_Utils.hxx>
|
#include <Basics_Utils.hxx>
|
||||||
|
|
||||||
@ -238,9 +231,7 @@ void StdMeshers_NumberOfSegments::SetTableFunction(const vector<double>& table)
|
|||||||
if( _convMode==0 )
|
if( _convMode==0 )
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
#ifdef NO_CAS_CATCH
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
val = pow( 10.0, val );
|
val = pow( 10.0, val );
|
||||||
}
|
}
|
||||||
catch(Standard_Failure) {
|
catch(Standard_Failure) {
|
||||||
@ -335,9 +326,7 @@ bool process( const TCollection_AsciiString& str, int convMode,
|
|||||||
bool parsed_ok = true;
|
bool parsed_ok = true;
|
||||||
Handle( ExprIntrp_GenExp ) myExpr;
|
Handle( ExprIntrp_GenExp ) myExpr;
|
||||||
try {
|
try {
|
||||||
#ifdef NO_CAS_CATCH
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
myExpr = ExprIntrp_GenExp::Create();
|
myExpr = ExprIntrp_GenExp::Create();
|
||||||
myExpr->Process( str.ToCString() );
|
myExpr->Process( str.ToCString() );
|
||||||
} catch(Standard_Failure) {
|
} catch(Standard_Failure) {
|
||||||
|
@ -29,8 +29,6 @@
|
|||||||
|
|
||||||
#include "StdMeshers_RadialPrism_3D.hxx"
|
#include "StdMeshers_RadialPrism_3D.hxx"
|
||||||
|
|
||||||
#include <Basics_OCCTVersion.hxx>
|
|
||||||
|
|
||||||
#include "StdMeshers_ProjectionUtils.hxx"
|
#include "StdMeshers_ProjectionUtils.hxx"
|
||||||
#include "StdMeshers_NumberOfLayers.hxx"
|
#include "StdMeshers_NumberOfLayers.hxx"
|
||||||
#include "StdMeshers_LayerDistribution.hxx"
|
#include "StdMeshers_LayerDistribution.hxx"
|
||||||
|
@ -37,15 +37,8 @@
|
|||||||
#include <Expr_NamedUnknown.hxx>
|
#include <Expr_NamedUnknown.hxx>
|
||||||
#include <Expr_GeneralExpression.hxx>
|
#include <Expr_GeneralExpression.hxx>
|
||||||
|
|
||||||
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
|
||||||
#define NO_CAS_CATCH
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Standard_Failure.hxx>
|
#include <Standard_Failure.hxx>
|
||||||
|
|
||||||
#ifdef NO_CAS_CATCH
|
|
||||||
#include <Standard_ErrorHandler.hxx>
|
#include <Standard_ErrorHandler.hxx>
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
# include <algorithm>
|
# include <algorithm>
|
||||||
@ -356,9 +349,7 @@ void StdMeshersGUI_DistrPreview::update()
|
|||||||
x = y = 0;
|
x = y = 0;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#ifdef NO_CAS_CATCH
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
replot();
|
replot();
|
||||||
} catch(Standard_Failure) {
|
} catch(Standard_Failure) {
|
||||||
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
|
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
|
||||||
@ -404,9 +395,7 @@ bool StdMeshersGUI_DistrPreview::init( const QString& str )
|
|||||||
Kernel_Utils::Localizer loc;
|
Kernel_Utils::Localizer loc;
|
||||||
bool parsed_ok = true;
|
bool parsed_ok = true;
|
||||||
try {
|
try {
|
||||||
#ifdef NO_CAS_CATCH
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
myExpr = ExprIntrp_GenExp::Create();
|
myExpr = ExprIntrp_GenExp::Create();
|
||||||
myExpr->Process( ( Standard_CString ) str.toLatin1().data() );
|
myExpr->Process( ( Standard_CString ) str.toLatin1().data() );
|
||||||
} catch(Standard_Failure) {
|
} catch(Standard_Failure) {
|
||||||
@ -446,9 +435,7 @@ double StdMeshersGUI_DistrPreview::calc( bool& ok )
|
|||||||
|
|
||||||
ok = true;
|
ok = true;
|
||||||
try {
|
try {
|
||||||
#ifdef NO_CAS_CATCH
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
res = myExpr->Expression()->Evaluate( myVars, myValues );
|
res = myExpr->Expression()->Evaluate( myVars, myValues );
|
||||||
} catch(Standard_Failure) {
|
} catch(Standard_Failure) {
|
||||||
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
|
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
|
||||||
@ -472,9 +459,7 @@ bool StdMeshersGUI_DistrPreview::convert( double& v ) const
|
|||||||
case EXPONENT:
|
case EXPONENT:
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
#ifdef NO_CAS_CATCH
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
// in StdMeshers_NumberOfSegments.cc
|
// in StdMeshers_NumberOfSegments.cc
|
||||||
// const double PRECISION = 1e-7;
|
// const double PRECISION = 1e-7;
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user