File indexing completed on 2026-12-03 10:55:31
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _IMeshTools_ModelAlgo_HeaderFile
0017 #define _IMeshTools_ModelAlgo_HeaderFile
0018
0019 #include <Standard_Transient.hxx>
0020 #include <Standard_ErrorHandler.hxx>
0021 #include <Message_ProgressRange.hxx>
0022
0023 class IMeshData_Model;
0024 struct IMeshTools_Parameters;
0025
0026
0027 class IMeshTools_ModelAlgo : public Standard_Transient
0028 {
0029 public:
0030
0031 ~IMeshTools_ModelAlgo() override = default;
0032
0033
0034 bool Perform(const occ::handle<IMeshData_Model>& theModel,
0035 const IMeshTools_Parameters& theParameters,
0036 const Message_ProgressRange& theRange)
0037 {
0038 try
0039 {
0040 OCC_CATCH_SIGNALS
0041
0042 return performInternal(theModel, theParameters, theRange);
0043 }
0044 catch (Standard_Failure const&)
0045 {
0046 return false;
0047 }
0048 }
0049
0050 DEFINE_STANDARD_RTTIEXT(IMeshTools_ModelAlgo, Standard_Transient)
0051
0052 protected:
0053
0054 IMeshTools_ModelAlgo() {}
0055
0056
0057 Standard_EXPORT virtual bool performInternal(const occ::handle<IMeshData_Model>& theModel,
0058 const IMeshTools_Parameters& theParameters,
0059 const Message_ProgressRange& theRange) = 0;
0060 };
0061
0062 #endif