#include <GU_SubDivPatch.h>
|
void | incRefCount () |
|
void | decRefCount () |
|
void | setNum (GA_Index num) |
|
GA_Index | getNum () const |
|
GU_SubDivEdge * | setEdge (GU_SubDivVertex *vtx, int idx=-1, GU_SubDivEdge *parent=0) |
|
void | setEdge (GU_SubDivEdge *edge, int idx) |
|
void | clearEdge (GU_SubDivEdge *edge) |
|
void | removeEdge (int idx) |
|
void | setFace (GU_SubDivPatch *face, int idx=-1) |
|
void | clearFace (GU_SubDivPatch *face) |
|
void | setAllIncomplete () |
|
void | copyIncomplete (const GU_SubDivVertex *vtx) |
|
void | setComplete (int i) |
|
float * | getData () const |
| Get subdivision data associated with this vertex. More...
|
|
float * | getVertexData (int fidx) const |
|
void | setVertexData (const float *data, int idx, const UT_IntArray &offsets) |
|
void | defaultVertexData (int low, int high) |
| Resets the vertex data at off to the default values. More...
|
|
int | getSize () const |
|
int | getVertexSize () const |
|
void | sum (const GU_SubDivVertex *vtx, fpreal scale=1) |
| Operations used to build new data from subdivision rules. More...
|
|
void | sum (const GU_SubDivVertex *vtx, const GU_SubDivPatch *face, fpreal scale=1) |
|
void | sumVertex (const GU_SubDivVertex *vtx, const GU_SubDivPatch *face, int idx, int low=0, int high=-1, fpreal scale=1) |
|
void | scale (fpreal scale) |
|
void | scaleVertex (fpreal scale, int low=0, int high=-1) |
|
void | copyVertex (int src, int dest, int low=0, int high=-1) |
|
void | getVertices (UT_Array< GU_SubDivVertex * > &list) |
|
void | getFaces (UT_Array< GU_SubDivPatch * > &list, const GU_SubDivPatch *face) const |
|
GU_SubDivVertex * | getChild () |
| Calculate the new subdivision point using the catmull-clark masks. More...
|
|
GU_SubDivVertex * | getLimit () |
|
int | getEdgeIndex (const GU_SubDivVertex *vtx) const |
|
GU_SubDivEdge * | getEdge (int idx) const |
|
GU_SubDivEdge * | getEdge (const GU_SubDivVertex *vtx) const |
|
GU_SubDivVertex * | getEdgeChild (const GU_SubDivVertex *vtx) const |
|
int | getFaceIndex (const GU_SubDivPatch *face) const |
|
GU_SubDivPatch * | getFace (int idx) const |
|
bool | hasFace (const GU_SubDivPatch *face) const |
|
int | getValence () const |
|
bool | hasHardEdge () const |
|
void | sortEdges () |
| Order the edges using the face set for this vertex. More...
|
|
void | setWeight (fpreal weight, bool linear, const GU_SubDivPatch *face) |
|
void | setFlag (uint8 f) |
|
void | clearFlag (uint8 f) |
|
bool | getFlag (uint8 f) const |
|
void | dumpGeo (char c, const GU_SubDivPatch *face=0) const |
| Dump geometry for the vertex as a draw file. More...
|
|
Definition at line 121 of file GU_SubDivPatch.h.
void GU_SubDivVertex::copyVertex |
( |
int |
src, |
|
|
int |
dest, |
|
|
int |
low = 0 , |
|
|
int |
high = -1 |
|
) |
| |
void GU_SubDivVertex::decRefCount |
( |
| ) |
|
|
inline |
void GU_SubDivVertex::defaultVertexData |
( |
int |
low, |
|
|
int |
high |
|
) |
| |
Resets the vertex data at off to the default values.
Dump geometry for the vertex as a draw file.
Calculate the new subdivision point using the catmull-clark masks.
Definition at line 215 of file GU_SubDivPatch.h.
float* GU_SubDivVertex::getData |
( |
| ) |
const |
|
inline |
Get subdivision data associated with this vertex.
Definition at line 166 of file GU_SubDivPatch.h.
bool GU_SubDivVertex::getFlag |
( |
uint8 |
f | ) |
const |
|
inline |
Calculate the limit subdivision point using the catmull-clark masks. If you use this operation, further subdivision using this vertex will not produce the correct result.
Definition at line 225 of file GU_SubDivPatch.h.
GA_Index GU_SubDivVertex::getNum |
( |
| ) |
const |
|
inline |
int GU_SubDivVertex::getSize |
( |
| ) |
const |
|
inline |
int GU_SubDivVertex::getValence |
( |
| ) |
const |
|
inline |
float* GU_SubDivVertex::getVertexData |
( |
int |
fidx | ) |
const |
Get per-face vertex data if it exists. You should use getFaceIndex() to retrieve the face index to be passed to this operation.
int GU_SubDivVertex::getVertexSize |
( |
| ) |
const |
|
inline |
bool GU_SubDivVertex::hasHardEdge |
( |
| ) |
const |
void GU_SubDivVertex::incRefCount |
( |
| ) |
|
|
inline |
void GU_SubDivVertex::removeEdge |
( |
int |
idx | ) |
|
Remove an edge from this vertex at the given index. This operation may change the valence.
void GU_SubDivVertex::setAllIncomplete |
( |
| ) |
|
Set and get completion status. We're complete when all our neighbouring edges and faces are defined.
void GU_SubDivVertex::setComplete |
( |
int |
i | ) |
|
|
inline |
Adds vtx at the specified position in my edge table. If idx == -1, then add vtx to the next available position. Returns the edge.
Add the face to the specified position in my face table. If idx == -1, then we'll analyse the edges in the face to decide where to put it.
Set vertex data. The index is a face identifier in the current vertex. If a vertex seam is detected, we'll allocate separate face vertex data. The offset array is used to isolate individual vertex attributes so that we can have an independent hard edge mask for each attribute. The offsets are in number of floats and point to the start of each attribute.
void GU_SubDivVertex::sortEdges |
( |
| ) |
|
Order the edges using the face set for this vertex.
Operations used to build new data from subdivision rules.
Definition at line 189 of file GU_SubDivPatch.h.
The documentation for this class was generated from the following file: