43 #include <pybind11/include/pybind11/pybind11.h> 44 #include <pybind11/include/pybind11/embed.h> 47 #include <IsotropicRemesherPlugin.hh> 51 #include <OpenFlipper/BasePlugin/PythonFunctions.hh> 52 #include <OpenFlipper/PythonInterpreter/PythonTypeConversions.hh> 60 QObject* pluginPointer = getPluginPointer(
"IsotropicRemesher");
63 std::cerr <<
"Error Getting plugin pointer for Plugin-IsotropicRemesher" << std::endl;
70 std::cerr <<
"Error converting plugin pointer for Plugin-IsotropicRemesher" << std::endl;
76 py::class_< IsotropicRemesherPlugin,std::unique_ptr<IsotropicRemesherPlugin, py::nodelete> > remesher(m,
"IsotropicRemesher");
81 remesher.def(py::init([plugin]() {
return plugin; }));
83 remesher.def(
"isotropicRemesh", &IsotropicRemesherPlugin::isotropicRemesh,
84 QCoreApplication::translate(
"PythonDocIsotropicRemesher",
"Isotropic Remeshing of an object").toLatin1().data(),
85 py::arg(QCoreApplication::translate(
"PythonDocIsotropicRemesher",
"ID of the object").toLatin1().data()),
86 py::arg(QCoreApplication::translate(
"PythonDocIsotropicRemesher",
"target edge lenght").toLatin1().data()) );