0000340: Make mesh 4-node parabolic instead of plain 3-node

This commit is contained in:
wmayer
2012-04-02 09:11:58 +02:00
parent d6061d30a0
commit 2a3317113f
9 changed files with 472 additions and 39 deletions

View File

@@ -579,6 +579,8 @@ void StdMeshers_Deflection1DPy::init_type(PyObject* module)
{
behaviors().name("StdMeshers_Deflection1D");
behaviors().doc("StdMeshers_Deflection1D");
add_varargs_method("setDeflection", &StdMeshers_Deflection1DPy::setDeflection, "setDeflection()");
SMESH_HypothesisPyBase::init_type(module);
}
@@ -591,6 +593,13 @@ StdMeshers_Deflection1DPy::~StdMeshers_Deflection1DPy()
{
}
Py::Object StdMeshers_Deflection1DPy::setDeflection(const Py::Tuple& args)
{
double fine = (double)Py::Float(args[0]);
hypothesis<StdMeshers_Deflection1D>()->SetDeflection(fine);
return Py::None();
}
// ----------------------------------------------------------------------------
void StdMeshers_Hexa_3DPy::init_type(PyObject* module)