Skip to content

Commit

Permalink
Merge pull request #6151 from lramati/development
Browse files Browse the repository at this point in the history
[python] revert save_to_ply options to properties
  • Loading branch information
dorodnic committed Mar 29, 2020
2 parents 58fc51f + f0b42d7 commit fbdc312
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions wrappers/python/python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ PYBIND11_MODULE(NAME, m) {
/** rs_export.hpp **/
py::class_<rs2::save_to_ply, rs2::filter>(m, "save_to_ply")
.def(py::init<std::string, rs2::pointcloud>(), "filename"_a = "RealSense Pointcloud ", "pc"_a = rs2::pointcloud())
.def_readonly_static("option_ignore_color", &rs2::save_to_ply::OPTION_IGNORE_COLOR)
.def_readonly_static("option_ply_mesh", &rs2::save_to_ply::OPTION_PLY_MESH)
.def_readonly_static("option_ply_binary", &rs2::save_to_ply::OPTION_PLY_BINARY)
.def_readonly_static("option_ply_normals", &rs2::save_to_ply::OPTION_PLY_NORMALS)
.def_readonly_static("option_ply_threshold", &rs2::save_to_ply::OPTION_PLY_THRESHOLD);
.def_property_readonly_static("option_ignore_color", [](py::object) { return rs2::save_to_ply::OPTION_IGNORE_COLOR; })
.def_property_readonly_static("option_ply_mesh", [](py::object) { return rs2::save_to_ply::OPTION_PLY_MESH; })
.def_property_readonly_static("option_ply_binary", [](py::object) { return rs2::save_to_ply::OPTION_PLY_BINARY; })
.def_property_readonly_static("option_ply_normals", [](py::object) { return rs2::save_to_ply::OPTION_PLY_NORMALS; })
.def_property_readonly_static("option_ply_threshold", [](py::object) { return rs2::save_to_ply::OPTION_PLY_THRESHOLD; });

/** rs.hpp **/
m.def("log_to_console", &rs2::log_to_console, "min_severity"_a);
m.def("log_to_file", &rs2::log_to_file, "min_severity"_a, "file_path"_a);
Expand Down

0 comments on commit fbdc312

Please sign in to comment.