|
cesium-native 0.62.0
|
Visitor that retrieves the normal from the given accessor type as a glm::dvec3.
More...
#include <CesiumGltf/AccessorUtility.h>
Public Member Functions | |
| template<typename T> | |
| std::optional< glm::dvec3 > | operator() (const AccessorView< AccessorTypes::VEC3< T > > &value) |
Attempts to obtain a glm::dvec3 at the given index from an accessor over a vec3. The values will be cast to double and, if applicable, normalized based on std::numeric_limits<T>::max(). If the index is invalid, std::nullopt is returned instead. | |
Public Attributes | |
| int64_t | index |
| The index of the normal to obtain. | |
Visitor that retrieves the normal from the given accessor type as a glm::dvec3.
There are technically no invalid normal values, so std::nullopt is used to denote an erroneous value.
Definition at line 153 of file AccessorUtility.h.
|
inline |
Attempts to obtain a glm::dvec3 at the given index from an accessor over a vec3. The values will be cast to double and, if applicable, normalized based on std::numeric_limits<T>::max(). If the index is invalid, std::nullopt is returned instead.
Definition at line 162 of file AccessorUtility.h.
| int64_t CesiumGltf::NormalFromAccessor::index |
The index of the normal to obtain.
Definition at line 181 of file AccessorUtility.h.