CLoop Boundary loop class. More...
#include <boundary.h>
Public Member Functions | |
CLoop (CBaseMesh< CVertex, CEdge, CFace, CHalfEdge > *pMesh, CHalfEdge *pH) | |
~CLoop () | |
std::list< CHalfEdge * > & | halfedges () |
double | length () |
Protected Attributes | |
CBaseMesh< CVertex, CEdge, CFace, CHalfEdge > * | m_pMesh |
double | m_length |
CHalfEdge * | m_pHalfedge |
std::list< CHalfEdge * > | m_halfedges |
CLoop Boundary loop class.
Definition at line 30 of file boundary.h.
MeshLib::CLoop< CVertex, CEdge, CFace, CHalfEdge >::CLoop | ( | CBaseMesh< CVertex, CEdge, CFace, CHalfEdge > * | pMesh, | |
CHalfEdge * | pH | |||
) |
Constructor of the CLoop
pMesh | pointer to the current mesh | |
pH | halfedge on the boundary loop |
CLoop constructure, trace the boundary loop, starting from the halfedge pH.
pMesh | pointer to the current mesh | |
pH | halfedge on the current boundary loop |
Definition at line 132 of file boundary.h.
{ m_pMesh = pMesh; m_pHalfedge = pH; m_length = 0; CHalfEdge * he = pH; //trace the boundary loop do{ CVertex * v = (CVertex*)he->target(); he = m_pMesh->vertexMostClwOutHalfEdge( v ); m_halfedges.push_back( he ); m_length += m_pMesh->edgeLength( (CEdge*)he->edge() );
MeshLib::CLoop< CVertex, CEdge, CFace, CHalfEdge >::~CLoop | ( | ) |
Destructor of CLoop.
CLoop destructor, clean up the list of halfedges in the loop
Definition at line 152 of file boundary.h.
{
std::list<CHalfEdge*>& MeshLib::CLoop< CVertex, CEdge, CFace, CHalfEdge >::halfedges | ( | ) | [inline] |
The list of haledges on the current boundary loop.
Definition at line 36 of file boundary.h.
double MeshLib::CLoop< CVertex, CEdge, CFace, CHalfEdge >::length | ( | ) | [inline] |
The length of the current boundary loop.
Definition at line 44 of file boundary.h.
std::list<CHalfEdge*> MeshLib::CLoop< CVertex, CEdge, CFace, CHalfEdge >::m_halfedges [protected] |
List of consecutive halfedges along the boundary loop.
Definition at line 64 of file boundary.h.
double MeshLib::CLoop< CVertex, CEdge, CFace, CHalfEdge >::m_length [protected] |
The length of the current boundary loop.
Definition at line 56 of file boundary.h.
CHalfEdge* MeshLib::CLoop< CVertex, CEdge, CFace, CHalfEdge >::m_pHalfedge [protected] |
Starting halfedge of the current boundary loop.
Definition at line 60 of file boundary.h.
CBaseMesh<CVertex,CEdge,CFace,CHalfEdge>* MeshLib::CLoop< CVertex, CEdge, CFace, CHalfEdge >::m_pMesh [protected] |
Pointer to the current mesh.
Definition at line 53 of file boundary.h.