Visual Computing Library  devel
Loading...
Searching...
No Matches
vcl::MeshEdgeUtil< MeshType, CNST > Class Template Reference

Utility class that represents a edge in a Mesh having Vertices and Faces. More...

#include <vclib/space/complex/mesh_edge_util.h>

Public Member Functions

 MeshEdgeUtil (FaceType &pf, uint ne)
 
bool operator!= (const MeshEdgeUtil &pe) const
 
bool operator< (const MeshEdgeUtil &pe) const
 
bool operator== (const MeshEdgeUtil &pe) const
 

Public Attributes

int e
 
FaceType * f
 
VertexType * v [2]
 

Private Types

using FaceType = std::conditional_t< CNST, const typename MeshType::FaceType, typename MeshType::FaceType >
 
using VertexType = std::conditional_t< CNST, const typename MeshType::VertexType, typename MeshType::VertexType >
 

Detailed Description

template<FaceMeshConcept MeshType, bool CNST = false>
class vcl::MeshEdgeUtil< MeshType, CNST >

Utility class that represents a edge in a Mesh having Vertices and Faces.

An instance of MeshEdgeUtil stores:

  • the index of the edge in the face
  • the pointer of the face
  • the pointers of the vertices of the edge.

This class allows to compare edges in a Mesh. The ordering is done using the vertex pointers of the edge (the face pointer or the edge index are not used).

Template Parameters
MeshTypeThe type of the mesh. It must satisfy the FaceMeshConcept.

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