8 #include <pybind11/pybind11.h>
13 using namespace pybind11::literals;
17 py::class_<cloudViewer::GenericIndexedCloud, cloudViewer::GenericCloud>(cccorelib,
"GenericIndexedCloud")
22 if (index <
self.
size())
24 return *
self.getPoint(index);
28 throw std::out_of_range(std::string(
"index ") +
std::to_string(index) +
32 py::return_value_policy::reference)
37 if (index <
self.
size())
39 self.getPoint(index, P);
43 throw std::out_of_range(std::string(
"index ") +
std::to_string(index) +
47 py::return_value_policy::reference);
void define_GenericIndexedCloud(py::module &cccorelib)
A generic 3D point cloud with index-based point access.
std::string to_string(const T &n)