cesium-native 0.43.0
|
#include <CesiumGltf/AccessorUtility.h>
Public Member Functions | |
std::array< int64_t, 3 > | operator() (std::monostate) |
Attempts to obtain the indices for the given face from an empty accessor variant, using the vertexCount property. | |
template<typename T > | |
std::array< int64_t, 3 > | operator() (const AccessorView< T > &value) |
Attempts to obtain the indices for the given face from an AccessorView, using the view's size and contents rather than the vertexCount property. | |
Public Attributes | |
int64_t | faceIndex |
The index of the face to obtain indices for. | |
int64_t | vertexCount |
The total number of vertices in the data being accessed. | |
int32_t | primitiveMode |
The MeshPrimitive::Mode of the data being accessed. | |
Visitor that retrieves the vertex indices from the given accessor type corresponding to a given face index. These indices are returned as an array of int64_ts. This should be initialized with the index of the face, the total number of vertices in the primitive, and the CesiumGltf::MeshPrimitive::Mode
of the primitive.
-1 is used to indicate errors retrieving the index, e.g., if the given index was out-of-bounds.
Definition at line 168 of file AccessorUtility.h.
|
inline |
Attempts to obtain the indices for the given face from an AccessorView, using the view's size and contents rather than the vertexCount property.
Definition at line 216 of file AccessorUtility.h.
|
inline |
Attempts to obtain the indices for the given face from an empty accessor variant, using the vertexCount property.
Definition at line 171 of file AccessorUtility.h.
int64_t CesiumGltf::IndicesForFaceFromAccessor::faceIndex |
The index of the face to obtain indices for.
Definition at line 258 of file AccessorUtility.h.
int32_t CesiumGltf::IndicesForFaceFromAccessor::primitiveMode |
The MeshPrimitive::Mode of the data being accessed.
Definition at line 262 of file AccessorUtility.h.
int64_t CesiumGltf::IndicesForFaceFromAccessor::vertexCount |
The total number of vertices in the data being accessed.
Definition at line 260 of file AccessorUtility.h.