[MOD] clean SMESH (#12754)

removed old smesh CODE <7
This commit is contained in:
mosfet80
2024-03-11 18:13:00 +01:00
committed by GitHub
parent f6eead2e3b
commit ab89eb0cfd
5 changed files with 0 additions and 136 deletions

View File

@@ -63,9 +63,6 @@
#include <StdMeshers_StartEndLength.hxx>
#include <StdMeshers_UseExisting_1D2D.hxx>
#include <sstream>
#if SMESH_VERSION_MAJOR < 7
#include <StdMeshers_TrianglePreference.hxx>
#endif
#endif
#include <Base/Interpreter.h>
@@ -170,55 +167,6 @@ Py::Object SMESH_HypothesisPy<T>::getLibName(const Py::Tuple& args)
}
#if SMESH_VERSION_MAJOR < 7 // -----------------------------------------------
template<class T>
Py::Object SMESH_HypothesisPy<T>::setParameters(const Py::Tuple& args)
{
std::string paramName = static_cast<std::string>(Py::String(args[0]));
hypothesis<SMESH_Hypothesis>()->SetParameters(paramName.c_str());
return Py::None();
}
template<class T>
Py::Object SMESH_HypothesisPy<T>::getParameters(const Py::Tuple& args)
{
if (!PyArg_ParseTuple(args.ptr(), "")) {
throw Py::Exception();
}
return Py::String(hypothesis<SMESH_Hypothesis>()->GetParameters());
}
template<class T>
Py::Object SMESH_HypothesisPy<T>::setLastParameters(const Py::Tuple& args)
{
if (!PyArg_ParseTuple(args.ptr(), "")) {
throw Py::Exception();
}
std::string paramName = static_cast<std::string>(Py::String(args[0]));
hypothesis<SMESH_Hypothesis>()->SetLastParameters(paramName.c_str());
return Py::None();
}
template<class T>
Py::Object SMESH_HypothesisPy<T>::getLastParameters(const Py::Tuple& args)
{
if (!PyArg_ParseTuple(args.ptr(), "")) {
throw Py::Exception();
}
return Py::String(hypothesis<SMESH_Hypothesis>()->GetLastParameters());
}
template<class T>
Py::Object SMESH_HypothesisPy<T>::clearParameters(const Py::Tuple& args)
{
if (!PyArg_ParseTuple(args.ptr(), "")) {
throw Py::Exception();
}
hypothesis<SMESH_Hypothesis>()->ClearParameters();
return Py::None();
}
#endif // --------------------------------------------------------------------
template<class T>
Py::Object SMESH_HypothesisPy<T>::setParametersByMesh(const Py::Tuple& args)
{
@@ -764,24 +712,6 @@ StdMeshers_Hexa_3DPy::StdMeshers_Hexa_3DPy(int hypId, int studyId, SMESH_Gen* ge
StdMeshers_Hexa_3DPy::~StdMeshers_Hexa_3DPy() = default;
// ---------------------------------------------------------------------------
#if SMESH_VERSION_MAJOR < 7 // -----------------------------------------------
void StdMeshers_TrianglePreferencePy::init_type(PyObject* module)
{
behaviors().name("StdMeshers_TrianglePreference");
behaviors().doc("StdMeshers_TrianglePreference");
SMESH_HypothesisPyBase::init_type(module);
}
StdMeshers_TrianglePreferencePy::StdMeshers_TrianglePreferencePy(int hypId,
int studyId,
SMESH_Gen* gen)
: SMESH_HypothesisPyBase(new StdMeshers_TrianglePreference(hypId, studyId, gen))
{}
StdMeshers_TrianglePreferencePy::~StdMeshers_TrianglePreferencePy() = default;
#endif // --------------------------------------------------------------------
// ---------------------------------------------------------------------------