Commit 2288f4f9 authored by Isaak Lim's avatar Isaak Lim
Browse files

add missing add_face function for polymesh

parent e61ff259
Pipeline #16092 failed with stages
in 1 minute and 10 seconds
......@@ -418,11 +418,9 @@ void expose_type_specific_functions(py::class_<PolyMesh>& _class) {
typedef py::array_t<typename Point::value_type> np_point_t;
.def("add_face", [](PolyMesh& _self, OM::VertexHandle _vh0, OM::VertexHandle _vh1, OM::VertexHandle _vh2, OM::VertexHandle _vh3) {
return static_cast<OM::FaceHandle>(_self.add_face(_vh0, _vh1, _vh2, _vh3));
.def("split", [](PolyMesh& _self, OM::EdgeHandle _eh, np_point_t _arr) {
_self.split(_eh, Point(,,;
......@@ -917,7 +915,7 @@ void expose_mesh(py::module& m, const char *_name) {
.def("add_vertex", [](Mesh& _self, py::array_t<typename Point::value_type> _arr) {
return _self.add_vertex(Point(,,;
return static_cast<OM::VertexHandle>(_self.add_vertex(Point(,,;
.def("delete_vertex", [](Mesh& _self, OM::VertexHandle _vh, bool _delete_isolated) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment