Blender V5.3
blender::bke::bvh::RayHit Struct Reference

#include <BKE_bvh.hh>

Public Member Functions

float3 position (const Ray &ray) const

Public Attributes

float3 normal
float3 bary_coord
int index
float distance

Detailed Description

Definition at line 43 of file BKE_bvh.hh.

Member Function Documentation

◆ position()

float3 blender::bke::bvh::RayHit::position ( const Ray & ray) const
inline

Member Data Documentation

◆ bary_coord

float3 blender::bke::bvh::RayHit::bary_coord

Triangle barycentric coordinates of the hit.

Definition at line 47 of file BKE_bvh.hh.

Referenced by blender::bke::bvh::Tree::ray_intersect(), and blender::bke::bvh::Tree::ray_intersect_all().

◆ distance

float blender::bke::bvh::RayHit::distance

◆ index

int blender::bke::bvh::RayHit::index

◆ normal

float3 blender::bke::bvh::RayHit::normal

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