Tachyon (current)  Current Main Branch
Functions
triangle.h File Reference

Go to the source code of this file.

Functions

object * newtri (void *, vector, vector, vector)
 
object * newstri (void *, vector, vector, vector, vector, vector, vector)
 
void stri_normal_fixup (object *, int mode)
 
object * newvcstri (void *, vector, vector, vector, vector, vector, vector, color, color, color)
 
void vcstri_normal_fixup (object *, int mode)
 
color vcstri_color (const vector *hit, const texture *tex, const ray *incident)
 

Function Documentation

◆ newstri()

object* newstri ( void *  ,
vector  ,
vector  ,
vector  ,
vector  ,
vector  ,
vector   
)

Definition at line 84 of file triangle.c.

References stri_methods, VLength(), and VSub().

Referenced by rt_stri(), and rt_stri3fv().

◆ newtri()

object* newtri ( void *  ,
vector  ,
vector  ,
vector   
)

Definition at line 54 of file triangle.c.

References tri_methods, VLength(), and VSub().

Referenced by rt_tri(), and rt_tri3fv().

◆ newvcstri()

object* newvcstri ( void *  ,
vector  ,
vector  ,
vector  ,
vector  ,
vector  ,
vector  ,
color  ,
color  ,
color   
)

Definition at line 141 of file triangle.c.

References stri_methods, vcstri_color(), VLength(), and VSub().

Referenced by rt_tristripscnv3fv(), rt_vcstri(), and rt_vcstri3fv().

◆ stri_normal_fixup()

void stri_normal_fixup ( object *  ,
int  mode 
)

Definition at line 118 of file triangle.c.

References stri_methods, stri_methods_guess, and stri_methods_reverse.

Referenced by rt_stri(), and rt_stri3fv().

◆ vcstri_color()

color vcstri_color ( const vector *  hit,
const texture *  tex,
const ray *  incident 
)

Definition at line 360 of file triangle.c.

References CROSS, DOT, and VSUB.

Referenced by newvcstri().

◆ vcstri_normal_fixup()

void vcstri_normal_fixup ( object *  ,
int  mode 
)

Definition at line 183 of file triangle.c.

References stri_methods, stri_methods_guess, and stri_methods_reverse.

Referenced by rt_tristripscnv3fv(), rt_vcstri(), and rt_vcstri3fv().