8 #include <pybind11/pybind11.h>
9 #include <pybind11/stl.h>
10 #include <pybind11/stl_bind.h>
17 using namespace pybind11::literals;
21 py::class_<ccGenericMesh, cloudViewer::GenericIndexedMesh, ccHObject>(m,
"ccGenericMesh")
22 .def(
"getAssociatedCloud",
24 py::return_value_policy::reference)
31 .def(
"getTexCoordinatesTable",
33 py::return_value_policy::reference)
35 "getTriangleTexCoordinates",
39 self.getTriangleTexCoordinates(triIndex, tx1, tx2, tx3);
40 return py::make_tuple(tx1, tx2, tx2);
43 py::return_value_policy::reference)
46 "getTriangleTexCoordinatesIndexes",
50 self.getTriangleTexCoordinatesIndexes(triangleIndex, i1, i2, i3);
51 return py::make_tuple(i1, i2, i3);
56 "getTriangleNormalIndexes",
60 self.getTriangleNormalIndexes(triangleIndex, i1, i2, i3);
61 return py::make_tuple(i1, i2, i3);
69 self.getTriangleNormals(triangleIndex, Na, Nb, Nc);
70 return py::make_tuple(Na, Nb, Nc);
void define_ccGenericMesh(py::module &m)
virtual TextureCoordsContainer * getTexCoordinatesTable() const =0
Returns per-triangle texture coordinates array.
virtual bool hasTextures() const =0
Returns whether textures are available for this mesh.
virtual bool hasPerTriangleTexCoordIndexes() const =0
Returns whether this mesh as per-triangle triplets of tex coords indexes.
virtual const ccMaterialSet * getMaterialSet() const =0
virtual bool hasTriNormals() const =0
Returns whether the mesh has per-triangle normals.
virtual int getTriangleMtlIndex(unsigned triangleIndex) const =0
Returns a given triangle material indexes.
virtual ccGenericPointCloud * getAssociatedCloud() const =0
Returns the vertices cloud.
virtual unsigned capacity() const =0
Returns max capacity.
virtual void refreshBB()=0
Forces bounding-box update.
virtual bool hasMaterials() const =0