The ElementHalfItem class is the base calss for defining element half-edge and half-faces. More...
Classes | |
class | Hasher |
The ElementHalfItem::Hasher class allows to create hashes for the half-items. More... | |
Public Types | |
enum | Winding { WINDING_NATURAL = 1 , WINDING_REVERSE = -1 } |
Public Member Functions | |
const ConstProxyVector< long > & | getVertexIds () const |
Winding | getWinding () const |
bool | operator!= (const ElementHalfItem &other) const |
bool | operator== (const ElementHalfItem &other) const |
void | setWinding (Winding winding) |
Protected Member Functions | |
ElementHalfItem (DerivedElement &element, ConstProxyVector< long > &&vertexIds, ElementHalfItem< DerivedElement >::Winding winding) | |
DerivedElement & | getElement () const |
Protected Attributes | |
DerivedElement & | m_element |
std::size_t | m_firstVertexId |
ConstProxyVector< long > | m_vertexIds |
Winding | m_winding |
The ElementHalfItem class is the base calss for defining element half-edge and half-faces.
ElementHalfItem is the base calss for defining element half-edge and half-faces.
Definition at line 222 of file element.hpp.
enum bitpit::ElementHalfItem::Winding |
Definition at line 225 of file element.hpp.
|
protected |
Constructor.
element | is a reference to the element the owns the item |
vertexIds | are the ids of the vertices |
winding | is the winding order of the vertices |
Definition at line 49 of file element.tpp.
|
protected |
Get the element the half-item belongs to.
Definition at line 75 of file element.tpp.
const ConstProxyVector< long > & bitpit::ElementHalfItem< DerivedElement >::getVertexIds | ( | ) | const |
Get the list of vertex ids of the edge.
Definition at line 86 of file element.tpp.
ElementHalfItem< DerivedElement >::Winding bitpit::ElementHalfItem< DerivedElement >::getWinding | ( | ) | const |
bool bitpit::ElementHalfItem< DerivedElement >::operator!= | ( | const ElementHalfItem< DerivedElement > & | other | ) | const |
Comparison operator for the ElementHalfItem class.
other | is the object to be compared with |
Definition at line 152 of file element.tpp.
bool bitpit::ElementHalfItem< DerivedElement >::operator== | ( | const ElementHalfItem< DerivedElement > & | other | ) | const |
Comparison operator for the ElementHalfItem class.
other | is the object to be compared with |
Definition at line 121 of file element.tpp.
void bitpit::ElementHalfItem< DerivedElement >::setWinding | ( | Winding | winding | ) |
Set vertex winding order.
winding | is the vertex winding order |
Definition at line 108 of file element.tpp.
|
protected |
Definition at line 243 of file element.hpp.
|
protected |
Definition at line 246 of file element.hpp.
|
protected |
Definition at line 245 of file element.hpp.
|
protected |
Definition at line 248 of file element.hpp.