| 11 | using namespace PyMesh; |
| 12 | |
| 13 | void init_MeshWriter(py::module &m) { |
| 14 | py::class_<MeshWriter, std::shared_ptr<MeshWriter> >(m, "MeshWriter") |
| 15 | .def(py::init<>()) |
| 16 | .def_static("create", &MeshWriter::create) |
| 17 | .def("with_attribute", &MeshWriter::with_attribute) |
| 18 | .def("in_ascii", &MeshWriter::in_ascii) |
| 19 | .def("use_float", &MeshWriter::use_float) |
| 20 | .def("write_mesh", &MeshWriter::write_mesh) |
| 21 | .def("write", &MeshWriter::write) |
| 22 | .def("set_output_filename", &MeshWriter::set_output_filename) |
| 23 | .def("set_anonymous", &MeshWriter::set_anonymous) |
| 24 | .def("is_anonymous", &MeshWriter::is_anonymous); |
| 25 | } |
| 26 | |