libigl v2.5.0
Loading...
Searching...
No Matches
igl::Hit< Scalar > Struct Template 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)
Scalar 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;
Scalar v
Scalar t
 parametric distance so that pos = origin + t * dir

Detailed Description

template<typename Scalar>
struct igl::Hit< Scalar >

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

Member Data Documentation

◆ id

template<typename Scalar>
int igl::Hit< Scalar >::id

primitive id

◆ gid

template<typename Scalar>
int igl::Hit< Scalar >::gid

geometry id (not used)

◆ u

template<typename Scalar>
Scalar igl::Hit< Scalar >::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

template<typename Scalar>
Scalar igl::Hit< Scalar >::v

◆ t

template<typename Scalar>
Scalar igl::Hit< Scalar >::t

parametric distance so that pos = origin + t * dir


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