| 9 | using namespace PyMesh; |
| 10 | |
| 11 | void init_MeshFactory(py::module &m) { |
| 12 | py::class_<MeshFactory>(m, "MeshFactory") |
| 13 | .def(py::init<>()) |
| 14 | .def("load_file", &MeshFactory::load_file, |
| 15 | py::return_value_policy::reference_internal) |
| 16 | .def("load_file_with_hint", &MeshFactory::load_file_with_hint, |
| 17 | py::return_value_policy::reference_internal) |
| 18 | .def("load_data", &MeshFactory::load_data, |
| 19 | py::return_value_policy::reference_internal) |
| 20 | .def("load_matrices", &MeshFactory::load_matrices, |
| 21 | py::return_value_policy::reference_internal) |
| 22 | .def("with_connectivity", &MeshFactory::with_connectivity, |
| 23 | py::return_value_policy::reference_internal) |
| 24 | .def("with_attribute", &MeshFactory::with_attribute, |
| 25 | py::return_value_policy::reference_internal) |
| 26 | .def("drop_zero_dim", &MeshFactory::drop_zero_dim, |
| 27 | py::return_value_policy::reference_internal) |
| 28 | .def("create", &MeshFactory::create); |
| 29 | } |