29 #include <pybind11/detail/internals.h> 30 #include <pybind11/eigen.h> 31 #include <pybind11/functional.h> 32 #include <pybind11/numpy.h> 33 #include <pybind11/operators.h> 34 #include <pybind11/pybind11.h> 35 #include <pybind11/stl.h> 36 #include <pybind11/stl_bind.h> 44 typedef std::vector<Eigen::Matrix4d, open3d::utility::Matrix4d_allocator>
46 typedef std::vector<Eigen::Vector4i, open3d::utility::Vector4i_allocator>
67 template <
typename T,
typename Class_>
69 cl.def(py::init([]() {
return new T(); }),
"Default constructor");
72 template <
typename T,
typename Class_>
74 cl.def(py::init([](
const T &cp) {
return new T(cp); }),
"Copy constructor");
75 cl.def(
"__copy__", [](T &v) {
return T(v); });
76 cl.def(
"__deepcopy__", [](T &v, py::dict &memo) {
return T(v); });
std::vector< Eigen::Matrix4d, open3d::utility::Matrix4d_allocator > temp_eigen_matrix4d
Definition: open3d_pybind.h:45
Definition: open3d_pybind.h:64
void bind_default_constructor(Class_ &cl)
Definition: open3d_pybind.h:68
PYBIND11_MAKE_OPAQUE(std::vector< int >)
std::vector< Eigen::Vector4i, open3d::utility::Vector4i_allocator > temp_eigen_vector4i
Definition: open3d_pybind.h:47
void bind_copy_functions(Class_ &cl)
Definition: open3d_pybind.h:73