Cogs.Core
|
Utility class for storing the face indexes a vertex belongs to. More...
#include <NormalGenerator.h>
Public Types | |
typedef std::vector< IndexType > | IndexVector |
Public Member Functions | |
AdjacencyList_T ()=default | |
Constructs a new list. Initial index count is 0. | |
void | push_back (IndexType index) |
Adds a new index value to the back of the index vector. | |
const IndexType & | operator[] (size_t i) const |
Gets the index at the given location. | |
size_t | size () const |
Gets the size of the index array. Does not correspond to the size of allocated memory. | |
Private Attributes | |
IndexType | data [maxSize] |
int8_t | currentSize = 0 |
Utility class for storing the face indexes a vertex belongs to.
Template parameters are provided to control the maximum number of faces sharing a vertex. This static sized buffer gives a nice speedup over using a dynamic buffer, and might be switched with dynamic overflow mechanics at a later time if needed.
Definition at line 17 of file NormalGenerator.h.
typedef std::vector<IndexType> Cogs::Geometry::AdjacencyList_T< IndexType, maxSize >::IndexVector |
Definition at line 19 of file NormalGenerator.h.
|
inline |
Definition at line 24 of file NormalGenerator.h.
|
inline |
Gets the index at the given location.
Definition at line 58 of file NormalGenerator.h.
References Cogs::Geometry::AdjacencyList_T< IndexType, maxSize >::size().
|
inline |
Adds a new index value to the back of the index vector.
Definition at line 33 of file NormalGenerator.h.
|
inline |
Gets the size of the index array. Does not correspond to the size of allocated memory.
Definition at line 72 of file NormalGenerator.h.
Referenced by Cogs::Geometry::AdjacencyList_T< IndexType, maxSize >::operator[]().
|
private |
Definition at line 85 of file NormalGenerator.h.
|
private |
Definition at line 83 of file NormalGenerator.h.