Blender V2.61 - r43446
Classes | Defines | Functions | Variables

ntl_ray.h File Reference

#include <sstream>
#include "ntl_vector3dim.h"
#include "ntl_lighting.h"
#include "ntl_geometryobject.h"
#include "ntl_bsptree.h"

Go to the source code of this file.

Classes

class  ntlIntersection
 store data for an intersection of a ray and a triangle More...
class  ntlRay
 the main ray class More...
class  ntlTriangle
class  ntlScene

Defines

#define TRI_GEOMETRY   (1<<0)
#define TRI_CASTSHADOWS   (1<<1)

Functions

bool operator< (const ntlTriangle &lhs, const ntlTriangle &rhs)
bool operator> (const ntlTriangle &lhs, const ntlTriangle &rhs)

Variables

int globalSortingAxis
vector< ntlVec3Gfx > * globalSortingPoints

Detailed Description

Definition in file ntl_ray.h.


Define Documentation

#define TRI_CASTSHADOWS   (1<<1)
#define TRI_GEOMETRY   (1<<0)

Function Documentation

bool operator< ( const ntlTriangle lhs,
const ntlTriangle rhs 
)

operator < for sorting, uses global sorting axis

Definition at line 302 of file ntl_ray.h.

References ntlTriangle::getAverage(), and globalSortingAxis.

bool operator> ( const ntlTriangle lhs,
const ntlTriangle rhs 
)

operator > for sorting, uses global sorting axis

Definition at line 308 of file ntl_ray.h.

References ntlTriangle::getAverage(), and globalSortingAxis.


Variable Documentation

Static global variable for sorting direction

Definition at line 20 of file ntl_bsptree.cpp.

Referenced by lessTriangleAverage(), operator<(), and operator>().

Access to points array for sorting

Definition at line 22 of file ntl_bsptree.cpp.

Referenced by ntlTriangle::getAverage(), and ntlTree::ntlTree().