feat(python): added python bindings
This commit is contained in:
11
src/python/refinement/bindings.cpp
Normal file
11
src/python/refinement/bindings.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <pybind11/pybind11.h>
|
||||
#include <pybind11/stl.h>
|
||||
#include "bindings.h"
|
||||
|
||||
#include "stroid/refinement/uniform.h"
|
||||
|
||||
namespace py = pybind11;
|
||||
|
||||
void register_refinement_bindings(pybind11::module_ &m) {
|
||||
m.def("UniformRefinement", &stroid::refinement::UniformRefinement, py::arg("mesh"), py::arg("levels"), "Perform uniform refinement without breaking the higher order structure");
|
||||
}
|
||||
Reference in New Issue
Block a user