#include <GU_TriDivide.h>
Public Member Functions | |
| GU_TriDivide (GU_Detail *gdp) | |
| virtual | ~GU_TriDivide () |
| void | setDetail (GU_Detail *gdp) |
| GU_Detail * | getDetail () const |
| void | setRefDetail (const GU_Detail *refgdp) |
| const GU_Detail * | getRefDetail () 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_Detail * | myGdp |
| const GU_Detail * | myRefGdp |
| UT_PtrArray< guDivTri * > | myTriList |
Definition at line 27 of file GU_TriDivide.h.
| GU_TriDivide::GU_TriDivide | ( | GU_Detail * | gdp | ) |
| virtual GU_TriDivide::~GU_TriDivide | ( | ) | [virtual] |
| 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.
GU_Detail* GU_TriDivide::myGdp [protected] |
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.
1.5.9