8 #include <pybind11/pybind11.h>
14 using namespace pybind11::literals;
18 py::class_<cloudViewer::GenericMesh>(cccorelib,
"GenericMesh", R
"pbdoc(
19 A generic mesh interface for data communication between library and client applications
22 Returns the number of triangles
26 Returns the mesh bounding-box
30 bbMin: out parameter, lower bounding-box limits (Xmin,Ymin,Zmin)
31 bbMax: out parameter, higher bounding-box limits (Xmax,Ymax,Zmax)
34 .def(
"_getNextTriangle",
36 py::return_value_policy::reference);
void define_GenericMesh(py::module &cccorelib)
virtual unsigned size() const =0
Returns the number of triangles.
virtual void getBoundingBox(CCVector3 &bbMin, CCVector3 &bbMax)=0
Returns the mesh bounding-box.
virtual GenericTriangle * _getNextTriangle()=0
Returns the next triangle (relatively to the global iterator position)
virtual void placeIteratorAtBeginning()=0
Places the mesh iterator at the beginning.
virtual void forEach(genericTriangleAction action)=0
Fast iteration mechanism.