MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / init_MeshFactory

Function init_MeshFactory

python/PyMeshFactory.cpp:11–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9using namespace PyMesh;
10
11void 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}

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected