diff --git a/easy3d/util/version.h b/easy3d/util/version.h index 12b72e60..cb8a27e1 100644 --- a/easy3d/util/version.h +++ b/easy3d/util/version.h @@ -59,7 +59,7 @@ namespace easy3d { #define EASY3D_VERSION_NR 1020504 /// Easy3D release date, in the format YYYYMMDD. -#define EASY3D_RELEASE_DATE 20241229 +#define EASY3D_RELEASE_DATE 20241230 #endif // EASY3D_UTIL_VERSION_H diff --git a/python/bindings/easy3d/algo/surface_mesh_simplification.cpp b/python/bindings/easy3d/algo/surface_mesh_simplification.cpp index ad8d947e..4feb0a23 100644 --- a/python/bindings/easy3d/algo/surface_mesh_simplification.cpp +++ b/python/bindings/easy3d/algo/surface_mesh_simplification.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -36,7 +36,7 @@ struct PyCallBack_easy3d_Property_easy3d_Quadric_t : public easy3d::Property { using easy3d::Property::Property; - class easy3d::Quadric & operator[](unsigned long a0) override { + class easy3d::Quadric & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -55,7 +55,7 @@ struct PyCallBack_easy3d_Property_easy3d_Quadric_t : public easy3d::Property { using easy3d::Property::Property; - class easy3d::NormalCone & operator[](unsigned long a0) override { + class easy3d::NormalCone & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { diff --git a/python/bindings/easy3d/core/graph.cpp b/python/bindings/easy3d/core/graph.cpp index 20b7fb18..9cd94159 100644 --- a/python/bindings/easy3d/core/graph.cpp +++ b/python/bindings/easy3d/core/graph.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -56,7 +56,7 @@ struct PyCallBack_easy3d_Graph : public easy3d::Graph { struct PyCallBack_easy3d_Graph_VertexProperty_easy3d_Graph_VertexConnectivity_t : public easy3d::Graph::VertexProperty { using easy3d::Graph::VertexProperty::VertexProperty; - struct easy3d::Graph::VertexConnectivity & operator[](unsigned long a0) override { + struct easy3d::Graph::VertexConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -76,7 +76,7 @@ struct PyCallBack_easy3d_Graph_VertexProperty_easy3d_Vec_3_float_t : public easy using easy3d::Graph::VertexProperty>::VertexProperty; using _binder_ret_0 = easy3d::Vec<3, float> &; - _binder_ret_0 operator[](unsigned long a0) override { + _binder_ret_0 operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast> *>(this), "__getitem__"); if (overload) { @@ -95,7 +95,7 @@ struct PyCallBack_easy3d_Graph_VertexProperty_easy3d_Vec_3_float_t : public easy struct PyCallBack_easy3d_Graph_EdgeProperty_easy3d_Graph_EdgeConnectivity_t : public easy3d::Graph::EdgeProperty { using easy3d::Graph::EdgeProperty::EdgeProperty; - struct easy3d::Graph::EdgeConnectivity & operator[](unsigned long a0) override { + struct easy3d::Graph::EdgeConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -114,7 +114,7 @@ struct PyCallBack_easy3d_Graph_EdgeProperty_easy3d_Graph_EdgeConnectivity_t : pu struct PyCallBack_easy3d_Property_easy3d_Graph_VertexConnectivity_t : public easy3d::Property { using easy3d::Property::Property; - struct easy3d::Graph::VertexConnectivity & operator[](unsigned long a0) override { + struct easy3d::Graph::VertexConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -133,7 +133,7 @@ struct PyCallBack_easy3d_Property_easy3d_Graph_VertexConnectivity_t : public eas struct PyCallBack_easy3d_Property_easy3d_Graph_EdgeConnectivity_t : public easy3d::Property { using easy3d::Property::Property; - struct easy3d::Graph::EdgeConnectivity & operator[](unsigned long a0) override { + struct easy3d::Graph::EdgeConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -152,7 +152,7 @@ struct PyCallBack_easy3d_Property_easy3d_Graph_EdgeConnectivity_t : public easy3 struct PyCallBack_easy3d_PropertyArray_easy3d_Graph_VertexConnectivity_t : public easy3d::PropertyArray { using easy3d::PropertyArray::PropertyArray; - void reserve(unsigned long a0) override { + void reserve(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reserve"); if (overload) { @@ -165,7 +165,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_Graph_VertexConnectivity_t : publi } return PropertyArray::reserve(a0); } - void resize(unsigned long a0) override { + void resize(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "resize"); if (overload) { @@ -191,7 +191,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_Graph_VertexConnectivity_t : publi } return PropertyArray::push_back(); } - void reset(unsigned long a0) override { + void reset(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reset"); if (overload) { @@ -243,7 +243,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_Graph_VertexConnectivity_t : publi } return PropertyArray::shrink_to_fit(); } - void swap(unsigned long a0, unsigned long a1) override { + void swap(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "swap"); if (overload) { @@ -256,7 +256,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_Graph_VertexConnectivity_t : publi } return PropertyArray::swap(a0, a1); } - void copy(unsigned long a0, unsigned long a1) override { + void copy(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "copy"); if (overload) { @@ -314,7 +314,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_Graph_VertexConnectivity_t : publi struct PyCallBack_easy3d_PropertyArray_easy3d_Graph_EdgeConnectivity_t : public easy3d::PropertyArray { using easy3d::PropertyArray::PropertyArray; - void reserve(unsigned long a0) override { + void reserve(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reserve"); if (overload) { @@ -327,7 +327,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_Graph_EdgeConnectivity_t : public } return PropertyArray::reserve(a0); } - void resize(unsigned long a0) override { + void resize(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "resize"); if (overload) { @@ -353,7 +353,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_Graph_EdgeConnectivity_t : public } return PropertyArray::push_back(); } - void reset(unsigned long a0) override { + void reset(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reset"); if (overload) { @@ -405,7 +405,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_Graph_EdgeConnectivity_t : public } return PropertyArray::shrink_to_fit(); } - void swap(unsigned long a0, unsigned long a1) override { + void swap(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "swap"); if (overload) { @@ -418,7 +418,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_Graph_EdgeConnectivity_t : public } return PropertyArray::swap(a0, a1); } - void copy(unsigned long a0, unsigned long a1) override { + void copy(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "copy"); if (overload) { @@ -607,7 +607,7 @@ void bind_easy3d_core_graph(pybind11::module_& m) cl.def( pybind11::init( [](PyCallBack_easy3d_Property_easy3d_Graph_VertexConnectivity_t const &o){ return new PyCallBack_easy3d_Property_easy3d_Graph_VertexConnectivity_t(o); } ) ); cl.def( pybind11::init( [](easy3d::Property const &o){ return new easy3d::Property(o); } ) ); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::Graph::VertexConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::Graph::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::Graph::VertexConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::Graph::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::Graph::VertexConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::Graph::VertexConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -627,7 +627,7 @@ void bind_easy3d_core_graph(pybind11::module_& m) cl.def("__getitem__", (struct easy3d::Graph::VertexConnectivity & (easy3d::Graph::VertexProperty::*)(struct easy3d::Graph::Vertex)) &easy3d::Graph::VertexProperty::operator[], "C++: easy3d::Graph::VertexProperty::operator[](struct easy3d::Graph::Vertex) --> struct easy3d::Graph::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("v")); cl.def("assign", (class easy3d::Graph::VertexProperty & (easy3d::Graph::VertexProperty::*)(const class easy3d::Graph::VertexProperty &)) &easy3d::Graph::VertexProperty::operator=, "C++: easy3d::Graph::VertexProperty::operator=(const class easy3d::Graph::VertexProperty &) --> class easy3d::Graph::VertexProperty &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::Graph::VertexConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::Graph::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::Graph::VertexConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::Graph::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::Graph::VertexConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::Graph::VertexConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -664,7 +664,7 @@ void bind_easy3d_core_graph(pybind11::module_& m) cl.def("__getitem__", (class easy3d::Vec<3, float> & (easy3d::Graph::VertexProperty>::*)(struct easy3d::Graph::Vertex)) &easy3d::Graph::VertexProperty>::operator[], "C++: easy3d::Graph::VertexProperty>::operator[](struct easy3d::Graph::Vertex) --> class easy3d::Vec<3, float> &", pybind11::return_value_policy::automatic, pybind11::arg("v")); cl.def("assign", (class easy3d::Graph::VertexProperty > & (easy3d::Graph::VertexProperty>::*)(const class easy3d::Graph::VertexProperty > &)) &easy3d::Graph::VertexProperty>::operator=, "C++: easy3d::Graph::VertexProperty>::operator=(const class easy3d::Graph::VertexProperty > &) --> class easy3d::Graph::VertexProperty > &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reset", (void (easy3d::Property>::*)()) &easy3d::Property>::reset, "C++: easy3d::Property>::reset() --> void"); - cl.def("__getitem__", (class easy3d::Vec<3, float> & (easy3d::Property>::*)(unsigned long)) &easy3d::Property>::operator[], "C++: easy3d::Property>::operator[](unsigned long) --> class easy3d::Vec<3, float> &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (class easy3d::Vec<3, float> & (easy3d::Property>::*)(size_t)) &easy3d::Property>::operator[], "C++: easy3d::Property>::operator[](size_t) --> class easy3d::Vec<3, float> &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const class easy3d::Vec<3, float> * (easy3d::Property>::*)() const) &easy3d::Property>::data, "C++: easy3d::Property>::data() const --> const class easy3d::Vec<3, float> *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector > & (easy3d::Property>::*)()) &easy3d::Property>::vector, "C++: easy3d::Property>::vector() --> class std::vector > &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray > & (easy3d::Property>::*)()) &easy3d::Property>::array, "C++: easy3d::Property>::array() --> class easy3d::PropertyArray > &", pybind11::return_value_policy::automatic); @@ -681,7 +681,7 @@ void bind_easy3d_core_graph(pybind11::module_& m) cl.def( pybind11::init( [](PyCallBack_easy3d_Property_easy3d_Graph_EdgeConnectivity_t const &o){ return new PyCallBack_easy3d_Property_easy3d_Graph_EdgeConnectivity_t(o); } ) ); cl.def( pybind11::init( [](easy3d::Property const &o){ return new easy3d::Property(o); } ) ); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::Graph::EdgeConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::Graph::EdgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::Graph::EdgeConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::Graph::EdgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::Graph::EdgeConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::Graph::EdgeConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -701,7 +701,7 @@ void bind_easy3d_core_graph(pybind11::module_& m) cl.def("__getitem__", (struct easy3d::Graph::EdgeConnectivity & (easy3d::Graph::EdgeProperty::*)(struct easy3d::Graph::Edge)) &easy3d::Graph::EdgeProperty::operator[], "C++: easy3d::Graph::EdgeProperty::operator[](struct easy3d::Graph::Edge) --> struct easy3d::Graph::EdgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("e")); cl.def("assign", (class easy3d::Graph::EdgeProperty & (easy3d::Graph::EdgeProperty::*)(const class easy3d::Graph::EdgeProperty &)) &easy3d::Graph::EdgeProperty::operator=, "C++: easy3d::Graph::EdgeProperty::operator=(const class easy3d::Graph::EdgeProperty &) --> class easy3d::Graph::EdgeProperty &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::Graph::EdgeConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::Graph::EdgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::Graph::EdgeConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::Graph::EdgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::Graph::EdgeConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::Graph::EdgeConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -833,7 +833,7 @@ void bind_easy3d_core_graph(pybind11::module_& m) cl.def("type", (const class std::type_info & (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::type, "C++: easy3d::PropertyArray::type() const --> const class std::type_info &", pybind11::return_value_policy::automatic); cl.def("data", (const struct easy3d::Graph::VertexConnectivity * (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::data, "C++: easy3d::PropertyArray::data() const --> const struct easy3d::Graph::VertexConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::PropertyArray::*)()) &easy3d::PropertyArray::vector, "C++: easy3d::PropertyArray::vector() --> class std::vector &", pybind11::return_value_policy::automatic); - cl.def("__getitem__", (struct easy3d::Graph::VertexConnectivity & (easy3d::PropertyArray::*)(unsigned long)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](unsigned long) --> struct easy3d::Graph::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); + cl.def("__getitem__", (struct easy3d::Graph::VertexConnectivity & (easy3d::PropertyArray::*)(size_t)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](size_t) --> struct easy3d::Graph::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); cl.def("assign", (class easy3d::PropertyArray & (easy3d::PropertyArray::*)(const class easy3d::PropertyArray &)) &easy3d::PropertyArray::operator=, "C++: easy3d::PropertyArray::operator=(const class easy3d::PropertyArray &) --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reserve", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::reserve, "Reserve memory for n elements.\n\nC++: easy3d::BasePropertyArray::reserve(unsigned long) --> void", pybind11::arg("n")); cl.def("resize", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::resize, "Resize storage to hold n elements.\n\nC++: easy3d::BasePropertyArray::resize(unsigned long) --> void", pybind11::arg("n")); @@ -873,7 +873,7 @@ void bind_easy3d_core_graph(pybind11::module_& m) cl.def("type", (const class std::type_info & (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::type, "C++: easy3d::PropertyArray::type() const --> const class std::type_info &", pybind11::return_value_policy::automatic); cl.def("data", (const struct easy3d::Graph::EdgeConnectivity * (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::data, "C++: easy3d::PropertyArray::data() const --> const struct easy3d::Graph::EdgeConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::PropertyArray::*)()) &easy3d::PropertyArray::vector, "C++: easy3d::PropertyArray::vector() --> class std::vector &", pybind11::return_value_policy::automatic); - cl.def("__getitem__", (struct easy3d::Graph::EdgeConnectivity & (easy3d::PropertyArray::*)(unsigned long)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](unsigned long) --> struct easy3d::Graph::EdgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); + cl.def("__getitem__", (struct easy3d::Graph::EdgeConnectivity & (easy3d::PropertyArray::*)(size_t)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](size_t) --> struct easy3d::Graph::EdgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); cl.def("assign", (class easy3d::PropertyArray & (easy3d::PropertyArray::*)(const class easy3d::PropertyArray &)) &easy3d::PropertyArray::operator=, "C++: easy3d::PropertyArray::operator=(const class easy3d::PropertyArray &) --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reserve", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::reserve, "Reserve memory for n elements.\n\nC++: easy3d::BasePropertyArray::reserve(unsigned long) --> void", pybind11::arg("n")); cl.def("resize", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::resize, "Resize storage to hold n elements.\n\nC++: easy3d::BasePropertyArray::resize(unsigned long) --> void", pybind11::arg("n")); diff --git a/python/bindings/easy3d/core/mat.cpp b/python/bindings/easy3d/core/mat.cpp index d5947b1d..f61461e5 100644 --- a/python/bindings/easy3d/core/mat.cpp +++ b/python/bindings/easy3d/core/mat.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include @@ -25,7 +25,7 @@ void bind_easy3d_core_mat(pybind11::module_& m) cl.def("num_columns", (unsigned long (easy3d::Mat<3UL,3UL,float>::*)() const) &easy3d::Mat<3, 3, float>::num_columns, "C++: easy3d::Mat<3, 3, float>::num_columns() const --> unsigned long"); cl.def("row", (class easy3d::Vec<3, float> (easy3d::Mat<3UL,3UL,float>::*)(unsigned long) const) &easy3d::Mat<3, 3, float>::row, "C++: easy3d::Mat<3, 3, float>::row(unsigned long) const --> class easy3d::Vec<3, float>", pybind11::arg("r")); cl.def("col", (class easy3d::Vec<3, float> (easy3d::Mat<3UL,3UL,float>::*)(unsigned long) const) &easy3d::Mat<3, 3, float>::col, "C++: easy3d::Mat<3, 3, float>::col(unsigned long) const --> class easy3d::Vec<3, float>", pybind11::arg("c")); - cl.def("__call__", (float & (easy3d::Mat<3UL,3UL,float>::*)(unsigned long, unsigned long)) &easy3d::Mat<3, 3, float>::operator(), "C++: easy3d::Mat<3, 3, float>::operator()(unsigned long, unsigned long) --> float &", pybind11::return_value_policy::automatic, pybind11::arg("row"), pybind11::arg("col")); + cl.def("__call__", (float & (easy3d::Mat<3UL,3UL,float>::*)(size_t, size_t)) &easy3d::Mat<3, 3, float>::operator(), "C++: easy3d::Mat<3, 3, float>::operator()(size_t, size_t) --> float &", pybind11::return_value_policy::automatic, pybind11::arg("row"), pybind11::arg("col")); cl.def("load_zero", (void (easy3d::Mat<3UL,3UL,float>::*)()) &easy3d::Mat<3, 3, float>::load_zero, "C++: easy3d::Mat<3, 3, float>::load_zero() --> void"); cl.def("load_identity", [](easy3d::Mat<3UL,3UL,float> &o) -> void { return o.load_identity(); }, ""); cl.def("load_identity", (void (easy3d::Mat<3UL,3UL,float>::*)(float)) &easy3d::Mat<3, 3, float>::load_identity, "C++: easy3d::Mat<3, 3, float>::load_identity(float) --> void", pybind11::arg("s")); @@ -59,7 +59,7 @@ void bind_easy3d_core_mat(pybind11::module_& m) cl.def("num_columns", (unsigned long (easy3d::Mat<4UL,4UL,float>::*)() const) &easy3d::Mat<4, 4, float>::num_columns, "C++: easy3d::Mat<4, 4, float>::num_columns() const --> unsigned long"); cl.def("row", (class easy3d::Vec<4, float> (easy3d::Mat<4UL,4UL,float>::*)(unsigned long) const) &easy3d::Mat<4, 4, float>::row, "C++: easy3d::Mat<4, 4, float>::row(unsigned long) const --> class easy3d::Vec<4, float>", pybind11::arg("r")); cl.def("col", (class easy3d::Vec<4, float> (easy3d::Mat<4UL,4UL,float>::*)(unsigned long) const) &easy3d::Mat<4, 4, float>::col, "C++: easy3d::Mat<4, 4, float>::col(unsigned long) const --> class easy3d::Vec<4, float>", pybind11::arg("c")); - cl.def("__call__", (float & (easy3d::Mat<4UL,4UL,float>::*)(unsigned long, unsigned long)) &easy3d::Mat<4, 4, float>::operator(), "C++: easy3d::Mat<4, 4, float>::operator()(unsigned long, unsigned long) --> float &", pybind11::return_value_policy::automatic, pybind11::arg("r"), pybind11::arg("c")); + cl.def("__call__", (float & (easy3d::Mat<4UL,4UL,float>::*)(size_t, size_t)) &easy3d::Mat<4, 4, float>::operator(), "C++: easy3d::Mat<4, 4, float>::operator()(size_t, size_t) --> float &", pybind11::return_value_policy::automatic, pybind11::arg("r"), pybind11::arg("c")); cl.def("load_zero", (void (easy3d::Mat<4UL,4UL,float>::*)()) &easy3d::Mat<4, 4, float>::load_zero, "C++: easy3d::Mat<4, 4, float>::load_zero() --> void"); cl.def("load_identity", [](easy3d::Mat<4UL,4UL,float> &o) -> void { return o.load_identity(); }, ""); cl.def("load_identity", (void (easy3d::Mat<4UL,4UL,float>::*)(float)) &easy3d::Mat<4, 4, float>::load_identity, "C++: easy3d::Mat<4, 4, float>::load_identity(float) --> void", pybind11::arg("s")); @@ -107,7 +107,7 @@ void bind_easy3d_core_mat(pybind11::module_& m) cl.def("num_columns", (unsigned long (easy3d::Mat<3UL,3UL,float>::*)() const) &easy3d::Mat<3, 3, float>::num_columns, "C++: easy3d::Mat<3, 3, float>::num_columns() const --> unsigned long"); cl.def("row", (class easy3d::Vec<3, float> (easy3d::Mat<3UL,3UL,float>::*)(unsigned long) const) &easy3d::Mat<3, 3, float>::row, "C++: easy3d::Mat<3, 3, float>::row(unsigned long) const --> class easy3d::Vec<3, float>", pybind11::arg("r")); cl.def("col", (class easy3d::Vec<3, float> (easy3d::Mat<3UL,3UL,float>::*)(unsigned long) const) &easy3d::Mat<3, 3, float>::col, "C++: easy3d::Mat<3, 3, float>::col(unsigned long) const --> class easy3d::Vec<3, float>", pybind11::arg("c")); - cl.def("__call__", (float & (easy3d::Mat<3UL,3UL,float>::*)(unsigned long, unsigned long)) &easy3d::Mat<3, 3, float>::operator(), "C++: easy3d::Mat<3, 3, float>::operator()(unsigned long, unsigned long) --> float &", pybind11::return_value_policy::automatic, pybind11::arg("row"), pybind11::arg("col")); + cl.def("__call__", (float & (easy3d::Mat<3UL,3UL,float>::*)(size_t, size_t)) &easy3d::Mat<3, 3, float>::operator(), "C++: easy3d::Mat<3, 3, float>::operator()(size_t, size_t) --> float &", pybind11::return_value_policy::automatic, pybind11::arg("row"), pybind11::arg("col")); cl.def("load_zero", (void (easy3d::Mat<3UL,3UL,float>::*)()) &easy3d::Mat<3, 3, float>::load_zero, "C++: easy3d::Mat<3, 3, float>::load_zero() --> void"); cl.def("load_identity", [](easy3d::Mat<3UL,3UL,float> &o) -> void { return o.load_identity(); }, ""); cl.def("load_identity", (void (easy3d::Mat<3UL,3UL,float>::*)(float)) &easy3d::Mat<3, 3, float>::load_identity, "C++: easy3d::Mat<3, 3, float>::load_identity(float) --> void", pybind11::arg("s")); @@ -163,7 +163,7 @@ void bind_easy3d_core_mat(pybind11::module_& m) cl.def("num_columns", (unsigned long (easy3d::Mat<4UL,4UL,float>::*)() const) &easy3d::Mat<4, 4, float>::num_columns, "C++: easy3d::Mat<4, 4, float>::num_columns() const --> unsigned long"); cl.def("row", (class easy3d::Vec<4, float> (easy3d::Mat<4UL,4UL,float>::*)(unsigned long) const) &easy3d::Mat<4, 4, float>::row, "C++: easy3d::Mat<4, 4, float>::row(unsigned long) const --> class easy3d::Vec<4, float>", pybind11::arg("r")); cl.def("col", (class easy3d::Vec<4, float> (easy3d::Mat<4UL,4UL,float>::*)(unsigned long) const) &easy3d::Mat<4, 4, float>::col, "C++: easy3d::Mat<4, 4, float>::col(unsigned long) const --> class easy3d::Vec<4, float>", pybind11::arg("c")); - cl.def("__call__", (float & (easy3d::Mat<4UL,4UL,float>::*)(unsigned long, unsigned long)) &easy3d::Mat<4, 4, float>::operator(), "C++: easy3d::Mat<4, 4, float>::operator()(unsigned long, unsigned long) --> float &", pybind11::return_value_policy::automatic, pybind11::arg("r"), pybind11::arg("c")); + cl.def("__call__", (float & (easy3d::Mat<4UL,4UL,float>::*)(size_t, size_t)) &easy3d::Mat<4, 4, float>::operator(), "C++: easy3d::Mat<4, 4, float>::operator()(size_t, size_t) --> float &", pybind11::return_value_policy::automatic, pybind11::arg("r"), pybind11::arg("c")); cl.def("load_zero", (void (easy3d::Mat<4UL,4UL,float>::*)()) &easy3d::Mat<4, 4, float>::load_zero, "C++: easy3d::Mat<4, 4, float>::load_zero() --> void"); cl.def("load_identity", [](easy3d::Mat<4UL,4UL,float> &o) -> void { return o.load_identity(); }, ""); cl.def("load_identity", (void (easy3d::Mat<4UL,4UL,float>::*)(float)) &easy3d::Mat<4, 4, float>::load_identity, "C++: easy3d::Mat<4, 4, float>::load_identity(float) --> void", pybind11::arg("s")); diff --git a/python/bindings/easy3d/core/plane.cpp b/python/bindings/easy3d/core/plane.cpp index 74b2cba4..a6dd1ea6 100644 --- a/python/bindings/easy3d/core/plane.cpp +++ b/python/bindings/easy3d/core/plane.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include @@ -30,7 +30,7 @@ void bind_easy3d_core_plane(pybind11::module_& m) cl.def("b", (float (easy3d::GenericPlane::*)() const) &easy3d::GenericPlane::b, "C++: easy3d::GenericPlane::b() const --> float"); cl.def("c", (float (easy3d::GenericPlane::*)() const) &easy3d::GenericPlane::c, "C++: easy3d::GenericPlane::c() const --> float"); cl.def("d", (float (easy3d::GenericPlane::*)() const) &easy3d::GenericPlane::d, "C++: easy3d::GenericPlane::d() const --> float"); - cl.def("__getitem__", (float & (easy3d::GenericPlane::*)(unsigned long)) &easy3d::GenericPlane::operator[], "C++: easy3d::GenericPlane::operator[](unsigned long) --> float &", pybind11::return_value_policy::automatic, pybind11::arg("idx")); + cl.def("__getitem__", (float & (easy3d::GenericPlane::*)(size_t)) &easy3d::GenericPlane::operator[], "C++: easy3d::GenericPlane::operator[](size_t) --> float &", pybind11::return_value_policy::automatic, pybind11::arg("idx")); cl.def("normal", (class easy3d::Vec<3, float> (easy3d::GenericPlane::*)() const) &easy3d::GenericPlane::normal, "C++: easy3d::GenericPlane::normal() const --> class easy3d::Vec<3, float>"); cl.def("point", (class easy3d::Vec<3, float> (easy3d::GenericPlane::*)() const) &easy3d::GenericPlane::point, "C++: easy3d::GenericPlane::point() const --> class easy3d::Vec<3, float>"); cl.def("base1", (class easy3d::Vec<3, float> (easy3d::GenericPlane::*)() const) &easy3d::GenericPlane::base1, "C++: easy3d::GenericPlane::base1() const --> class easy3d::Vec<3, float>"); diff --git a/python/bindings/easy3d/core/point_cloud.cpp b/python/bindings/easy3d/core/point_cloud.cpp index 8d6ded8c..ecaa75b7 100644 --- a/python/bindings/easy3d/core/point_cloud.cpp +++ b/python/bindings/easy3d/core/point_cloud.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include @@ -56,7 +56,7 @@ struct PyCallBack_easy3d_PointCloud_VertexProperty_easy3d_Vec_3_float_t : public using easy3d::PointCloud::VertexProperty::VertexProperty; using _binder_ret_0 = easy3d::vec3 &; - _binder_ret_0 operator[](unsigned long a0) override { + _binder_ret_0 operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -273,7 +273,7 @@ void bind_easy3d_core_point_cloud(pybind11::module_& m) cl.def("__getitem__", (easy3d::vec3 & (easy3d::PointCloud::VertexProperty::*)(struct easy3d::PointCloud::Vertex)) &easy3d::PointCloud::VertexProperty::operator[], "C++: easy3d::PointCloud::VertexProperty::operator[](struct easy3d::PointCloud::Vertex) --> easy3d::vec3 &", pybind11::return_value_policy::automatic, pybind11::arg("v")); cl.def("assign", (class easy3d::PointCloud::VertexProperty & (easy3d::PointCloud::VertexProperty::*)(const class easy3d::PointCloud::VertexProperty &)) &easy3d::PointCloud::VertexProperty::operator=, "C++: easy3d::PointCloud::VertexProperty::operator=(const class easy3d::PointCloud::VertexProperty &) --> class easy3d::PointCloud::VertexProperty &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (easy3d::vec3 & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> easy3d::vec3 &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (easy3d::vec3 & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> easy3d::vec3 &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const easy3d::vec3 * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const easy3d::vec3 *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); diff --git a/python/bindings/easy3d/core/poly_mesh.cpp b/python/bindings/easy3d/core/poly_mesh.cpp index c63c82ac..37899caf 100644 --- a/python/bindings/easy3d/core/poly_mesh.cpp +++ b/python/bindings/easy3d/core/poly_mesh.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -26,7 +26,7 @@ struct PyCallBack_easy3d_Property_easy3d_PolyMesh_HalfFaceConnectivity_t : public easy3d::Property { using easy3d::Property::Property; - struct easy3d::PolyMesh::HalfFaceConnectivity & operator[](unsigned long a0) override { + struct easy3d::PolyMesh::HalfFaceConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -45,7 +45,7 @@ struct PyCallBack_easy3d_Property_easy3d_PolyMesh_HalfFaceConnectivity_t : publi struct PyCallBack_easy3d_Property_easy3d_PolyMesh_CellConnectivity_t : public easy3d::Property { using easy3d::Property::Property; - struct easy3d::PolyMesh::CellConnectivity & operator[](unsigned long a0) override { + struct easy3d::PolyMesh::CellConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -98,7 +98,7 @@ struct PyCallBack_easy3d_PolyMesh : public easy3d::PolyMesh { struct PyCallBack_easy3d_PolyMesh_VertexProperty_easy3d_PolyMesh_VertexConnectivity_t : public easy3d::PolyMesh::VertexProperty { using easy3d::PolyMesh::VertexProperty::VertexProperty; - struct easy3d::PolyMesh::VertexConnectivity & operator[](unsigned long a0) override { + struct easy3d::PolyMesh::VertexConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -118,7 +118,7 @@ struct PyCallBack_easy3d_PolyMesh_VertexProperty_easy3d_Vec_3_float_t : public e using easy3d::PolyMesh::VertexProperty>::VertexProperty; using _binder_ret_0 = easy3d::Vec<3, float> &; - _binder_ret_0 operator[](unsigned long a0) override { + _binder_ret_0 operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast> *>(this), "__getitem__"); if (overload) { @@ -137,7 +137,7 @@ struct PyCallBack_easy3d_PolyMesh_VertexProperty_easy3d_Vec_3_float_t : public e struct PyCallBack_easy3d_PolyMesh_EdgeProperty_easy3d_PolyMesh_EdgeConnectivity_t : public easy3d::PolyMesh::EdgeProperty { using easy3d::PolyMesh::EdgeProperty::EdgeProperty; - struct easy3d::PolyMesh::EdgeConnectivity & operator[](unsigned long a0) override { + struct easy3d::PolyMesh::EdgeConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -156,7 +156,7 @@ struct PyCallBack_easy3d_PolyMesh_EdgeProperty_easy3d_PolyMesh_EdgeConnectivity_ struct PyCallBack_easy3d_PolyMesh_HalfFaceProperty_easy3d_PolyMesh_HalfFaceConnectivity_t : public easy3d::PolyMesh::HalfFaceProperty { using easy3d::PolyMesh::HalfFaceProperty::HalfFaceProperty; - struct easy3d::PolyMesh::HalfFaceConnectivity & operator[](unsigned long a0) override { + struct easy3d::PolyMesh::HalfFaceConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -175,7 +175,7 @@ struct PyCallBack_easy3d_PolyMesh_HalfFaceProperty_easy3d_PolyMesh_HalfFaceConne struct PyCallBack_easy3d_PolyMesh_CellProperty_easy3d_PolyMesh_CellConnectivity_t : public easy3d::PolyMesh::CellProperty { using easy3d::PolyMesh::CellProperty::CellProperty; - struct easy3d::PolyMesh::CellConnectivity & operator[](unsigned long a0) override { + struct easy3d::PolyMesh::CellConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -196,7 +196,7 @@ struct PyCallBack_easy3d_PolyMesh_CellProperty_easy3d_PolyMesh_CellConnectivity_ struct PyCallBack_easy3d_Property_easy3d_PolyMesh_VertexConnectivity_t : public easy3d::Property { using easy3d::Property::Property; - struct easy3d::PolyMesh::VertexConnectivity & operator[](unsigned long a0) override { + struct easy3d::PolyMesh::VertexConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -215,7 +215,7 @@ struct PyCallBack_easy3d_Property_easy3d_PolyMesh_VertexConnectivity_t : public struct PyCallBack_easy3d_Property_easy3d_PolyMesh_EdgeConnectivity_t : public easy3d::Property { using easy3d::Property::Property; - struct easy3d::PolyMesh::EdgeConnectivity & operator[](unsigned long a0) override { + struct easy3d::PolyMesh::EdgeConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -234,7 +234,7 @@ struct PyCallBack_easy3d_Property_easy3d_PolyMesh_EdgeConnectivity_t : public ea struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_HalfFaceConnectivity_t : public easy3d::PropertyArray { using easy3d::PropertyArray::PropertyArray; - void reserve(unsigned long a0) override { + void reserve(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reserve"); if (overload) { @@ -247,7 +247,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_HalfFaceConnectivity_t : } return PropertyArray::reserve(a0); } - void resize(unsigned long a0) override { + void resize(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "resize"); if (overload) { @@ -273,7 +273,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_HalfFaceConnectivity_t : } return PropertyArray::push_back(); } - void reset(unsigned long a0) override { + void reset(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reset"); if (overload) { @@ -325,7 +325,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_HalfFaceConnectivity_t : } return PropertyArray::shrink_to_fit(); } - void swap(unsigned long a0, unsigned long a1) override { + void swap(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "swap"); if (overload) { @@ -338,7 +338,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_HalfFaceConnectivity_t : } return PropertyArray::swap(a0, a1); } - void copy(unsigned long a0, unsigned long a1) override { + void copy(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "copy"); if (overload) { @@ -396,7 +396,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_HalfFaceConnectivity_t : struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_CellConnectivity_t : public easy3d::PropertyArray { using easy3d::PropertyArray::PropertyArray; - void reserve(unsigned long a0) override { + void reserve(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reserve"); if (overload) { @@ -409,7 +409,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_CellConnectivity_t : publ } return PropertyArray::reserve(a0); } - void resize(unsigned long a0) override { + void resize(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "resize"); if (overload) { @@ -435,7 +435,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_CellConnectivity_t : publ } return PropertyArray::push_back(); } - void reset(unsigned long a0) override { + void reset(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reset"); if (overload) { @@ -487,7 +487,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_CellConnectivity_t : publ } return PropertyArray::shrink_to_fit(); } - void swap(unsigned long a0, unsigned long a1) override { + void swap(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "swap"); if (overload) { @@ -500,7 +500,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_CellConnectivity_t : publ } return PropertyArray::swap(a0, a1); } - void copy(unsigned long a0, unsigned long a1) override { + void copy(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "copy"); if (overload) { @@ -558,7 +558,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_CellConnectivity_t : publ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_VertexConnectivity_t : public easy3d::PropertyArray { using easy3d::PropertyArray::PropertyArray; - void reserve(unsigned long a0) override { + void reserve(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reserve"); if (overload) { @@ -571,7 +571,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_VertexConnectivity_t : pu } return PropertyArray::reserve(a0); } - void resize(unsigned long a0) override { + void resize(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "resize"); if (overload) { @@ -597,7 +597,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_VertexConnectivity_t : pu } return PropertyArray::push_back(); } - void reset(unsigned long a0) override { + void reset(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reset"); if (overload) { @@ -649,7 +649,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_VertexConnectivity_t : pu } return PropertyArray::shrink_to_fit(); } - void swap(unsigned long a0, unsigned long a1) override { + void swap(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "swap"); if (overload) { @@ -662,7 +662,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_VertexConnectivity_t : pu } return PropertyArray::swap(a0, a1); } - void copy(unsigned long a0, unsigned long a1) override { + void copy(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "copy"); if (overload) { @@ -720,7 +720,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_VertexConnectivity_t : pu struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_EdgeConnectivity_t : public easy3d::PropertyArray { using easy3d::PropertyArray::PropertyArray; - void reserve(unsigned long a0) override { + void reserve(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reserve"); if (overload) { @@ -733,7 +733,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_EdgeConnectivity_t : publ } return PropertyArray::reserve(a0); } - void resize(unsigned long a0) override { + void resize(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "resize"); if (overload) { @@ -759,7 +759,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_EdgeConnectivity_t : publ } return PropertyArray::push_back(); } - void reset(unsigned long a0) override { + void reset(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reset"); if (overload) { @@ -811,7 +811,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_EdgeConnectivity_t : publ } return PropertyArray::shrink_to_fit(); } - void swap(unsigned long a0, unsigned long a1) override { + void swap(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "swap"); if (overload) { @@ -824,7 +824,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_PolyMesh_EdgeConnectivity_t : publ } return PropertyArray::swap(a0, a1); } - void copy(unsigned long a0, unsigned long a1) override { + void copy(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "copy"); if (overload) { @@ -1088,7 +1088,7 @@ void bind_easy3d_core_poly_mesh(pybind11::module_& m) cl.def( pybind11::init( [](PyCallBack_easy3d_Property_easy3d_PolyMesh_EdgeConnectivity_t const &o){ return new PyCallBack_easy3d_Property_easy3d_PolyMesh_EdgeConnectivity_t(o); } ) ); cl.def( pybind11::init( [](easy3d::Property const &o){ return new easy3d::Property(o); } ) ); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::PolyMesh::EdgeConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::PolyMesh::EdgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::PolyMesh::EdgeConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::PolyMesh::EdgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::PolyMesh::EdgeConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::PolyMesh::EdgeConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1145,7 +1145,7 @@ void bind_easy3d_core_poly_mesh(pybind11::module_& m) cl.def( pybind11::init( [](PyCallBack_easy3d_Property_easy3d_PolyMesh_VertexConnectivity_t const &o){ return new PyCallBack_easy3d_Property_easy3d_PolyMesh_VertexConnectivity_t(o); } ) ); cl.def( pybind11::init( [](easy3d::Property const &o){ return new easy3d::Property(o); } ) ); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::PolyMesh::VertexConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::PolyMesh::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::PolyMesh::VertexConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::PolyMesh::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::PolyMesh::VertexConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::PolyMesh::VertexConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1165,7 +1165,7 @@ void bind_easy3d_core_poly_mesh(pybind11::module_& m) cl.def("__getitem__", (struct easy3d::PolyMesh::VertexConnectivity & (easy3d::PolyMesh::VertexProperty::*)(struct easy3d::PolyMesh::Vertex)) &easy3d::PolyMesh::VertexProperty::operator[], "C++: easy3d::PolyMesh::VertexProperty::operator[](struct easy3d::PolyMesh::Vertex) --> struct easy3d::PolyMesh::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("v")); cl.def("assign", (class easy3d::PolyMesh::VertexProperty & (easy3d::PolyMesh::VertexProperty::*)(const class easy3d::PolyMesh::VertexProperty &)) &easy3d::PolyMesh::VertexProperty::operator=, "C++: easy3d::PolyMesh::VertexProperty::operator=(const class easy3d::PolyMesh::VertexProperty &) --> class easy3d::PolyMesh::VertexProperty &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::PolyMesh::VertexConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::PolyMesh::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::PolyMesh::VertexConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::PolyMesh::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::PolyMesh::VertexConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::PolyMesh::VertexConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1185,7 +1185,7 @@ void bind_easy3d_core_poly_mesh(pybind11::module_& m) cl.def("__getitem__", (class easy3d::Vec<3, float> & (easy3d::PolyMesh::VertexProperty>::*)(struct easy3d::PolyMesh::Vertex)) &easy3d::PolyMesh::VertexProperty>::operator[], "C++: easy3d::PolyMesh::VertexProperty>::operator[](struct easy3d::PolyMesh::Vertex) --> class easy3d::Vec<3, float> &", pybind11::return_value_policy::automatic, pybind11::arg("v")); cl.def("assign", (class easy3d::PolyMesh::VertexProperty > & (easy3d::PolyMesh::VertexProperty>::*)(const class easy3d::PolyMesh::VertexProperty > &)) &easy3d::PolyMesh::VertexProperty>::operator=, "C++: easy3d::PolyMesh::VertexProperty>::operator=(const class easy3d::PolyMesh::VertexProperty > &) --> class easy3d::PolyMesh::VertexProperty > &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reset", (void (easy3d::Property>::*)()) &easy3d::Property>::reset, "C++: easy3d::Property>::reset() --> void"); - cl.def("__getitem__", (class easy3d::Vec<3, float> & (easy3d::Property>::*)(unsigned long)) &easy3d::Property>::operator[], "C++: easy3d::Property>::operator[](unsigned long) --> class easy3d::Vec<3, float> &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (class easy3d::Vec<3, float> & (easy3d::Property>::*)(size_t)) &easy3d::Property>::operator[], "C++: easy3d::Property>::operator[](size_t) --> class easy3d::Vec<3, float> &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const class easy3d::Vec<3, float> * (easy3d::Property>::*)() const) &easy3d::Property>::data, "C++: easy3d::Property>::data() const --> const class easy3d::Vec<3, float> *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector > & (easy3d::Property>::*)()) &easy3d::Property>::vector, "C++: easy3d::Property>::vector() --> class std::vector > &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray > & (easy3d::Property>::*)()) &easy3d::Property>::array, "C++: easy3d::Property>::array() --> class easy3d::PropertyArray > &", pybind11::return_value_policy::automatic); @@ -1205,7 +1205,7 @@ void bind_easy3d_core_poly_mesh(pybind11::module_& m) cl.def("__getitem__", (struct easy3d::PolyMesh::EdgeConnectivity & (easy3d::PolyMesh::EdgeProperty::*)(struct easy3d::PolyMesh::Edge)) &easy3d::PolyMesh::EdgeProperty::operator[], "C++: easy3d::PolyMesh::EdgeProperty::operator[](struct easy3d::PolyMesh::Edge) --> struct easy3d::PolyMesh::EdgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("e")); cl.def("assign", (class easy3d::PolyMesh::EdgeProperty & (easy3d::PolyMesh::EdgeProperty::*)(const class easy3d::PolyMesh::EdgeProperty &)) &easy3d::PolyMesh::EdgeProperty::operator=, "C++: easy3d::PolyMesh::EdgeProperty::operator=(const class easy3d::PolyMesh::EdgeProperty &) --> class easy3d::PolyMesh::EdgeProperty &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::PolyMesh::EdgeConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::PolyMesh::EdgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::PolyMesh::EdgeConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::PolyMesh::EdgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::PolyMesh::EdgeConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::PolyMesh::EdgeConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1222,7 +1222,7 @@ void bind_easy3d_core_poly_mesh(pybind11::module_& m) cl.def( pybind11::init( [](PyCallBack_easy3d_Property_easy3d_PolyMesh_HalfFaceConnectivity_t const &o){ return new PyCallBack_easy3d_Property_easy3d_PolyMesh_HalfFaceConnectivity_t(o); } ) ); cl.def( pybind11::init( [](easy3d::Property const &o){ return new easy3d::Property(o); } ) ); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::PolyMesh::HalfFaceConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::PolyMesh::HalfFaceConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::PolyMesh::HalfFaceConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::PolyMesh::HalfFaceConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::PolyMesh::HalfFaceConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::PolyMesh::HalfFaceConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1242,7 +1242,7 @@ void bind_easy3d_core_poly_mesh(pybind11::module_& m) cl.def("__getitem__", (struct easy3d::PolyMesh::HalfFaceConnectivity & (easy3d::PolyMesh::HalfFaceProperty::*)(struct easy3d::PolyMesh::HalfFace)) &easy3d::PolyMesh::HalfFaceProperty::operator[], "C++: easy3d::PolyMesh::HalfFaceProperty::operator[](struct easy3d::PolyMesh::HalfFace) --> struct easy3d::PolyMesh::HalfFaceConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("h")); cl.def("assign", (class easy3d::PolyMesh::HalfFaceProperty & (easy3d::PolyMesh::HalfFaceProperty::*)(const class easy3d::PolyMesh::HalfFaceProperty &)) &easy3d::PolyMesh::HalfFaceProperty::operator=, "C++: easy3d::PolyMesh::HalfFaceProperty::operator=(const class easy3d::PolyMesh::HalfFaceProperty &) --> class easy3d::PolyMesh::HalfFaceProperty &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::PolyMesh::HalfFaceConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::PolyMesh::HalfFaceConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::PolyMesh::HalfFaceConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::PolyMesh::HalfFaceConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::PolyMesh::HalfFaceConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::PolyMesh::HalfFaceConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1259,7 +1259,7 @@ void bind_easy3d_core_poly_mesh(pybind11::module_& m) cl.def( pybind11::init( [](PyCallBack_easy3d_Property_easy3d_PolyMesh_CellConnectivity_t const &o){ return new PyCallBack_easy3d_Property_easy3d_PolyMesh_CellConnectivity_t(o); } ) ); cl.def( pybind11::init( [](easy3d::Property const &o){ return new easy3d::Property(o); } ) ); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::PolyMesh::CellConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::PolyMesh::CellConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::PolyMesh::CellConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::PolyMesh::CellConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::PolyMesh::CellConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::PolyMesh::CellConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1279,7 +1279,7 @@ void bind_easy3d_core_poly_mesh(pybind11::module_& m) cl.def("__getitem__", (struct easy3d::PolyMesh::CellConnectivity & (easy3d::PolyMesh::CellProperty::*)(struct easy3d::PolyMesh::Cell)) &easy3d::PolyMesh::CellProperty::operator[], "C++: easy3d::PolyMesh::CellProperty::operator[](struct easy3d::PolyMesh::Cell) --> struct easy3d::PolyMesh::CellConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("c")); cl.def("assign", (class easy3d::PolyMesh::CellProperty & (easy3d::PolyMesh::CellProperty::*)(const class easy3d::PolyMesh::CellProperty &)) &easy3d::PolyMesh::CellProperty::operator=, "C++: easy3d::PolyMesh::CellProperty::operator=(const class easy3d::PolyMesh::CellProperty &) --> class easy3d::PolyMesh::CellProperty &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::PolyMesh::CellConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::PolyMesh::CellConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::PolyMesh::CellConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::PolyMesh::CellConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::PolyMesh::CellConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::PolyMesh::CellConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1435,7 +1435,7 @@ void bind_easy3d_core_poly_mesh(pybind11::module_& m) cl.def("type", (const class std::type_info & (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::type, "C++: easy3d::PropertyArray::type() const --> const class std::type_info &", pybind11::return_value_policy::automatic); cl.def("data", (const struct easy3d::PolyMesh::HalfFaceConnectivity * (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::data, "C++: easy3d::PropertyArray::data() const --> const struct easy3d::PolyMesh::HalfFaceConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::PropertyArray::*)()) &easy3d::PropertyArray::vector, "C++: easy3d::PropertyArray::vector() --> class std::vector &", pybind11::return_value_policy::automatic); - cl.def("__getitem__", (struct easy3d::PolyMesh::HalfFaceConnectivity & (easy3d::PropertyArray::*)(unsigned long)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](unsigned long) --> struct easy3d::PolyMesh::HalfFaceConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); + cl.def("__getitem__", (struct easy3d::PolyMesh::HalfFaceConnectivity & (easy3d::PropertyArray::*)(size_t)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](size_t) --> struct easy3d::PolyMesh::HalfFaceConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); cl.def("assign", (class easy3d::PropertyArray & (easy3d::PropertyArray::*)(const class easy3d::PropertyArray &)) &easy3d::PropertyArray::operator=, "C++: easy3d::PropertyArray::operator=(const class easy3d::PropertyArray &) --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reserve", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::reserve, "Reserve memory for n elements.\n\nC++: easy3d::BasePropertyArray::reserve(unsigned long) --> void", pybind11::arg("n")); cl.def("resize", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::resize, "Resize storage to hold n elements.\n\nC++: easy3d::BasePropertyArray::resize(unsigned long) --> void", pybind11::arg("n")); @@ -1476,7 +1476,7 @@ void bind_easy3d_core_poly_mesh(pybind11::module_& m) cl.def("type", (const class std::type_info & (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::type, "C++: easy3d::PropertyArray::type() const --> const class std::type_info &", pybind11::return_value_policy::automatic); cl.def("data", (const struct easy3d::PolyMesh::CellConnectivity * (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::data, "C++: easy3d::PropertyArray::data() const --> const struct easy3d::PolyMesh::CellConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::PropertyArray::*)()) &easy3d::PropertyArray::vector, "C++: easy3d::PropertyArray::vector() --> class std::vector &", pybind11::return_value_policy::automatic); - cl.def("__getitem__", (struct easy3d::PolyMesh::CellConnectivity & (easy3d::PropertyArray::*)(unsigned long)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](unsigned long) --> struct easy3d::PolyMesh::CellConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); + cl.def("__getitem__", (struct easy3d::PolyMesh::CellConnectivity & (easy3d::PropertyArray::*)(size_t)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](size_t) --> struct easy3d::PolyMesh::CellConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); cl.def("assign", (class easy3d::PropertyArray & (easy3d::PropertyArray::*)(const class easy3d::PropertyArray &)) &easy3d::PropertyArray::operator=, "C++: easy3d::PropertyArray::operator=(const class easy3d::PropertyArray &) --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reserve", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::reserve, "Reserve memory for n elements.\n\nC++: easy3d::BasePropertyArray::reserve(unsigned long) --> void", pybind11::arg("n")); cl.def("resize", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::resize, "Resize storage to hold n elements.\n\nC++: easy3d::BasePropertyArray::resize(unsigned long) --> void", pybind11::arg("n")); @@ -1517,7 +1517,7 @@ void bind_easy3d_core_poly_mesh(pybind11::module_& m) cl.def("type", (const class std::type_info & (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::type, "C++: easy3d::PropertyArray::type() const --> const class std::type_info &", pybind11::return_value_policy::automatic); cl.def("data", (const struct easy3d::PolyMesh::VertexConnectivity * (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::data, "C++: easy3d::PropertyArray::data() const --> const struct easy3d::PolyMesh::VertexConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::PropertyArray::*)()) &easy3d::PropertyArray::vector, "C++: easy3d::PropertyArray::vector() --> class std::vector &", pybind11::return_value_policy::automatic); - cl.def("__getitem__", (struct easy3d::PolyMesh::VertexConnectivity & (easy3d::PropertyArray::*)(unsigned long)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](unsigned long) --> struct easy3d::PolyMesh::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); + cl.def("__getitem__", (struct easy3d::PolyMesh::VertexConnectivity & (easy3d::PropertyArray::*)(size_t)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](size_t) --> struct easy3d::PolyMesh::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); cl.def("assign", (class easy3d::PropertyArray & (easy3d::PropertyArray::*)(const class easy3d::PropertyArray &)) &easy3d::PropertyArray::operator=, "C++: easy3d::PropertyArray::operator=(const class easy3d::PropertyArray &) --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reserve", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::reserve, "Reserve memory for n elements.\n\nC++: easy3d::BasePropertyArray::reserve(unsigned long) --> void", pybind11::arg("n")); cl.def("resize", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::resize, "Resize storage to hold n elements.\n\nC++: easy3d::BasePropertyArray::resize(unsigned long) --> void", pybind11::arg("n")); @@ -1558,7 +1558,7 @@ void bind_easy3d_core_poly_mesh(pybind11::module_& m) cl.def("type", (const class std::type_info & (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::type, "C++: easy3d::PropertyArray::type() const --> const class std::type_info &", pybind11::return_value_policy::automatic); cl.def("data", (const struct easy3d::PolyMesh::EdgeConnectivity * (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::data, "C++: easy3d::PropertyArray::data() const --> const struct easy3d::PolyMesh::EdgeConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::PropertyArray::*)()) &easy3d::PropertyArray::vector, "C++: easy3d::PropertyArray::vector() --> class std::vector &", pybind11::return_value_policy::automatic); - cl.def("__getitem__", (struct easy3d::PolyMesh::EdgeConnectivity & (easy3d::PropertyArray::*)(unsigned long)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](unsigned long) --> struct easy3d::PolyMesh::EdgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); + cl.def("__getitem__", (struct easy3d::PolyMesh::EdgeConnectivity & (easy3d::PropertyArray::*)(size_t)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](size_t) --> struct easy3d::PolyMesh::EdgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); cl.def("assign", (class easy3d::PropertyArray & (easy3d::PropertyArray::*)(const class easy3d::PropertyArray &)) &easy3d::PropertyArray::operator=, "C++: easy3d::PropertyArray::operator=(const class easy3d::PropertyArray &) --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reserve", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::reserve, "Reserve memory for n elements.\n\nC++: easy3d::BasePropertyArray::reserve(unsigned long) --> void", pybind11::arg("n")); cl.def("resize", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::resize, "Resize storage to hold n elements.\n\nC++: easy3d::BasePropertyArray::resize(unsigned long) --> void", pybind11::arg("n")); diff --git a/python/bindings/easy3d/core/property.cpp b/python/bindings/easy3d/core/property.cpp index baa96d97..9994303f 100644 --- a/python/bindings/easy3d/core/property.cpp +++ b/python/bindings/easy3d/core/property.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include @@ -21,7 +21,7 @@ struct PyCallBack_easy3d_Property_float_t : public easy3d::Property { using easy3d::Property::Property; - float & operator[](unsigned long a0) override { + float & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -40,7 +40,7 @@ struct PyCallBack_easy3d_Property_float_t : public easy3d::Property { struct PyCallBack_easy3d_Property_double_t : public easy3d::Property { using easy3d::Property::Property; - double & operator[](unsigned long a0) override { + double & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -59,7 +59,7 @@ struct PyCallBack_easy3d_Property_double_t : public easy3d::Property { struct PyCallBack_easy3d_Property_int_t : public easy3d::Property { using easy3d::Property::Property; - int & operator[](unsigned long a0) override { + int & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -80,7 +80,7 @@ struct PyCallBack_easy3d_Property_easy3d_Vec_3_float_t : public easy3d::Property using easy3d::Property>::Property; using _binder_ret_0 = easy3d::Vec<3, float> &; - _binder_ret_0 operator[](unsigned long a0) override { + _binder_ret_0 operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast> *>(this), "__getitem__"); if (overload) { @@ -100,7 +100,7 @@ struct PyCallBack_easy3d_Property_easy3d_Vec_3_float_t : public easy3d::Property struct PyCallBack_easy3d_BasePropertyArray : public easy3d::BasePropertyArray { using easy3d::BasePropertyArray::BasePropertyArray; - void reserve(unsigned long a0) override { + void reserve(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "reserve"); if (overload) { @@ -113,7 +113,7 @@ struct PyCallBack_easy3d_BasePropertyArray : public easy3d::BasePropertyArray { } pybind11::pybind11_fail("Tried to call pure virtual function \"BasePropertyArray::reserve\""); } - void resize(unsigned long a0) override { + void resize(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "resize"); if (overload) { @@ -152,7 +152,7 @@ struct PyCallBack_easy3d_BasePropertyArray : public easy3d::BasePropertyArray { } pybind11::pybind11_fail("Tried to call pure virtual function \"BasePropertyArray::push_back\""); } - void reset(unsigned long a0) override { + void reset(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "reset"); if (overload) { @@ -191,7 +191,7 @@ struct PyCallBack_easy3d_BasePropertyArray : public easy3d::BasePropertyArray { } pybind11::pybind11_fail("Tried to call pure virtual function \"BasePropertyArray::transfer\""); } - void swap(unsigned long a0, unsigned long a1) override { + void swap(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "swap"); if (overload) { @@ -204,7 +204,7 @@ struct PyCallBack_easy3d_BasePropertyArray : public easy3d::BasePropertyArray { } pybind11::pybind11_fail("Tried to call pure virtual function \"BasePropertyArray::swap\""); } - void copy(unsigned long a0, unsigned long a1) override { + void copy(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast(this), "copy"); if (overload) { @@ -262,7 +262,7 @@ struct PyCallBack_easy3d_BasePropertyArray : public easy3d::BasePropertyArray { struct PyCallBack_easy3d_PropertyArray_bool_t : public easy3d::PropertyArray { using easy3d::PropertyArray::PropertyArray; - void reserve(unsigned long a0) override { + void reserve(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reserve"); if (overload) { @@ -275,7 +275,7 @@ struct PyCallBack_easy3d_PropertyArray_bool_t : public easy3d::PropertyArray *>(this), "resize"); if (overload) { @@ -301,7 +301,7 @@ struct PyCallBack_easy3d_PropertyArray_bool_t : public easy3d::PropertyArray *>(this), "reset"); if (overload) { @@ -353,7 +353,7 @@ struct PyCallBack_easy3d_PropertyArray_bool_t : public easy3d::PropertyArray *>(this), "swap"); if (overload) { @@ -366,7 +366,7 @@ struct PyCallBack_easy3d_PropertyArray_bool_t : public easy3d::PropertyArray *>(this), "copy"); if (overload) { @@ -426,7 +426,7 @@ struct PyCallBack_easy3d_Property_std_vector_easy3d_Vec_3_float_t : public easy3 using easy3d::Property >>::Property; using _binder_ret_0 = std::vector > &; - _binder_ret_0 operator[](unsigned long a0) override { + _binder_ret_0 operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast >> *>(this), "__getitem__"); if (overload) { @@ -445,7 +445,7 @@ struct PyCallBack_easy3d_Property_std_vector_easy3d_Vec_3_float_t : public easy3 struct PyCallBack_easy3d_PropertyArray_easy3d_Vec_3_float_t : public easy3d::PropertyArray> { using easy3d::PropertyArray>::PropertyArray; - void reserve(unsigned long a0) override { + void reserve(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast> *>(this), "reserve"); if (overload) { @@ -458,7 +458,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_Vec_3_float_t : public easy3d::Pro } return PropertyArray::reserve(a0); } - void resize(unsigned long a0) override { + void resize(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast> *>(this), "resize"); if (overload) { @@ -484,7 +484,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_Vec_3_float_t : public easy3d::Pro } return PropertyArray::push_back(); } - void reset(unsigned long a0) override { + void reset(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast> *>(this), "reset"); if (overload) { @@ -536,7 +536,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_Vec_3_float_t : public easy3d::Pro } return PropertyArray::shrink_to_fit(); } - void swap(unsigned long a0, unsigned long a1) override { + void swap(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast> *>(this), "swap"); if (overload) { @@ -549,7 +549,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_Vec_3_float_t : public easy3d::Pro } return PropertyArray::swap(a0, a1); } - void copy(unsigned long a0, unsigned long a1) override { + void copy(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast> *>(this), "copy"); if (overload) { @@ -627,7 +627,7 @@ void bind_easy3d_core_property(pybind11::module_& m) cl.def( pybind11::init( [](PyCallBack_easy3d_Property_easy3d_Vec_3_float_t const &o){ return new PyCallBack_easy3d_Property_easy3d_Vec_3_float_t(o); } ) ); cl.def( pybind11::init( [](easy3d::Property> const &o){ return new easy3d::Property>(o); } ) ); cl.def("reset", (void (easy3d::Property>::*)()) &easy3d::Property>::reset, "C++: easy3d::Property>::reset() --> void"); - cl.def("__getitem__", (class easy3d::Vec<3, float> & (easy3d::Property>::*)(unsigned long)) &easy3d::Property>::operator[], "C++: easy3d::Property>::operator[](unsigned long) --> class easy3d::Vec<3, float> &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (class easy3d::Vec<3, float> & (easy3d::Property>::*)(size_t)) &easy3d::Property>::operator[], "C++: easy3d::Property>::operator[](size_t) --> class easy3d::Vec<3, float> &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const class easy3d::Vec<3, float> * (easy3d::Property>::*)() const) &easy3d::Property>::data, "C++: easy3d::Property>::data() const --> const class easy3d::Vec<3, float> *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector > & (easy3d::Property>::*)()) &easy3d::Property>::vector, "C++: easy3d::Property>::vector() --> class std::vector > &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray > & (easy3d::Property>::*)()) &easy3d::Property>::array, "C++: easy3d::Property>::array() --> class easy3d::PropertyArray > &", pybind11::return_value_policy::automatic); @@ -644,7 +644,7 @@ void bind_easy3d_core_property(pybind11::module_& m) cl.def( pybind11::init( [](PyCallBack_easy3d_Property_float_t const &o){ return new PyCallBack_easy3d_Property_float_t(o); } ) ); cl.def( pybind11::init( [](easy3d::Property const &o){ return new easy3d::Property(o); } ) ); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (float & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> float &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (float & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> float &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const float * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const float *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -658,7 +658,7 @@ void bind_easy3d_core_property(pybind11::module_& m) cl.def( pybind11::init *>(), pybind11::arg("p") ); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (double & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> double &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (double & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> double &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const double * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const double *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -674,7 +674,7 @@ void bind_easy3d_core_property(pybind11::module_& m) cl.def( pybind11::init( [](PyCallBack_easy3d_Property_int_t const &o){ return new PyCallBack_easy3d_Property_int_t(o); } ) ); cl.def( pybind11::init( [](easy3d::Property const &o){ return new easy3d::Property(o); } ) ); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (int & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> int &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (int & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> int &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const int * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const int *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -704,7 +704,7 @@ void bind_easy3d_core_property(pybind11::module_& m) cl.def("shrink_to_fit", (void (easy3d::PropertyContainer::*)() const) &easy3d::PropertyContainer::shrink_to_fit, "C++: easy3d::PropertyContainer::shrink_to_fit() const --> void"); cl.def("push_back", (void (easy3d::PropertyContainer::*)()) &easy3d::PropertyContainer::push_back, "C++: easy3d::PropertyContainer::push_back() --> void"); cl.def("reset", (void (easy3d::PropertyContainer::*)(unsigned long)) &easy3d::PropertyContainer::reset, "C++: easy3d::PropertyContainer::reset(unsigned long) --> void", pybind11::arg("idx")); - cl.def("swap", (void (easy3d::PropertyContainer::*)(unsigned long, unsigned long) const) &easy3d::PropertyContainer::swap, "C++: easy3d::PropertyContainer::swap(unsigned long, unsigned long) const --> void", pybind11::arg("i0"), pybind11::arg("i1")); + cl.def("swap", (void (easy3d::PropertyContainer::*)(size_t, size_t) const) &easy3d::PropertyContainer::swap, "C++: easy3d::PropertyContainer::swap(size_t, size_t) const --> void", pybind11::arg("i0"), pybind11::arg("i1")); cl.def("swap", (void (easy3d::PropertyContainer::*)(class easy3d::PropertyContainer &)) &easy3d::PropertyContainer::swap, "C++: easy3d::PropertyContainer::swap(class easy3d::PropertyContainer &) --> void", pybind11::arg("other")); cl.def("copy", (void (easy3d::PropertyContainer::*)(unsigned long, unsigned long) const) &easy3d::PropertyContainer::copy, "C++: easy3d::PropertyContainer::copy(unsigned long, unsigned long) const --> void", pybind11::arg("from"), pybind11::arg("to")); cl.def("arrays", (class std::vector & (easy3d::PropertyContainer::*)()) &easy3d::PropertyContainer::arrays, "C++: easy3d::PropertyContainer::arrays() --> class std::vector &", pybind11::return_value_policy::automatic); @@ -716,7 +716,7 @@ void bind_easy3d_core_property(pybind11::module_& m) cl.def( pybind11::init > > *>(), pybind11::arg("p") ); cl.def("reset", (void (easy3d::Property >>::*)()) &easy3d::Property>>::reset, "C++: easy3d::Property>>::reset() --> void"); - cl.def("__getitem__", (class std::vector > & (easy3d::Property >>::*)(unsigned long)) &easy3d::Property>>::operator[], "C++: easy3d::Property>>::operator[](unsigned long) --> class std::vector > &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (class std::vector > & (easy3d::Property >>::*)(size_t)) &easy3d::Property>>::operator[], "C++: easy3d::Property>>::operator[](size_t) --> class std::vector > &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const class std::vector > * (easy3d::Property >>::*)() const) &easy3d::Property>>::data, "C++: easy3d::Property>>::data() const --> const class std::vector > *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector > > & (easy3d::Property >>::*)()) &easy3d::Property>>::vector, "C++: easy3d::Property>>::vector() --> class std::vector > > &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray > > & (easy3d::Property >>::*)()) &easy3d::Property>>::array, "C++: easy3d::Property>>::array() --> class easy3d::PropertyArray > > &", pybind11::return_value_policy::automatic); @@ -769,7 +769,7 @@ void bind_easy3d_core_property(pybind11::module_& m) cl.def("type", (const class std::type_info & (easy3d::PropertyArray>::*)() const) &easy3d::PropertyArray>::type, "C++: easy3d::PropertyArray>::type() const --> const class std::type_info &", pybind11::return_value_policy::automatic); cl.def("data", (const class easy3d::Vec<3, float> * (easy3d::PropertyArray>::*)() const) &easy3d::PropertyArray>::data, "C++: easy3d::PropertyArray>::data() const --> const class easy3d::Vec<3, float> *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector > & (easy3d::PropertyArray>::*)()) &easy3d::PropertyArray>::vector, "C++: easy3d::PropertyArray>::vector() --> class std::vector > &", pybind11::return_value_policy::automatic); - cl.def("__getitem__", (class easy3d::Vec<3, float> & (easy3d::PropertyArray>::*)(unsigned long)) &easy3d::PropertyArray>::operator[], "C++: easy3d::PropertyArray>::operator[](unsigned long) --> class easy3d::Vec<3, float> &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); + cl.def("__getitem__", (class easy3d::Vec<3, float> & (easy3d::PropertyArray>::*)(size_t)) &easy3d::PropertyArray>::operator[], "C++: easy3d::PropertyArray>::operator[](size_t) --> class easy3d::Vec<3, float> &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); cl.def("assign", (class easy3d::PropertyArray > & (easy3d::PropertyArray>::*)(const class easy3d::PropertyArray > &)) &easy3d::PropertyArray>::operator=, "C++: easy3d::PropertyArray>::operator=(const class easy3d::PropertyArray > &) --> class easy3d::PropertyArray > &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reserve", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::reserve, "Reserve memory for n elements.\n\nC++: easy3d::BasePropertyArray::reserve(unsigned long) --> void", pybind11::arg("n")); cl.def("resize", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::resize, "Resize storage to hold n elements.\n\nC++: easy3d::BasePropertyArray::resize(unsigned long) --> void", pybind11::arg("n")); diff --git a/python/bindings/easy3d/core/surface_mesh.cpp b/python/bindings/easy3d/core/surface_mesh.cpp index 4f58d060..11bf1645 100644 --- a/python/bindings/easy3d/core/surface_mesh.cpp +++ b/python/bindings/easy3d/core/surface_mesh.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -23,7 +23,7 @@ struct PyCallBack_easy3d_Property_easy3d_SurfaceMesh_Halfedge_t : public easy3d::Property { using easy3d::Property::Property; - struct easy3d::SurfaceMesh::Halfedge & operator[](unsigned long a0) override { + struct easy3d::SurfaceMesh::Halfedge & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -42,7 +42,7 @@ struct PyCallBack_easy3d_Property_easy3d_SurfaceMesh_Halfedge_t : public easy3d: struct PyCallBack_easy3d_Property_easy3d_SurfaceMesh_VertexConnectivity_t : public easy3d::Property { using easy3d::Property::Property; - struct easy3d::SurfaceMesh::VertexConnectivity & operator[](unsigned long a0) override { + struct easy3d::SurfaceMesh::VertexConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -61,7 +61,7 @@ struct PyCallBack_easy3d_Property_easy3d_SurfaceMesh_VertexConnectivity_t : publ struct PyCallBack_easy3d_Property_easy3d_SurfaceMesh_HalfedgeConnectivity_t : public easy3d::Property { using easy3d::Property::Property; - struct easy3d::SurfaceMesh::HalfedgeConnectivity & operator[](unsigned long a0) override { + struct easy3d::SurfaceMesh::HalfedgeConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -80,7 +80,7 @@ struct PyCallBack_easy3d_Property_easy3d_SurfaceMesh_HalfedgeConnectivity_t : pu struct PyCallBack_easy3d_Property_easy3d_SurfaceMesh_FaceConnectivity_t : public easy3d::Property { using easy3d::Property::Property; - struct easy3d::SurfaceMesh::FaceConnectivity & operator[](unsigned long a0) override { + struct easy3d::SurfaceMesh::FaceConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -133,7 +133,7 @@ struct PyCallBack_easy3d_SurfaceMesh : public easy3d::SurfaceMesh { struct PyCallBack_easy3d_SurfaceMesh_VertexProperty_easy3d_SurfaceMesh_VertexConnectivity_t : public easy3d::SurfaceMesh::VertexProperty { using easy3d::SurfaceMesh::VertexProperty::VertexProperty; - struct easy3d::SurfaceMesh::VertexConnectivity & operator[](unsigned long a0) override { + struct easy3d::SurfaceMesh::VertexConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -153,7 +153,7 @@ struct PyCallBack_easy3d_SurfaceMesh_VertexProperty_easy3d_Vec_3_float_t : publi using easy3d::SurfaceMesh::VertexProperty>::VertexProperty; using _binder_ret_0 = easy3d::Vec<3, float> &; - _binder_ret_0 operator[](unsigned long a0) override { + _binder_ret_0 operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast> *>(this), "__getitem__"); if (overload) { @@ -172,7 +172,7 @@ struct PyCallBack_easy3d_SurfaceMesh_VertexProperty_easy3d_Vec_3_float_t : publi struct PyCallBack_easy3d_SurfaceMesh_VertexProperty_float_t : public easy3d::SurfaceMesh::VertexProperty { using easy3d::SurfaceMesh::VertexProperty::VertexProperty; - float & operator[](unsigned long a0) override { + float & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -191,7 +191,7 @@ struct PyCallBack_easy3d_SurfaceMesh_VertexProperty_float_t : public easy3d::Sur struct PyCallBack_easy3d_SurfaceMesh_HalfedgeProperty_easy3d_SurfaceMesh_HalfedgeConnectivity_t : public easy3d::SurfaceMesh::HalfedgeProperty { using easy3d::SurfaceMesh::HalfedgeProperty::HalfedgeProperty; - struct easy3d::SurfaceMesh::HalfedgeConnectivity & operator[](unsigned long a0) override { + struct easy3d::SurfaceMesh::HalfedgeConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -210,7 +210,7 @@ struct PyCallBack_easy3d_SurfaceMesh_HalfedgeProperty_easy3d_SurfaceMesh_Halfedg struct PyCallBack_easy3d_SurfaceMesh_FaceProperty_easy3d_SurfaceMesh_FaceConnectivity_t : public easy3d::SurfaceMesh::FaceProperty { using easy3d::SurfaceMesh::FaceProperty::FaceProperty; - struct easy3d::SurfaceMesh::FaceConnectivity & operator[](unsigned long a0) override { + struct easy3d::SurfaceMesh::FaceConnectivity & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -230,7 +230,7 @@ struct PyCallBack_easy3d_SurfaceMesh_FaceProperty_easy3d_SurfaceMesh_FaceConnect struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_VertexConnectivity_t : public easy3d::PropertyArray { using easy3d::PropertyArray::PropertyArray; - void reserve(unsigned long a0) override { + void reserve(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reserve"); if (overload) { @@ -243,7 +243,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_VertexConnectivity_t : } return PropertyArray::reserve(a0); } - void resize(unsigned long a0) override { + void resize(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "resize"); if (overload) { @@ -269,7 +269,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_VertexConnectivity_t : } return PropertyArray::push_back(); } - void reset(unsigned long a0) override { + void reset(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reset"); if (overload) { @@ -321,7 +321,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_VertexConnectivity_t : } return PropertyArray::shrink_to_fit(); } - void swap(unsigned long a0, unsigned long a1) override { + void swap(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "swap"); if (overload) { @@ -334,7 +334,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_VertexConnectivity_t : } return PropertyArray::swap(a0, a1); } - void copy(unsigned long a0, unsigned long a1) override { + void copy(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "copy"); if (overload) { @@ -392,7 +392,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_VertexConnectivity_t : struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_HalfedgeConnectivity_t : public easy3d::PropertyArray { using easy3d::PropertyArray::PropertyArray; - void reserve(unsigned long a0) override { + void reserve(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reserve"); if (overload) { @@ -405,7 +405,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_HalfedgeConnectivity_t } return PropertyArray::reserve(a0); } - void resize(unsigned long a0) override { + void resize(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "resize"); if (overload) { @@ -431,7 +431,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_HalfedgeConnectivity_t } return PropertyArray::push_back(); } - void reset(unsigned long a0) override { + void reset(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reset"); if (overload) { @@ -483,7 +483,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_HalfedgeConnectivity_t } return PropertyArray::shrink_to_fit(); } - void swap(unsigned long a0, unsigned long a1) override { + void swap(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "swap"); if (overload) { @@ -496,7 +496,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_HalfedgeConnectivity_t } return PropertyArray::swap(a0, a1); } - void copy(unsigned long a0, unsigned long a1) override { + void copy(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "copy"); if (overload) { @@ -555,7 +555,7 @@ struct PyCallBack_easy3d_SurfaceMesh_FaceProperty_easy3d_Vec_3_float_t : public using easy3d::SurfaceMesh::FaceProperty>::FaceProperty; using _binder_ret_0 = easy3d::Vec<3, float> &; - _binder_ret_0 operator[](unsigned long a0) override { + _binder_ret_0 operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast> *>(this), "__getitem__"); if (overload) { @@ -574,7 +574,7 @@ struct PyCallBack_easy3d_SurfaceMesh_FaceProperty_easy3d_Vec_3_float_t : public struct PyCallBack_easy3d_Property_easy3d_SurfaceMesh_Vertex_t : public easy3d::Property { using easy3d::Property::Property; - struct easy3d::SurfaceMesh::Vertex & operator[](unsigned long a0) override { + struct easy3d::SurfaceMesh::Vertex & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -594,7 +594,7 @@ struct PyCallBack_easy3d_Property_easy3d_SurfaceMesh_Vertex_t : public easy3d::P struct PyCallBack_easy3d_SurfaceMesh_VertexProperty_easy3d_SurfaceMesh_Vertex_t : public easy3d::SurfaceMesh::VertexProperty { using easy3d::SurfaceMesh::VertexProperty::VertexProperty; - struct easy3d::SurfaceMesh::Vertex & operator[](unsigned long a0) override { + struct easy3d::SurfaceMesh::Vertex & operator[](size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "__getitem__"); if (overload) { @@ -613,7 +613,7 @@ struct PyCallBack_easy3d_SurfaceMesh_VertexProperty_easy3d_SurfaceMesh_Vertex_t struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_Vertex_t : public easy3d::PropertyArray { using easy3d::PropertyArray::PropertyArray; - void reserve(unsigned long a0) override { + void reserve(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reserve"); if (overload) { @@ -626,7 +626,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_Vertex_t : public easy } return PropertyArray::reserve(a0); } - void resize(unsigned long a0) override { + void resize(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "resize"); if (overload) { @@ -652,7 +652,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_Vertex_t : public easy } return PropertyArray::push_back(); } - void reset(unsigned long a0) override { + void reset(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reset"); if (overload) { @@ -704,7 +704,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_Vertex_t : public easy } return PropertyArray::shrink_to_fit(); } - void swap(unsigned long a0, unsigned long a1) override { + void swap(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "swap"); if (overload) { @@ -717,7 +717,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_Vertex_t : public easy } return PropertyArray::swap(a0, a1); } - void copy(unsigned long a0, unsigned long a1) override { + void copy(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "copy"); if (overload) { @@ -775,7 +775,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_Vertex_t : public easy struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_FaceConnectivity_t : public easy3d::PropertyArray { using easy3d::PropertyArray::PropertyArray; - void reserve(unsigned long a0) override { + void reserve(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reserve"); if (overload) { @@ -788,7 +788,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_FaceConnectivity_t : p } return PropertyArray::reserve(a0); } - void resize(unsigned long a0) override { + void resize(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "resize"); if (overload) { @@ -814,7 +814,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_FaceConnectivity_t : p } return PropertyArray::push_back(); } - void reset(unsigned long a0) override { + void reset(size_t a0) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "reset"); if (overload) { @@ -866,7 +866,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_FaceConnectivity_t : p } return PropertyArray::shrink_to_fit(); } - void swap(unsigned long a0, unsigned long a1) override { + void swap(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "swap"); if (overload) { @@ -879,7 +879,7 @@ struct PyCallBack_easy3d_PropertyArray_easy3d_SurfaceMesh_FaceConnectivity_t : p } return PropertyArray::swap(a0, a1); } - void copy(unsigned long a0, unsigned long a1) override { + void copy(size_t a0, size_t a1) override { pybind11::gil_scoped_acquire gil; pybind11::function overload = pybind11::get_overload(static_cast *>(this), "copy"); if (overload) { @@ -1188,7 +1188,7 @@ void bind_easy3d_core_surface_mesh(pybind11::module_& m) cl.def( pybind11::init( [](PyCallBack_easy3d_Property_easy3d_SurfaceMesh_VertexConnectivity_t const &o){ return new PyCallBack_easy3d_Property_easy3d_SurfaceMesh_VertexConnectivity_t(o); } ) ); cl.def( pybind11::init( [](easy3d::Property const &o){ return new easy3d::Property(o); } ) ); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::SurfaceMesh::VertexConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::SurfaceMesh::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::SurfaceMesh::VertexConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::SurfaceMesh::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::SurfaceMesh::VertexConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::SurfaceMesh::VertexConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1204,7 +1204,7 @@ void bind_easy3d_core_surface_mesh(pybind11::module_& m) cl.def( pybind11::init( [](PyCallBack_easy3d_Property_easy3d_SurfaceMesh_HalfedgeConnectivity_t const &o){ return new PyCallBack_easy3d_Property_easy3d_SurfaceMesh_HalfedgeConnectivity_t(o); } ) ); cl.def( pybind11::init( [](easy3d::Property const &o){ return new easy3d::Property(o); } ) ); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::SurfaceMesh::HalfedgeConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::SurfaceMesh::HalfedgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::SurfaceMesh::HalfedgeConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::SurfaceMesh::HalfedgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::SurfaceMesh::HalfedgeConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::SurfaceMesh::HalfedgeConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1220,7 +1220,7 @@ void bind_easy3d_core_surface_mesh(pybind11::module_& m) cl.def( pybind11::init( [](PyCallBack_easy3d_Property_easy3d_SurfaceMesh_FaceConnectivity_t const &o){ return new PyCallBack_easy3d_Property_easy3d_SurfaceMesh_FaceConnectivity_t(o); } ) ); cl.def( pybind11::init( [](easy3d::Property const &o){ return new easy3d::Property(o); } ) ); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::SurfaceMesh::FaceConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::SurfaceMesh::FaceConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::SurfaceMesh::FaceConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::SurfaceMesh::FaceConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::SurfaceMesh::FaceConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::SurfaceMesh::FaceConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1240,7 +1240,7 @@ void bind_easy3d_core_surface_mesh(pybind11::module_& m) cl.def("__getitem__", (struct easy3d::SurfaceMesh::VertexConnectivity & (easy3d::SurfaceMesh::VertexProperty::*)(struct easy3d::SurfaceMesh::Vertex)) &easy3d::SurfaceMesh::VertexProperty::operator[], "C++: easy3d::SurfaceMesh::VertexProperty::operator[](struct easy3d::SurfaceMesh::Vertex) --> struct easy3d::SurfaceMesh::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("v")); cl.def("assign", (class easy3d::SurfaceMesh::VertexProperty & (easy3d::SurfaceMesh::VertexProperty::*)(const class easy3d::SurfaceMesh::VertexProperty &)) &easy3d::SurfaceMesh::VertexProperty::operator=, "C++: easy3d::SurfaceMesh::VertexProperty::operator=(const class easy3d::SurfaceMesh::VertexProperty &) --> class easy3d::SurfaceMesh::VertexProperty &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::SurfaceMesh::VertexConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::SurfaceMesh::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::SurfaceMesh::VertexConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::SurfaceMesh::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::SurfaceMesh::VertexConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::SurfaceMesh::VertexConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1277,7 +1277,7 @@ void bind_easy3d_core_surface_mesh(pybind11::module_& m) cl.def("__getitem__", (class easy3d::Vec<3, float> & (easy3d::SurfaceMesh::VertexProperty>::*)(struct easy3d::SurfaceMesh::Vertex)) &easy3d::SurfaceMesh::VertexProperty>::operator[], "C++: easy3d::SurfaceMesh::VertexProperty>::operator[](struct easy3d::SurfaceMesh::Vertex) --> class easy3d::Vec<3, float> &", pybind11::return_value_policy::automatic, pybind11::arg("v")); cl.def("assign", (class easy3d::SurfaceMesh::VertexProperty > & (easy3d::SurfaceMesh::VertexProperty>::*)(const class easy3d::SurfaceMesh::VertexProperty > &)) &easy3d::SurfaceMesh::VertexProperty>::operator=, "C++: easy3d::SurfaceMesh::VertexProperty>::operator=(const class easy3d::SurfaceMesh::VertexProperty > &) --> class easy3d::SurfaceMesh::VertexProperty > &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reset", (void (easy3d::Property>::*)()) &easy3d::Property>::reset, "C++: easy3d::Property>::reset() --> void"); - cl.def("__getitem__", (class easy3d::Vec<3, float> & (easy3d::Property>::*)(unsigned long)) &easy3d::Property>::operator[], "C++: easy3d::Property>::operator[](unsigned long) --> class easy3d::Vec<3, float> &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (class easy3d::Vec<3, float> & (easy3d::Property>::*)(size_t)) &easy3d::Property>::operator[], "C++: easy3d::Property>::operator[](size_t) --> class easy3d::Vec<3, float> &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const class easy3d::Vec<3, float> * (easy3d::Property>::*)() const) &easy3d::Property>::data, "C++: easy3d::Property>::data() const --> const class easy3d::Vec<3, float> *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector > & (easy3d::Property>::*)()) &easy3d::Property>::vector, "C++: easy3d::Property>::vector() --> class std::vector > &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray > & (easy3d::Property>::*)()) &easy3d::Property>::array, "C++: easy3d::Property>::array() --> class easy3d::PropertyArray > &", pybind11::return_value_policy::automatic); @@ -1295,7 +1295,7 @@ void bind_easy3d_core_surface_mesh(pybind11::module_& m) cl.def("__getitem__", (float & (easy3d::SurfaceMesh::VertexProperty::*)(struct easy3d::SurfaceMesh::Vertex)) &easy3d::SurfaceMesh::VertexProperty::operator[], "C++: easy3d::SurfaceMesh::VertexProperty::operator[](struct easy3d::SurfaceMesh::Vertex) --> float &", pybind11::return_value_policy::automatic, pybind11::arg("v")); cl.def("assign", (class easy3d::SurfaceMesh::VertexProperty & (easy3d::SurfaceMesh::VertexProperty::*)(const class easy3d::SurfaceMesh::VertexProperty &)) &easy3d::SurfaceMesh::VertexProperty::operator=, "C++: easy3d::SurfaceMesh::VertexProperty::operator=(const class easy3d::SurfaceMesh::VertexProperty &) --> class easy3d::SurfaceMesh::VertexProperty &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (float & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> float &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (float & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> float &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const float * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const float *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1315,7 +1315,7 @@ void bind_easy3d_core_surface_mesh(pybind11::module_& m) cl.def("__getitem__", (struct easy3d::SurfaceMesh::HalfedgeConnectivity & (easy3d::SurfaceMesh::HalfedgeProperty::*)(struct easy3d::SurfaceMesh::Halfedge)) &easy3d::SurfaceMesh::HalfedgeProperty::operator[], "C++: easy3d::SurfaceMesh::HalfedgeProperty::operator[](struct easy3d::SurfaceMesh::Halfedge) --> struct easy3d::SurfaceMesh::HalfedgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("h")); cl.def("assign", (class easy3d::SurfaceMesh::HalfedgeProperty & (easy3d::SurfaceMesh::HalfedgeProperty::*)(const class easy3d::SurfaceMesh::HalfedgeProperty &)) &easy3d::SurfaceMesh::HalfedgeProperty::operator=, "C++: easy3d::SurfaceMesh::HalfedgeProperty::operator=(const class easy3d::SurfaceMesh::HalfedgeProperty &) --> class easy3d::SurfaceMesh::HalfedgeProperty &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::SurfaceMesh::HalfedgeConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::SurfaceMesh::HalfedgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::SurfaceMesh::HalfedgeConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::SurfaceMesh::HalfedgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::SurfaceMesh::HalfedgeConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::SurfaceMesh::HalfedgeConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1352,7 +1352,7 @@ void bind_easy3d_core_surface_mesh(pybind11::module_& m) cl.def("__getitem__", (struct easy3d::SurfaceMesh::FaceConnectivity & (easy3d::SurfaceMesh::FaceProperty::*)(struct easy3d::SurfaceMesh::Face)) &easy3d::SurfaceMesh::FaceProperty::operator[], "C++: easy3d::SurfaceMesh::FaceProperty::operator[](struct easy3d::SurfaceMesh::Face) --> struct easy3d::SurfaceMesh::FaceConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("f")); cl.def("assign", (class easy3d::SurfaceMesh::FaceProperty & (easy3d::SurfaceMesh::FaceProperty::*)(const class easy3d::SurfaceMesh::FaceProperty &)) &easy3d::SurfaceMesh::FaceProperty::operator=, "C++: easy3d::SurfaceMesh::FaceProperty::operator=(const class easy3d::SurfaceMesh::FaceProperty &) --> class easy3d::SurfaceMesh::FaceProperty &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::SurfaceMesh::FaceConnectivity & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::SurfaceMesh::FaceConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::SurfaceMesh::FaceConnectivity & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::SurfaceMesh::FaceConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::SurfaceMesh::FaceConnectivity * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::SurfaceMesh::FaceConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1389,7 +1389,7 @@ void bind_easy3d_core_surface_mesh(pybind11::module_& m) cl.def("__getitem__", (class easy3d::Vec<3, float> & (easy3d::SurfaceMesh::FaceProperty>::*)(struct easy3d::SurfaceMesh::Face)) &easy3d::SurfaceMesh::FaceProperty>::operator[], "C++: easy3d::SurfaceMesh::FaceProperty>::operator[](struct easy3d::SurfaceMesh::Face) --> class easy3d::Vec<3, float> &", pybind11::return_value_policy::automatic, pybind11::arg("f")); cl.def("assign", (class easy3d::SurfaceMesh::FaceProperty > & (easy3d::SurfaceMesh::FaceProperty>::*)(const class easy3d::SurfaceMesh::FaceProperty > &)) &easy3d::SurfaceMesh::FaceProperty>::operator=, "C++: easy3d::SurfaceMesh::FaceProperty>::operator=(const class easy3d::SurfaceMesh::FaceProperty > &) --> class easy3d::SurfaceMesh::FaceProperty > &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reset", (void (easy3d::Property>::*)()) &easy3d::Property>::reset, "C++: easy3d::Property>::reset() --> void"); - cl.def("__getitem__", (class easy3d::Vec<3, float> & (easy3d::Property>::*)(unsigned long)) &easy3d::Property>::operator[], "C++: easy3d::Property>::operator[](unsigned long) --> class easy3d::Vec<3, float> &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (class easy3d::Vec<3, float> & (easy3d::Property>::*)(size_t)) &easy3d::Property>::operator[], "C++: easy3d::Property>::operator[](size_t) --> class easy3d::Vec<3, float> &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const class easy3d::Vec<3, float> * (easy3d::Property>::*)() const) &easy3d::Property>::data, "C++: easy3d::Property>::data() const --> const class easy3d::Vec<3, float> *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector > & (easy3d::Property>::*)()) &easy3d::Property>::vector, "C++: easy3d::Property>::vector() --> class std::vector > &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray > & (easy3d::Property>::*)()) &easy3d::Property>::array, "C++: easy3d::Property>::array() --> class easy3d::PropertyArray > &", pybind11::return_value_policy::automatic); @@ -1606,7 +1606,7 @@ void bind_easy3d_core_surface_mesh(pybind11::module_& m) cl.def("type", (const class std::type_info & (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::type, "C++: easy3d::PropertyArray::type() const --> const class std::type_info &", pybind11::return_value_policy::automatic); cl.def("data", (const struct easy3d::SurfaceMesh::VertexConnectivity * (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::data, "C++: easy3d::PropertyArray::data() const --> const struct easy3d::SurfaceMesh::VertexConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::PropertyArray::*)()) &easy3d::PropertyArray::vector, "C++: easy3d::PropertyArray::vector() --> class std::vector &", pybind11::return_value_policy::automatic); - cl.def("__getitem__", (struct easy3d::SurfaceMesh::VertexConnectivity & (easy3d::PropertyArray::*)(unsigned long)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](unsigned long) --> struct easy3d::SurfaceMesh::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); + cl.def("__getitem__", (struct easy3d::SurfaceMesh::VertexConnectivity & (easy3d::PropertyArray::*)(size_t)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](size_t) --> struct easy3d::SurfaceMesh::VertexConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); cl.def("assign", (class easy3d::PropertyArray & (easy3d::PropertyArray::*)(const class easy3d::PropertyArray &)) &easy3d::PropertyArray::operator=, "C++: easy3d::PropertyArray::operator=(const class easy3d::PropertyArray &) --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reserve", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::reserve, "Reserve memory for n elements.\n\nC++: easy3d::BasePropertyArray::reserve(unsigned long) --> void", pybind11::arg("n")); cl.def("resize", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::resize, "Resize storage to hold n elements.\n\nC++: easy3d::BasePropertyArray::resize(unsigned long) --> void", pybind11::arg("n")); @@ -1647,7 +1647,7 @@ void bind_easy3d_core_surface_mesh(pybind11::module_& m) cl.def("type", (const class std::type_info & (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::type, "C++: easy3d::PropertyArray::type() const --> const class std::type_info &", pybind11::return_value_policy::automatic); cl.def("data", (const struct easy3d::SurfaceMesh::HalfedgeConnectivity * (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::data, "C++: easy3d::PropertyArray::data() const --> const struct easy3d::SurfaceMesh::HalfedgeConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::PropertyArray::*)()) &easy3d::PropertyArray::vector, "C++: easy3d::PropertyArray::vector() --> class std::vector &", pybind11::return_value_policy::automatic); - cl.def("__getitem__", (struct easy3d::SurfaceMesh::HalfedgeConnectivity & (easy3d::PropertyArray::*)(unsigned long)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](unsigned long) --> struct easy3d::SurfaceMesh::HalfedgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); + cl.def("__getitem__", (struct easy3d::SurfaceMesh::HalfedgeConnectivity & (easy3d::PropertyArray::*)(size_t)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](size_t) --> struct easy3d::SurfaceMesh::HalfedgeConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); cl.def("assign", (class easy3d::PropertyArray & (easy3d::PropertyArray::*)(const class easy3d::PropertyArray &)) &easy3d::PropertyArray::operator=, "C++: easy3d::PropertyArray::operator=(const class easy3d::PropertyArray &) --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reserve", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::reserve, "Reserve memory for n elements.\n\nC++: easy3d::BasePropertyArray::reserve(unsigned long) --> void", pybind11::arg("n")); cl.def("resize", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::resize, "Resize storage to hold n elements.\n\nC++: easy3d::BasePropertyArray::resize(unsigned long) --> void", pybind11::arg("n")); @@ -1673,7 +1673,7 @@ void bind_easy3d_core_surface_mesh(pybind11::module_& m) cl.def( pybind11::init *>(), pybind11::arg("p") ); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::SurfaceMesh::Halfedge & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::SurfaceMesh::Halfedge &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::SurfaceMesh::Halfedge & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::SurfaceMesh::Halfedge &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::SurfaceMesh::Halfedge * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::SurfaceMesh::Halfedge *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1690,7 +1690,7 @@ void bind_easy3d_core_surface_mesh(pybind11::module_& m) cl.def( pybind11::init( [](PyCallBack_easy3d_Property_easy3d_SurfaceMesh_Vertex_t const &o){ return new PyCallBack_easy3d_Property_easy3d_SurfaceMesh_Vertex_t(o); } ) ); cl.def( pybind11::init( [](easy3d::Property const &o){ return new easy3d::Property(o); } ) ); cl.def("reset", (void (easy3d::Property::*)()) &easy3d::Property::reset, "C++: easy3d::Property::reset() --> void"); - cl.def("__getitem__", (struct easy3d::SurfaceMesh::Vertex & (easy3d::Property::*)(unsigned long)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](unsigned long) --> struct easy3d::SurfaceMesh::Vertex &", pybind11::return_value_policy::automatic, pybind11::arg("i")); + cl.def("__getitem__", (struct easy3d::SurfaceMesh::Vertex & (easy3d::Property::*)(size_t)) &easy3d::Property::operator[], "C++: easy3d::Property::operator[](size_t) --> struct easy3d::SurfaceMesh::Vertex &", pybind11::return_value_policy::automatic, pybind11::arg("i")); cl.def("data", (const struct easy3d::SurfaceMesh::Vertex * (easy3d::Property::*)() const) &easy3d::Property::data, "C++: easy3d::Property::data() const --> const struct easy3d::SurfaceMesh::Vertex *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::Property::*)()) &easy3d::Property::vector, "C++: easy3d::Property::vector() --> class std::vector &", pybind11::return_value_policy::automatic); cl.def("array", (class easy3d::PropertyArray & (easy3d::Property::*)()) &easy3d::Property::array, "C++: easy3d::Property::array() --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic); @@ -1720,7 +1720,7 @@ void bind_easy3d_core_surface_mesh(pybind11::module_& m) cl.def("type", (const class std::type_info & (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::type, "C++: easy3d::PropertyArray::type() const --> const class std::type_info &", pybind11::return_value_policy::automatic); cl.def("data", (const struct easy3d::SurfaceMesh::Vertex * (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::data, "C++: easy3d::PropertyArray::data() const --> const struct easy3d::SurfaceMesh::Vertex *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::PropertyArray::*)()) &easy3d::PropertyArray::vector, "C++: easy3d::PropertyArray::vector() --> class std::vector &", pybind11::return_value_policy::automatic); - cl.def("__getitem__", (struct easy3d::SurfaceMesh::Vertex & (easy3d::PropertyArray::*)(unsigned long)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](unsigned long) --> struct easy3d::SurfaceMesh::Vertex &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); + cl.def("__getitem__", (struct easy3d::SurfaceMesh::Vertex & (easy3d::PropertyArray::*)(size_t)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](size_t) --> struct easy3d::SurfaceMesh::Vertex &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); cl.def("assign", (class easy3d::PropertyArray & (easy3d::PropertyArray::*)(const class easy3d::PropertyArray &)) &easy3d::PropertyArray::operator=, "C++: easy3d::PropertyArray::operator=(const class easy3d::PropertyArray &) --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reserve", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::reserve, "Reserve memory for n elements.\n\nC++: easy3d::BasePropertyArray::reserve(unsigned long) --> void", pybind11::arg("n")); cl.def("resize", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::resize, "Resize storage to hold n elements.\n\nC++: easy3d::BasePropertyArray::resize(unsigned long) --> void", pybind11::arg("n")); @@ -1761,7 +1761,7 @@ void bind_easy3d_core_surface_mesh(pybind11::module_& m) cl.def("type", (const class std::type_info & (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::type, "C++: easy3d::PropertyArray::type() const --> const class std::type_info &", pybind11::return_value_policy::automatic); cl.def("data", (const struct easy3d::SurfaceMesh::FaceConnectivity * (easy3d::PropertyArray::*)() const) &easy3d::PropertyArray::data, "C++: easy3d::PropertyArray::data() const --> const struct easy3d::SurfaceMesh::FaceConnectivity *", pybind11::return_value_policy::automatic); cl.def("vector", (class std::vector & (easy3d::PropertyArray::*)()) &easy3d::PropertyArray::vector, "C++: easy3d::PropertyArray::vector() --> class std::vector &", pybind11::return_value_policy::automatic); - cl.def("__getitem__", (struct easy3d::SurfaceMesh::FaceConnectivity & (easy3d::PropertyArray::*)(unsigned long)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](unsigned long) --> struct easy3d::SurfaceMesh::FaceConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); + cl.def("__getitem__", (struct easy3d::SurfaceMesh::FaceConnectivity & (easy3d::PropertyArray::*)(size_t)) &easy3d::PropertyArray::operator[], "C++: easy3d::PropertyArray::operator[](size_t) --> struct easy3d::SurfaceMesh::FaceConnectivity &", pybind11::return_value_policy::automatic, pybind11::arg("_idx")); cl.def("assign", (class easy3d::PropertyArray & (easy3d::PropertyArray::*)(const class easy3d::PropertyArray &)) &easy3d::PropertyArray::operator=, "C++: easy3d::PropertyArray::operator=(const class easy3d::PropertyArray &) --> class easy3d::PropertyArray &", pybind11::return_value_policy::automatic, pybind11::arg("")); cl.def("reserve", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::reserve, "Reserve memory for n elements.\n\nC++: easy3d::BasePropertyArray::reserve(unsigned long) --> void", pybind11::arg("n")); cl.def("resize", (void (easy3d::BasePropertyArray::*)(unsigned long)) &easy3d::BasePropertyArray::resize, "Resize storage to hold n elements.\n\nC++: easy3d::BasePropertyArray::resize(unsigned long) --> void", pybind11::arg("n"));