gKit2 light
|
triangle pour le bvh, cf fonction bounds() et intersect(). More...
Public Member Functions | |
Triangle (const TriangleData &data, const int _id) | |
void | intersect (RayHit &ray) const |
BBox | bounds () const |
Triangle (const TriangleData &data, const int _id) | |
Hit | intersect (const Ray &ray, const float htmax) const |
BBox | bounds () const |
Triangle (const vec3 &a, const vec3 &b, const vec3 &c, const int _mesh_id, const int _primitive_id, const int _id) | |
Hit | intersect (const Ray &ray, const float htmax) const |
BBox | bounds () const |
Triangle (const vec3 &a, const vec3 &b, const vec3 &c, const int _mesh_id, const int _primitive_id, const int _id) | |
Hit | intersect (const Ray &ray, const float htmax) const |
BBox | bounds () const |
Triangle (const TriangleData &data, const int _id) | |
void | intersect (RayHit &ray) const |
BBox | bounds () const |
Triangle (const vec3 &a, const vec3 &b, const vec3 &c, const int _mesh_id, const int _primitive_id, const int _id) | |
Hit | intersect (const Ray &ray, const float htmax) const |
Triangle (const TriangleData &data, const int _id) | |
Hit | intersect (const Ray &ray, const float tmax) const |
Triangle (const TriangleData &data) | |
bool | intersect (const Ray &ray, const float htmax, float &rt, float &ru, float &rv) const |
Point | point (const float u, const float v) const |
Vector | normal (const float u, const float v) const |
Public Attributes | |
Point | p |
Vector | e1 |
Vector | e2 |
int | id |
int | mesh_id |
int | primitive_id |
int | triangle_id |
Public Attributes inherited from TriangleData | |
vec3 | a |
vec3 | b |
vec3 | c |
positions More... | |
vec3 | na |
vec3 | nb |
vec3 | nc |
normales More... | |
vec2 | ta |
vec2 | tb |
vec2 | tc |
texcoords More... | |
triangle pour le bvh, cf fonction bounds() et intersect().
Definition at line 83 of file tuto_bvh.cpp.
|
inline |
renvoie un point a l'interieur du triangle connaissant ses coordonnees barycentriques. convention p(u, v)= (1 - u - v) * a + u * b + v * c
Definition at line 104 of file tuto_is.cpp.
|
inline |
renvoie une normale a l'interieur du triangle connaissant ses coordonnees barycentriques. convention p(u, v)= (1 - u - v) * a + u * b + v * c
Definition at line 112 of file tuto_is.cpp.