CVertex class, which is the base class of all kinds of vertex classes.
More...
#include <Vertex.h>
List of all members.
Detailed Description
CVertex class, which is the base class of all kinds of vertex classes.
Definition at line 25 of file Vertex.h.
Constructor & Destructor Documentation
MeshLib::CVertex::CVertex |
( |
|
) |
[inline] |
MeshLib::CVertex::~CVertex |
( |
|
) |
[inline] |
Member Function Documentation
void MeshLib::CVertex::_from_string |
( |
|
) |
[inline] |
void MeshLib::CVertex::_to_string |
( |
|
) |
[inline] |
Convert vertex traits to string.
Definition at line 74 of file Vertex.h.
bool& MeshLib::CVertex::boundary |
( |
|
) |
[inline] |
Whether the vertex is on the boundary.
Definition at line 71 of file Vertex.h.
CHalfEdge* & MeshLib::CVertex::halfedge |
( |
|
) |
[inline] |
One incoming halfedge of the vertex .
Definition at line 62 of file Vertex.h.
int& MeshLib::CVertex::id |
( |
|
) |
[inline] |
Vertex id.
Definition at line 68 of file Vertex.h.
CHalfEdge * MeshLib::CVertex::most_ccw_in_halfedge |
( |
|
) |
[inline] |
The most counter clockwise incoming halfedge of the vertex.
- Returns:
- the most CCW in halfedge
Definition at line 109 of file Vertex.h.
CHalfEdge * MeshLib::CVertex::most_ccw_out_halfedge |
( |
|
) |
[inline] |
The most counter clockwise outgoing halfedge of the vertex .
Definition at line 152 of file Vertex.h.
{
if( !m_boundary )
{
return most_ccw_in_halfedge()->he_sym();
}
CHalfEdge * he = m_halfedge->he_next();
CHalfEdge * ne = he->ccw_rotate_about_source();
while( ne != NULL )
{
he = ne;
ne = he->ccw_rotate_about_source();
}
return he;
CHalfEdge * MeshLib::CVertex::most_clw_in_halfedge |
( |
|
) |
[inline] |
The most clockwise incoming halfedge of the vertex.
Definition at line 131 of file Vertex.h.
CHalfEdge * MeshLib::CVertex::most_clw_out_halfedge |
( |
|
) |
[inline] |
The most clockwise outgoing halfedge of the vertex .
Definition at line 176 of file Vertex.h.
{
if( !m_boundary )
{
return most_ccw_out_halfedge()->ccw_rotate_about_source();
}
CHalfEdge * he = m_halfedge->he_next();
CHalfEdge * ne = he->clw_rotate_about_source();
while( ne != NULL )
{
he = ne;
ne = he->clw_rotate_about_source();
}
return he;
CPoint& MeshLib::CVertex::normal |
( |
|
) |
[inline] |
The normal of the vertex
Definition at line 42 of file Vertex.h.
CPoint& MeshLib::CVertex::point |
( |
|
) |
[inline] |
The point of the vertex
Definition at line 39 of file Vertex.h.
std::string& MeshLib::CVertex::string |
( |
|
) |
[inline] |
the string of the vertex.
Definition at line 65 of file Vertex.h.
CPoint2& MeshLib::CVertex::uv |
( |
|
) |
[inline] |
The texutre coordinates of the vertex
Definition at line 45 of file Vertex.h.
Member Data Documentation
Indicating if the vertex is on the boundary.
Definition at line 98 of file Vertex.h.
The most CCW incoming halfedge of the vertex.
Definition at line 95 of file Vertex.h.
Vertex ID.
Definition at line 77 of file Vertex.h.
Normal at the vertex.
Definition at line 89 of file Vertex.h.
Vertex position point.
Definition at line 86 of file Vertex.h.
The string of the vertex, which stores the traits information.
Definition at line 101 of file Vertex.h.
Texture coordinates of the vertex.
Definition at line 92 of file Vertex.h.
The documentation for this class was generated from the following file: