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

Function init_ConvexHull

python/PyConvexHull.cpp:12–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using namespace PyMesh;
11
12void init_ConvexHull(py::module& m) {
13 py::class_<ConvexHullEngine, std::shared_ptr<ConvexHullEngine> >(
14 m, "ConvexHullEngine")
15 .def_static("create", &ConvexHullEngine::create)
16 .def_static("supports", &ConvexHullEngine::supports)
17 .def_property_readonly_static("available_engines",
18 [](py::object){
19 return ConvexHullEngine::get_available_engines();})
20 .def("run", &ConvexHullEngine::run)
21 .def("get_vertices", &ConvexHullEngine::get_vertices)
22 .def("get_faces", &ConvexHullEngine::get_faces)
23 .def("get_index_map", &ConvexHullEngine::get_index_map);
24}

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected