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 |
Detailed Description
class bitpit::ElementHalfItem< DerivedElement >
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.
Member Enumeration Documentation
◆ Winding
enum bitpit::ElementHalfItem::Winding |
Definition at line 225 of file element.hpp.
Constructor & Destructor Documentation
◆ ElementHalfItem()
|
protected |
Constructor.
- Parameters
-
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.
Member Function Documentation
◆ getElement()
|
protected |
Get the element the half-item belongs to.
- Returns
- Returns the element the half-item belongs to.
Definition at line 75 of file element.tpp.
◆ getVertexIds()
const ConstProxyVector< long > & bitpit::ElementHalfItem< DerivedElement >::getVertexIds | ( | ) | const |
Get the list of vertex ids of the edge.
- Returns
- Returns the list of vertex ids of the edge.
Definition at line 86 of file element.tpp.
◆ getWinding()
ElementHalfItem< DerivedElement >::Winding bitpit::ElementHalfItem< DerivedElement >::getWinding | ( | ) | const |
◆ operator!=()
bool bitpit::ElementHalfItem< DerivedElement >::operator!= | ( | const ElementHalfItem< DerivedElement > & | other | ) | const |
Comparison operator for the ElementHalfItem class.
- Parameters
-
other is the object to be compared with
- Returns
- Returns true if the two half-items define different half-item, false otherwise.
Definition at line 152 of file element.tpp.
◆ operator==()
bool bitpit::ElementHalfItem< DerivedElement >::operator== | ( | const ElementHalfItem< DerivedElement > & | other | ) | const |
Comparison operator for the ElementHalfItem class.
- Parameters
-
other is the object to be compared with
- Returns
- Returns true if the two half-items define the same half-item, false otherwise.
Definition at line 121 of file element.tpp.
◆ setWinding()
void bitpit::ElementHalfItem< DerivedElement >::setWinding | ( | Winding | winding | ) |
Set vertex winding order.
- Parameters
-
winding is the vertex winding order
Definition at line 108 of file element.tpp.
Member Data Documentation
◆ m_element
|
protected |
Definition at line 243 of file element.hpp.
◆ m_firstVertexId
|
protected |
Definition at line 246 of file element.hpp.
◆ m_vertexIds
|
protected |
Definition at line 245 of file element.hpp.
◆ m_winding
|
protected |
Definition at line 248 of file element.hpp.
The documentation for this class was generated from the following files:
- src/patchkernel/element.hpp
- src/patchkernel/element.tpp
