Face Class Reference

#include <Face.h>

Collaboration diagram for Face:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Face ()
 ~Face ()
void calcNormal (Vector &norm_out)
void calcFaceNormal ()
void flip ()
float planeDistanceTo (XYZ &v_test)
bool triangleDistanceTest (XYZ &v_test, float dist_test)
bool segmentIntersects (XYZ &returned_intersect_point, XYZ &segment_start, XYZ &segment_end, float tolerance=FLOAT_TOLERANCE)
bool intersects (Face &test_face)
bool onTriangle (XYZ &p_test, float tolerance=FLOAT_TOLERANCE)
void copyUV (Face &dst, unsigned int dstPointNum, unsigned int srcPointNum)
void setUV (unsigned int facePoint, UV pointUV, unsigned int uvLayer=0)
void setUV (unsigned int facePoint, vector< UV > pointUVs)
void setColor (unsigned int facePoint, RGB &clr)
void setSegment (unsigned int segment)
unsigned int getSegment ()

Public Attributes

std::vector< XYZ * > points
std::vector< cvrIndex > pointref
std::vector< std::vector< UV > > uv
std::vector< Vectorpoint_normals
std::vector< RGBpoint_colors
cvrIndex mat_ref
Vector face_normal
unsigned int segment_id


Constructor & Destructor Documentation

Face::Face (  ) 

Face::~Face (  ) 


Member Function Documentation

void Face::calcNormal ( Vector norm_out  ) 

void Face::calcFaceNormal (  ) 

Here is the call graph for this function:

void Face::flip (  ) 

float Face::planeDistanceTo ( XYZ v_test  ) 

Here is the call graph for this function:

bool Face::triangleDistanceTest ( XYZ v_test,
float  dist_test 
)

Here is the call graph for this function:

bool Face::segmentIntersects ( XYZ returned_intersect_point,
XYZ segment_start,
XYZ segment_end,
float  tolerance = FLOAT_TOLERANCE 
)

Here is the call graph for this function:

bool Face::intersects ( Face test_face  ) 

Here is the call graph for this function:

bool Face::onTriangle ( XYZ p_test,
float  tolerance = FLOAT_TOLERANCE 
)

Here is the call graph for this function:

void Face::copyUV ( Face dst,
unsigned int  dstPointNum,
unsigned int  srcPointNum 
)

void Face::setUV ( unsigned int  facePoint,
UV  pointUV,
unsigned int  uvLayer = 0 
)

void Face::setUV ( unsigned int  facePoint,
vector< UV pointUVs 
)

Here is the call graph for this function:

void Face::setColor ( unsigned int  facePoint,
RGB clr 
)

void Face::setSegment ( unsigned int  segment  ) 

unsigned int Face::getSegment (  ) 


Member Data Documentation

std::vector<XYZ *> Face::points

std::vector<cvrIndex> Face::pointref

std::vector< std::vector<UV> > Face::uv

std::vector<RGB> Face::point_colors

cvrIndex Face::mat_ref

unsigned int Face::segment_id


The documentation for this class was generated from the following files:

Generated on Thu Mar 19 19:35:18 2009 for CubicVR by  doxygen 1.5.6