bsTriangle_t Class Reference

#include <triangle.h>

Inheritance diagram for bsTriangle_t:
Inheritance graph
[legend]
Collaboration diagram for bsTriangle_t:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 bsTriangle_t ()
 bsTriangle_t (int ia, int ib, int ic, meshObject_t *m)
virtual bool intersect (const ray_t &ray, PFLOAT *t, void *userdata) const
virtual bound_t getBound () const
virtual const material_tgetMaterial () const
virtual void getSurface (surfacePoint_t &sp, const point3d_t &hit, void *userdata) const
void setMaterial (const material_t *m)
void setNormals (int a, int b, int c)

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.
const material_tmaterial
const meshObject_tmesh

Friends

class scene_t

Detailed Description

a triangle supporting time based deformation described by a quadratic bezier spline

Definition at line 94 of file triangle.h.


Constructor & Destructor Documentation

bsTriangle_t::bsTriangle_t (  )  [inline]

Definition at line 98 of file triangle.h.

bsTriangle_t::bsTriangle_t ( int  ia,
int  ib,
int  ic,
meshObject_t m 
) [inline]

Definition at line 99 of file triangle.h.


Member Function Documentation

bound_t bsTriangle_t::getBound (  )  const [virtual]

return the object bound in global ("world") coordinates

Implements primitive_t.

Definition at line 377 of file triangle.cc.

virtual const material_t* bsTriangle_t::getMaterial (  )  const [inline, virtual]

Implements primitive_t.

Definition at line 106 of file triangle.h.

void bsTriangle_t::getSurface ( surfacePoint_t sp,
const point3d_t hit,
void *  userdata 
) const [virtual]

Implements primitive_t.

Definition at line 409 of file triangle.cc.

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

basic ray primitive interection for raytracing. This should NOT skip intersections outside of [tmin,tmax], unless negative. The caller decides wether t matters or not.

Returns:
false if ray misses primitive, true otherwise
Parameters:
t set this to raydepth where hit occurs

Implements primitive_t.

Definition at line 347 of file triangle.cc.

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

Definition at line 110 of file triangle.h.

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

Definition at line 111 of file triangle.h.


Friends And Related Function Documentation

friend class scene_t [friend]

Definition at line 96 of file triangle.h.


Member Data Documentation

const material_t* bsTriangle_t::material [protected]

Definition at line 119 of file triangle.h.

const meshObject_t* bsTriangle_t::mesh [protected]

Definition at line 120 of file triangle.h.

int bsTriangle_t::na [protected]

Definition at line 117 of file triangle.h.

int bsTriangle_t::nb [protected]

Definition at line 117 of file triangle.h.

int bsTriangle_t::nc [protected]

indices in normal array, if mesh is smoothed.

Definition at line 117 of file triangle.h.

int bsTriangle_t::pa [protected]

Definition at line 116 of file triangle.h.

int bsTriangle_t::pb [protected]

Definition at line 116 of file triangle.h.

int bsTriangle_t::pc [protected]

indices in point array, referenced in mesh.

Definition at line 116 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