triangle_t Class Reference

#include <triangle.h>

Collaboration diagram for triangle_t:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 triangle_t ()
 triangle_t (int ia, int ib, int ic, triangleObject_t *m)
bool intersect (const ray_t &ray, PFLOAT *t, void *userdata) const
bound_t getBound () const
bool intersectsBound (exBound_t &eb) const
bool clippingSupport () const
bool clipToBound (double bound[2][3], int axis, bound_t &clipped, void *d_old, void *d_new) const
const material_tgetMaterial () const
void getSurface (surfacePoint_t &sp, const point3d_t &hit, void *userdata) const
vector3d_t getNormal () const
PFLOAT surfaceArea () const
void sample (float s1, float s2, point3d_t &p, vector3d_t &n) const
void setMaterial (const material_t *m)
void setNormals (int a, int b, int c)
void recNormal ()

Protected Attributes

int pa
int pb
int pc
 indices in point array, referenced in mesh.
int na
int nb
int nc
 indices in normal array, if mesh is smoothed.
normal_t normal
 the geometric normal
const material_tmaterial
const triangleObject_tmesh

Friends

class scene_t

Detailed Description

non-inherited triangle, so no virtual functions to allow inlining othwise totally identically to vTriangle_t (when it actually ever makes it into release)

Definition at line 25 of file triangle.h.


Constructor & Destructor Documentation

triangle_t::triangle_t (  )  [inline]

Definition at line 29 of file triangle.h.

triangle_t::triangle_t ( int  ia,
int  ib,
int  ic,
triangleObject_t m 
) [inline]

Definition at line 30 of file triangle.h.


Member Function Documentation

bool triangle_t::clippingSupport (  )  const [inline]

Definition at line 35 of file triangle.h.

bool triangle_t::clipToBound ( double  bound[2][3],
int  axis,
bound_t clipped,
void *  d_old,
void *  d_new 
) const

Definition at line 97 of file triangle.cc.

bound_t triangle_t::getBound (  )  const [inline]

Definition at line 47 of file triangle_inline.h.

const material_t* triangle_t::getMaterial (  )  const [inline]

Definition at line 38 of file triangle.h.

vector3d_t triangle_t::getNormal (  )  const [inline]

Definition at line 40 of file triangle.h.

__BEGIN_YAFRAY void triangle_t::getSurface ( surfacePoint_t sp,
const point3d_t hit,
void *  userdata 
) const

Definition at line 6 of file triangle.cc.

bool triangle_t::intersect ( const ray_t ray,
PFLOAT *  t,
void *  userdata 
) const [inline]

Definition at line 10 of file triangle_inline.h.

bool triangle_t::intersectsBound ( exBound_t eb  )  const [inline]

Definition at line 60 of file triangle_inline.h.

void triangle_t::recNormal (  )  [inline]

Definition at line 74 of file triangle_inline.h.

void triangle_t::sample ( float  s1,
float  s2,
point3d_t p,
vector3d_t n 
) const

Definition at line 138 of file triangle.cc.

void triangle_t::setMaterial ( const material_t m  )  [inline]

Definition at line 45 of file triangle.h.

void triangle_t::setNormals ( int  a,
int  b,
int  c 
) [inline]

Definition at line 46 of file triangle.h.

PFLOAT triangle_t::surfaceArea (  )  const

Definition at line 129 of file triangle.cc.


Friends And Related Function Documentation

friend class scene_t [friend]

Definition at line 27 of file triangle.h.


Member Data Documentation

const material_t* triangle_t::material [protected]

Definition at line 53 of file triangle.h.

const triangleObject_t* triangle_t::mesh [protected]

Definition at line 54 of file triangle.h.

int triangle_t::na [protected]

Definition at line 51 of file triangle.h.

int triangle_t::nb [protected]

Definition at line 51 of file triangle.h.

int triangle_t::nc [protected]

indices in normal array, if mesh is smoothed.

Definition at line 51 of file triangle.h.

the geometric normal

Definition at line 52 of file triangle.h.

int triangle_t::pa [protected]

Definition at line 50 of file triangle.h.

int triangle_t::pb [protected]

Definition at line 50 of file triangle.h.

int triangle_t::pc [protected]

indices in point array, referenced in mesh.

Definition at line 50 of file triangle.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 18 Dec 2009 for YafaRay by  doxygen 1.6.1