CEdge class, which is the base class of all kinds of edge classes. More...
#include <Edge.h>
Public Member Functions | |
CEdge () | |
~CEdge () | |
CHalfEdge *& | halfedge (int id) |
bool | boundary () |
CHalfEdge *& | other (CHalfEdge *he) |
std::string & | string () |
void | _from_string () |
void | _to_string () |
Protected Attributes | |
CHalfEdge * | m_halfedge [2] |
std::string | m_string |
CEdge class, which is the base class of all kinds of edge classes.
Definition at line 26 of file Edge.h.
MeshLib::CEdge::CEdge | ( | ) | [inline] |
CEdge constructor, set both halfedge pointers to be NULL.
Definition at line 32 of file Edge.h.
{ m_halfedge[0] = NULL; m_halfedge[1] = NULL; };
void MeshLib::CEdge::_from_string | ( | ) | [inline] |
void MeshLib::CEdge::_to_string | ( | ) | [inline] |
bool MeshLib::CEdge::boundary | ( | ) | [inline] |
whether the edge is on the boundary.
Definition at line 47 of file Edge.h.
{ return (m_halfedge[0] == NULL && m_halfedge[1] != NULL ) || (m_halfedge[0] != NULL && m_halfedge[1] == NULL ); };
CHalfEdge* & MeshLib::CEdge::halfedge | ( | int | id | ) | [inline] |
The halfedge attached to the current edge
id | either 0 or 1 |
Definition at line 43 of file Edge.h.
{ assert( 0<=id && id < 2 ); return m_halfedge[id];};
The dual halfedge to the input halfedge
he | halfedge attached to the current edge |
Definition at line 53 of file Edge.h.
{ return (he != m_halfedge[0] )?m_halfedge[0]:m_halfedge[1]; };
std::string& MeshLib::CEdge::string | ( | ) | [inline] |
CHalfEdge* MeshLib::CEdge::m_halfedge[2] [protected] |
std::string MeshLib::CEdge::m_string [protected] |