8 #include <pybind11/pybind11.h>
9 #include <pybind11/stl.h>
10 #include <pybind11/stl_bind.h>
18 using namespace pybind11::literals;
22 py::class_<ccMesh, ccGenericMesh>(m,
"ccMesh")
23 .def(py::init<ccGenericPointCloud *>(),
29 py::keep_alive<1, 2>())
30 .def(
"setAssociatedCloud",
33 py::keep_alive<1, 2>() )
40 Adds a triangle to the mesh
41 Bounding-box validity is broken after a call to this method.
42 However, for the sake of performance, no call to notifyGeometryUpdate
43 is made automatically. Make sure to do so when all modifications are done!
47 i1 first vertex index (relatively to the vertex cloud)
48 i2 second vertex index (relatively to the vertex cloud)
49 i3 third vertex index (relatively to the vertex cloud)
void define_ccMesh(py::module &m)
void addTriangles(const std::vector< Eigen::Vector3i > &triangles)
void setAssociatedCloud(ccGenericPointCloud *cloud)
Sets the associated vertices cloud (warning)
void addTriangle(unsigned i1, unsigned i2, unsigned i3)
Adds a triangle to the mesh.