GU_TriDivide Class Reference

#include <GU_TriDivide.h>

List of all members.

Public Member Functions

 GU_TriDivide (GU_Detail *gdp)
virtual ~GU_TriDivide ()
void setDetail (GU_Detail *gdp)
GU_DetailgetDetail () const
void setRefDetail (const GU_Detail *refgdp)
const GU_DetailgetRefDetail () const
void buildTopology (const GB_PrimitiveGroup *grp=0)
 Builds the triangle list.
void tridivide (int depth)
 Does root(3) subdivision.
void equalizeEdges (fpreal minlength, int numsplit)
void buildGeometry ()
 Transforms the triangle list into actual triangles.
guDivTri * allocTri ()
 Technically should be friended to our guDivTri.

Protected Member Functions

void buildTri (GEO_PrimPoly *poly, UT_HashTable &hash)
fpreal calculateLength (int aidx, int bidx, bool useref, const UT_Vector3Array &refpos) const

Protected Attributes

GU_DetailmyGdp
const GU_DetailmyRefGdp
UT_PtrArray< guDivTri * > myTriList


Detailed Description

Definition at line 27 of file GU_TriDivide.h.


Constructor & Destructor Documentation

GU_TriDivide::GU_TriDivide ( GU_Detail gdp  ) 

virtual GU_TriDivide::~GU_TriDivide (  )  [virtual]


Member Function Documentation

guDivTri* GU_TriDivide::allocTri (  ) 

Technically should be friended to our guDivTri.

void GU_TriDivide::buildGeometry (  ) 

Transforms the triangle list into actual triangles.

void GU_TriDivide::buildTopology ( const GB_PrimitiveGroup grp = 0  ) 

Builds the triangle list.

void GU_TriDivide::buildTri ( GEO_PrimPoly poly,
UT_HashTable hash 
) [protected]

fpreal GU_TriDivide::calculateLength ( int  aidx,
int  bidx,
bool  useref,
const UT_Vector3Array refpos 
) const [protected]

void GU_TriDivide::equalizeEdges ( fpreal  minlength,
int  numsplit 
)

Equalizes edges by splitting the longest edges. Splits are done until minimum length is less than minlength or number of splits numsplits has been done. A value of -1 is ignored.

GU_Detail* GU_TriDivide::getDetail ( void   )  const [inline]

Definition at line 35 of file GU_TriDivide.h.

const GU_Detail* GU_TriDivide::getRefDetail (  )  const [inline]

Definition at line 38 of file GU_TriDivide.h.

void GU_TriDivide::setDetail ( GU_Detail gdp  )  [inline]

Definition at line 34 of file GU_TriDivide.h.

void GU_TriDivide::setRefDetail ( const GU_Detail refgdp  )  [inline]

Definition at line 37 of file GU_TriDivide.h.

void GU_TriDivide::tridivide ( int  depth  ) 

Does root(3) subdivision.


Member Data Documentation

Definition at line 66 of file GU_TriDivide.h.

const GU_Detail* GU_TriDivide::myRefGdp [protected]

Definition at line 67 of file GU_TriDivide.h.

UT_PtrArray<guDivTri *> GU_TriDivide::myTriList [protected]

Definition at line 68 of file GU_TriDivide.h.


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

Generated on Fri May 25 00:10:29 2012 for HDK by  doxygen 1.5.9