aimstil  5.0.5
til::Mesh< TMeshParam > Class Template Reference

A class to represent a very basic mesh, consisting of a set of vertices and a set of edges, represented as vertex indices. More...

#include <til/til_declarations.h>

Inheritance diagram for til::Mesh< TMeshParam >:
Collaboration diagram for til::Mesh< TMeshParam >:

Public Types

typedef Mesh< TMeshParam > Self
 
typedef TMeshParam::Vertex Vertex
 
typedef TMeshParam::VertexCollection VertexCollection
 
typedef TMeshParam::FaceIndex FaceIndex
 
typedef TMeshParam::FaceIndexCollection FaceIndexCollection
 

Public Member Functions

 Mesh ()
 Default constructor. More...
 
const VertexCollectiongetVertices () const
 
VertexCollectiongetVertices ()
 
const FaceIndexCollectiongetFaceIndices () const
 
FaceIndexCollectiongetFaceIndices ()
 
void deepCopy (const Mesh &mesh)
 
shared_ptr< VertexCollection > & vertices ()
 
const shared_ptr< VertexCollection > & vertices () const
 
shared_ptr< FaceIndexCollection > & faces ()
 
const shared_ptr< FaceIndexCollection > & faces () const
 

Detailed Description

template<typename TMeshParam>
class til::Mesh< TMeshParam >

A class to represent a very basic mesh, consisting of a set of vertices and a set of edges, represented as vertex indices.

Definition at line 26 of file til_declarations.h.

Member Typedef Documentation

◆ FaceIndex

template<typename TMeshParam>
typedef TMeshParam::FaceIndex til::Mesh< TMeshParam >::FaceIndex

Definition at line 42 of file Mesh.h.

◆ FaceIndexCollection

template<typename TMeshParam>
typedef TMeshParam::FaceIndexCollection til::Mesh< TMeshParam >::FaceIndexCollection

Definition at line 43 of file Mesh.h.

◆ Self

template<typename TMeshParam>
typedef Mesh<TMeshParam> til::Mesh< TMeshParam >::Self

Definition at line 39 of file Mesh.h.

◆ Vertex

template<typename TMeshParam>
typedef TMeshParam::Vertex til::Mesh< TMeshParam >::Vertex

Definition at line 40 of file Mesh.h.

◆ VertexCollection

template<typename TMeshParam>
typedef TMeshParam::VertexCollection til::Mesh< TMeshParam >::VertexCollection

Definition at line 41 of file Mesh.h.

Constructor & Destructor Documentation

◆ Mesh()

template<typename TMeshParam>
til::Mesh< TMeshParam >::Mesh ( )
inline

Default constructor.

NB: we should initialize the containers so that we never have to check whether they have to be initialized or not. This is at the price of a small performance loss (namely, the initialization to something that may not be used), but should be negligeable.

Definition at line 53 of file Mesh.h.

Member Function Documentation

◆ deepCopy()

template<typename TMeshParam>
void til::Mesh< TMeshParam >::deepCopy ( const Mesh< TMeshParam > &  mesh)
inline

Definition at line 71 of file Mesh.h.

◆ faces() [1/2]

template<typename TMeshParam>
shared_ptr<FaceIndexCollection>& til::Mesh< TMeshParam >::faces ( )
inline

Definition at line 108 of file Mesh.h.

◆ faces() [2/2]

template<typename TMeshParam>
const shared_ptr<FaceIndexCollection>& til::Mesh< TMeshParam >::faces ( ) const
inline

Definition at line 109 of file Mesh.h.

◆ getFaceIndices() [1/2]

template<typename TMeshParam>
const FaceIndexCollection& til::Mesh< TMeshParam >::getFaceIndices ( ) const
inline

Definition at line 66 of file Mesh.h.

Referenced by til::getFaceIndices().

◆ getFaceIndices() [2/2]

template<typename TMeshParam>
FaceIndexCollection& til::Mesh< TMeshParam >::getFaceIndices ( )
inline

Definition at line 67 of file Mesh.h.

◆ getVertices() [1/2]

template<typename TMeshParam>
const VertexCollection& til::Mesh< TMeshParam >::getVertices ( ) const
inline

Definition at line 63 of file Mesh.h.

Referenced by til::getFaceVertex(), and til::getVertices().

◆ getVertices() [2/2]

template<typename TMeshParam>
VertexCollection& til::Mesh< TMeshParam >::getVertices ( )
inline

Definition at line 64 of file Mesh.h.

◆ vertices() [1/2]

template<typename TMeshParam>
shared_ptr<VertexCollection>& til::Mesh< TMeshParam >::vertices ( )
inline

Definition at line 106 of file Mesh.h.

◆ vertices() [2/2]

template<typename TMeshParam>
const shared_ptr<VertexCollection>& til::Mesh< TMeshParam >::vertices ( ) const
inline

Definition at line 107 of file Mesh.h.


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