ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PyGenericMesh< GenericMeshBase > Class Template Reference

#include <geometry_trampoline.h>

Inheritance diagram for PyGenericMesh< GenericMeshBase >:
Collaboration diagram for PyGenericMesh< GenericMeshBase >:

Public Member Functions

unsigned size () const override
 Returns the number of triangles. More...
 
void forEach (std::function< void(cloudViewer::GenericTriangle &)> action) override
 
void getBoundingBox (CCVector3 &bbMin, CCVector3 &bbMax) override
 Returns the mesh bounding-box. More...
 
void placeIteratorAtBeginning () override
 Places the mesh iterator at the beginning. More...
 
cloudViewer::GenericTriangle_getNextTriangle () override
 Returns the next triangle (relatively to the global iterator position) More...
 
- Public Member Functions inherited from cloudViewer::GenericMesh
 GenericMesh ()=default
 
virtual ~GenericMesh ()=default
 Default destructor. More...
 
virtual bool hasTriangles () const
 
virtual void forEach (genericTriangleAction action)=0
 Fast iteration mechanism. More...
 

Additional Inherited Members

- Public Types inherited from cloudViewer::GenericMesh
enum class  SimplificationContraction { Average , Quadric }
 Indicates the method that is used for mesh simplification if multiple vertices are combined to a single one. More...
 
enum class  FilterScope { All , Color , Normal , Vertex }
 Indicates the scope of filter operations. More...
 
enum class  DeformAsRigidAsPossibleEnergy { Spokes , Smoothed }
 
using genericTriangleAction = std::function< void(GenericTriangle &)>
 Generic function to apply to a triangle (used by foreach) More...
 

Detailed Description

template<class GenericMeshBase = cloudViewer::GenericMesh>
class PyGenericMesh< GenericMeshBase >

Definition at line 82 of file geometry_trampoline.h.

Member Function Documentation

◆ _getNextTriangle()

template<class GenericMeshBase = cloudViewer::GenericMesh>
cloudViewer::GenericTriangle* PyGenericMesh< GenericMeshBase >::_getNextTriangle ( )
inlineoverridevirtual

Returns the next triangle (relatively to the global iterator position)

Virtual method to handle the mesh global iterator. Global iterator position should be increased each time this method is called. The returned object can be temporary.

Returns
a triangle

Implements cloudViewer::GenericMesh.

Definition at line 99 of file geometry_trampoline.h.

◆ forEach()

template<class GenericMeshBase = cloudViewer::GenericMesh>
void PyGenericMesh< GenericMeshBase >::forEach ( std::function< void(cloudViewer::GenericTriangle &)>  action)
inlineoverride

Definition at line 89 of file geometry_trampoline.h.

◆ getBoundingBox()

template<class GenericMeshBase = cloudViewer::GenericMesh>
void PyGenericMesh< GenericMeshBase >::getBoundingBox ( CCVector3 bbMin,
CCVector3 bbMax 
)
inlineoverridevirtual

Returns the mesh bounding-box.

Virtual method to request the mesh bounding-box limits. It is equivalent to the bounding-box of the cloud composed of the mesh vertexes.

Parameters
bbMinlower bounding-box limits (Xmin,Ymin,Zmin)
bbMaxhigher bounding-box limits (Xmax,Ymax,Zmax)

Implements cloudViewer::GenericMesh.

Definition at line 93 of file geometry_trampoline.h.

◆ placeIteratorAtBeginning()

template<class GenericMeshBase = cloudViewer::GenericMesh>
void PyGenericMesh< GenericMeshBase >::placeIteratorAtBeginning ( )
inlineoverridevirtual

Places the mesh iterator at the beginning.

Virtual method to handle the mesh global iterator

Implements cloudViewer::GenericMesh.

Definition at line 96 of file geometry_trampoline.h.

◆ size()

template<class GenericMeshBase = cloudViewer::GenericMesh>
unsigned PyGenericMesh< GenericMeshBase >::size ( ) const
inlineoverridevirtual

Returns the number of triangles.

Virtual method to request the mesh size

Returns
the mesh size

Implements cloudViewer::GenericMesh.

Definition at line 86 of file geometry_trampoline.h.


The documentation for this class was generated from the following file: