Commit 23a5fc8a authored by T.J. Corona's avatar T.J. Corona

Add a couple missing python methods

parent a8780a84
......@@ -53,6 +53,7 @@ py::class_< smtk::mesh::HandleRange > pybind11_init_HandleRange(py::module &m)
.def(py::init<smtk::mesh::HandleRange const &>())
.def(py::init<smtk::mesh::HandleRange::domain_type const &>())
.def(py::init<smtk::mesh::HandleRange::interval_type const &>())
.def("__repr__", [](smtk::mesh::HandleRange& range){ std::stringstream s; s << range; return s.str(); })
.def("begin", [](smtk::mesh::HandleRange& range){ return range.begin(); })
.def("deepcopy", (smtk::mesh::HandleRange & (smtk::mesh::HandleRange::*)(smtk::mesh::HandleRange)) &smtk::mesh::HandleRange::operator=)
.def("elements_begin", [](smtk::mesh::HandleRange& range){ return smtk::mesh::rangeElementsBegin(range); })
......
......@@ -64,6 +64,7 @@ PySharedPtrClass< smtk::mesh::MeshSet > pybind11_init_smtk_mesh_MeshSet(py::modu
.def("domains", &smtk::mesh::MeshSet::domains)
.def("extractShell", (smtk::mesh::MeshSet (smtk::mesh::MeshSet::*)() const) &smtk::mesh::MeshSet::extractShell)
.def("extractAdjacenciesOfDimension", (smtk::mesh::MeshSet (smtk::mesh::MeshSet::*)(int) const) &smtk::mesh::MeshSet::extractAdjacenciesOfDimension)
.def("id", &smtk::mesh::MeshSet::id)
.def("is_empty", &smtk::mesh::MeshSet::is_empty)
.def("mergeCoincidentContactPoints", &smtk::mesh::MeshSet::mergeCoincidentContactPoints, py::arg("tolerance") = 9.9999999999999995E-7)
.def("modelEntities", (bool (smtk::mesh::MeshSet::*)(smtk::model::EntityRefArray&)) &smtk::mesh::MeshSet::modelEntities, py::arg("arg0"))
......
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