8 #include <boost/array.hpp> 9 #include <boost/type_traits.hpp> 35 template <
class TMesh >
61 template <
typename TParam >
72 template <
typename TParam >
77 template <
typename TParam >
433 template <
class TMesh >
518 return mesh.getVertices()[iNi];
536 #define TIL_FOR_ALL_CONST_FACES(mesh) \ 537 typename MeshTraits<TMesh>::FaceIndexCollection::const_iterator iFace; \ 538 for (iFace = getFaceIndices(mesh).begin(); iFace != getFaceIndices(mesh).end(); ++iFace) \ 540 #define TIL_FOR_ALL_CONST_VERTICES(mesh) \ 542 typename MeshTraits<TMesh>::VertexCollection::const_iterator iVertex; \ 543 for (iVertex = getVertices(mesh).begin(); iVertex != getVertices(mesh).end(); ++iVertices) \ 547 #endif //_MESHTRAITS_H_ A class to represent a very basic mesh, consisting of a set of vertices and a set of edges...
const VertexCollection & getVertices() const
Mesh_N AddNeighborIndices
This class enhance a mesh class with a normal vector attribute.
MeshTraits< Mesh_N >::NeighborIndexCollection & getNeighborIndices(Mesh_N &mesh)
const NeighborIndexCollection & getNeighborIndices() const
const FaceIndexCollection & getFaceIndices() const
Belongs to package Box Do not include directly, include til/Box.h instead.
Mesh_NNo AddNeighborIndices
Mesh_NNo AddNeighborIndices
const Point3df & getFaceVertex(const AimsSurface< D, T > &mesh, const std::vector< AimsVector< unsigned int, 3 > >::const_iterator &iFC, int i)
Mesh_No RemoveNeighborIndices
std::vector< std::size_t > NeighborIndex
Mesh2_N::NeighborIndexCollection NeighborIndexCollection
This file contains forward declarations of classes defined in the TIL library.
Mesh2_N::NeighborIndex NeighborIndex
Default values for MeshTraits.
A trait for knowing the return type of a Mesh when adding redundant attributes such as normals...
std::vector< NeighborIndex > NeighborIndexCollection
const MeshTraits< Mesh_N >::Vertex & 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.
TParam::NeighborIndex NeighborIndex
const MeshTraits< AimsSurface< D, T > >::FaceIndexCollection & getFaceIndices(const AimsSurface< D, T > &mesh)
Mesh1 RemoveNeighborIndices
This class enhance a mesh class with a neighbor index attribute.
TParam::NeighborIndexCollection NeighborIndexCollection
Mesh_No RemoveNeighborIndices
const MeshTraits< AimsSurface< D, T > >::VertexCollection & getVertices(const AimsSurface< D, T > &mesh)