cesium-native 0.43.0
Loading...
Searching...
No Matches
CesiumGltfContent::GltfUtilities::RayGltfHit Struct Reference

Data describing a hit from a ray / gltf intersection test. More...

#include <CesiumGltfContent/GltfUtilities.h>

Public Attributes

glm::dvec3 primitivePoint = {}
 Hit point in primitive space.
 
glm::dmat4x4 primitiveToWorld = {}
 Transformation from primitive to world space.
 
glm::dvec3 worldPoint = {}
 Hit point in world space.
 
double rayToWorldPointDistanceSq = -1.0
 Square dist from intersection ray origin to world point.
 
int32_t meshId = -1
 ID of the glTF mesh that was hit.
 
int32_t primitiveId = -1
 ID of the glTF primitive that was hit.
 

Detailed Description

Data describing a hit from a ray / gltf intersection test.

Definition at line 277 of file GltfUtilities.h.

Member Data Documentation

◆ meshId

int32_t CesiumGltfContent::GltfUtilities::RayGltfHit::meshId = -1

ID of the glTF mesh that was hit.

Definition at line 301 of file GltfUtilities.h.

◆ primitiveId

int32_t CesiumGltfContent::GltfUtilities::RayGltfHit::primitiveId = -1

ID of the glTF primitive that was hit.

Definition at line 306 of file GltfUtilities.h.

◆ primitivePoint

glm::dvec3 CesiumGltfContent::GltfUtilities::RayGltfHit::primitivePoint = {}

Hit point in primitive space.

Definition at line 281 of file GltfUtilities.h.

◆ primitiveToWorld

glm::dmat4x4 CesiumGltfContent::GltfUtilities::RayGltfHit::primitiveToWorld = {}

Transformation from primitive to world space.

Definition at line 286 of file GltfUtilities.h.

◆ rayToWorldPointDistanceSq

double CesiumGltfContent::GltfUtilities::RayGltfHit::rayToWorldPointDistanceSq = -1.0

Square dist from intersection ray origin to world point.

Definition at line 296 of file GltfUtilities.h.

◆ worldPoint

glm::dvec3 CesiumGltfContent::GltfUtilities::RayGltfHit::worldPoint = {}

Hit point in world space.

Definition at line 291 of file GltfUtilities.h.


The documentation for this struct was generated from the following file: