Defines an array of indices. More...
Public Types | |
typedef int | IndexType |
Public Member Functions | |
ModelData_IndexArray () | |
Constructor. | |
size_t | Size () const |
Returns the size of array. | |
IndexType | Element (size_t theIndex) const |
Returns the requested index. | |
IndexType | operator[] (size_t theIndex) const |
const std::shared_ptr< internal::ModelData_IndexArrayImpl > & | Impl () const |
Defines an array of indices.
The indices can be retrieved using Element() or operator[]. The number of indices can be retrieved by Size().
This class is used by ModelData_BRepToPolyAssociations to represent mesh pieces.
cadex::ModelData_IndexArray::ModelData_IndexArray | ( | ) |
Constructor.
Creates an empty array.
int cadex::ModelData_IndexArray::Element | ( | size_t | theIndex | ) | const |
Returns the requested index.
theIndex must be in the range [0, Size()-1]. Otherwise the result is undefined.