libigl v2.5.0
Loading...
Searching...
No Matches
igl::Hit Struct Reference

Reimplementation of the embree::Hit struct from embree1.0. More...

#include <Hit.h>

Public Attributes

int id
 primitive id
 
int gid
 geometry id (not used)
 
float u
 barycentric coordinates so that pos = V.row(F(id,0))*(1-u-v)+V.row(F(id,1))*u+V.row(F(id,2))*v;
 
float v
 
float t
 parametric distance so that pos = origin + t * dir
 

Detailed Description

Reimplementation of the embree::Hit struct from embree1.0.

Member Data Documentation

◆ id

int igl::Hit::id

primitive id

◆ gid

int igl::Hit::gid

geometry id (not used)

◆ u

float igl::Hit::u

barycentric coordinates so that pos = V.row(F(id,0))*(1-u-v)+V.row(F(id,1))*u+V.row(F(id,2))*v;

◆ v

float igl::Hit::v

◆ t

float igl::Hit::t

parametric distance so that pos = origin + t * dir


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