aimstil  5.0.5
MeshTraits.h File Reference
#include <vector>
#include <boost/array.hpp>
#include <boost/type_traits.hpp>
#include "cyclic_iterator.h"
#include "Mesh.h"
#include "misc_sort.h"
#include "miscUtils.h"
#include "til/til_declarations.h"
Include dependency graph for MeshTraits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  til::MeshTraits_default
 Default values for MeshTraits. More...
 
struct  til::MeshTraits< TMesh >
 Traits for meshes. More...
 
struct  til::MeshTraits< Mesh< TParam > >
 Mesh traits for meshes of type Mesh. More...
 
struct  til::MeshTraits< Mesh_N >
 
struct  til::MeshTraits< Mesh2_N >
 
struct  til::MeshAttributes< TMesh >
 A trait for knowing the return type of a Mesh when adding redundant attributes such as normals, neighbors, etc. More...
 
struct  til::MeshAttributes< Mesh_N >
 Mesh attributes traits for Mesh. More...
 
struct  til::MeshAttributes< Mesh_No >
 
struct  til::MeshAttributes< Mesh_NNo >
 

Namespaces

 til
 Belongs to package Box Do not include directly, include til/Box.h instead.
 

Macros

#define TIL_FOR_ALL_CONST_FACES(mesh)
 Return the face indices of a mesh of type AimsTimeSurface. More...
 
#define TIL_FOR_ALL_CONST_VERTICES(mesh)
 Conveniance macro for looping through all vertices of a mesh. More...
 

Functions

template<typename TParam >
const MeshTraits< Mesh< TParam > >::VertexCollection & til::getVertices (const Mesh< TParam > &mesh)
 
template<typename TParam >
MeshTraits< Mesh< TParam > >::VertexCollection & til::getVertices (Mesh< TParam > &mesh)
 
const MeshTraits< Mesh1 >::FaceIndexCollection & til::getFaceIndices (const Mesh1 &mesh)
 
const MeshTraits< Mesh2 >::FaceIndexCollection & til::getFaceIndices (const Mesh2 &mesh)
 
MeshTraits< Mesh1 >::FaceIndexCollection & til::getFaceIndices (Mesh1 &mesh)
 
MeshTraits< Mesh2 >::FaceIndexCollection & til::getFaceIndices (Mesh2 &mesh)
 
MeshTraits< Mesh_N >::NeighborIndexCollection & til::getNeighborIndices (Mesh_N &mesh)
 
const MeshTraits< Mesh_N >::NeighborIndexCollection & til::getNeighborIndices (const Mesh_N &mesh)
 
MeshTraits< Mesh2_N >::NeighborIndexCollection & til::getNeighborIndices (Mesh2_N &mesh)
 
const MeshTraits< Mesh2_N >::NeighborIndexCollection & til::getNeighborIndices (const Mesh2_N &mesh)
 
const MeshTraits< Mesh1 >::Vertex & til::getFaceVertex (const Mesh1 &mesh, const std::vector< numeric_array< std::size_t, 3 > >::const_iterator &iFC, int i)
 Returns the i-th vertex of a face of a mesh of type Mesh1. More...
 
const MeshTraits< Mesh2 >::Vertex & til::getFaceVertex (const Mesh2 &, const MeshTraits< Mesh2 >::FaceIndexCollection::const_iterator &iFC, int i)
 Returns the i-th vertex of a face of a mesh of type Mesh2. More...
 
const MeshTraits< Mesh_N >::Vertex & til::getVertexNeighbor (const Mesh_N &mesh, const MeshTraits< Mesh_N >::NeighborIndex::value_type &iNi)
 Returns the vertex neighbors of a mesh of type Mesh_N given by its index. More...
 
const numeric_array< float, 3 > & til::getVertexNeighbor (const Mesh2_N &, const MeshTraits< Mesh2_N >::NeighborIndex::value_type &iNi)
 Returns the vertex neighbors of a mesh of type Mesh_N given by its index. More...
 

Macro Definition Documentation

◆ TIL_FOR_ALL_CONST_FACES

#define TIL_FOR_ALL_CONST_FACES (   mesh)
Value:
for (iFace = getFaceIndices(mesh).begin(); iFace != getFaceIndices(mesh).end(); ++iFace) \
MeshTraits< Mesh2 >::FaceIndexCollection & getFaceIndices(Mesh2 &mesh)
Definition: MeshTraits.h:108

Return the face indices of a mesh of type AimsTimeSurface.

Conveniance macro for looping through all faces of a mesh

Definition at line 536 of file MeshTraits.h.

◆ TIL_FOR_ALL_CONST_VERTICES

#define TIL_FOR_ALL_CONST_VERTICES (   mesh)
Value:
for (iVertex = getVertices(mesh).begin(); iVertex != getVertices(mesh).end(); ++iVertices) \
MeshTraits< Mesh< TParam > >::VertexCollection & getVertices(Mesh< TParam > &mesh)
Definition: MeshTraits.h:80

Conveniance macro for looping through all vertices of a mesh.

Definition at line 541 of file MeshTraits.h.