|
| SYS_STATIC_ASSERT (GA_MAX_ORDER< 16) |
|
| GU_GridT () |
|
| ~GU_GridT () |
|
void | precompute () |
|
void | initSingleGrid (exint nedgerows, exint nedgecols, INT_TYPE start_pt=INT_TYPE(0)) |
|
void | initColTube (exint nedgerows, exint nedgecols, INT_TYPE start_pt=INT_TYPE(0)) |
|
void | initRowTube (exint nedgerows, exint nedgecols, INT_TYPE start_pt=INT_TYPE(0)) |
|
void | initColSphere (exint nedgerows, exint nedgecols, INT_TYPE start_pt=INT_TYPE(0), INT_TYPE end_pt=INT_TYPE(1), INT_TYPE start_mid_pt=INT_TYPE(2)) |
|
void | initRowSphere (exint nedgerows, exint nedgecols, INT_TYPE start_pt=INT_TYPE(0), INT_TYPE end_pt=INT_TYPE(1), INT_TYPE start_mid_pt=INT_TYPE(2)) |
|
void | initSplitColSphere (exint nedgerows, exint nedgecols, INT_TYPE start_pt=INT_TYPE(0), INT_TYPE end_pt=INT_TYPE(1), INT_TYPE start_mid_pt=INT_TYPE(2)) |
|
void | initTorus (exint nedgerows, exint nedgecols, INT_TYPE start_pt=INT_TYPE(0)) |
|
void | initColCone (exint nedgerows, exint nedgecols, bool row0_pole=true, INT_TYPE start_pt=INT_TYPE(0), INT_TYPE start_mid_pt=INT_TYPE(1)) |
|
void | clear () |
|
INT_TYPE | getPoint (exint row, exint col) const |
|
bool | doesRowWrap (exint row) const |
|
bool | doesColWrap (exint col) const |
|
void | shiftPoints (INT_TYPE shift) |
|
bool | isInvalidTPSurf () const |
|
void | fixTPSurf () |
|
template<typename INT_TYPE = GA_Offset>
struct HDK_Sample::GU_GridT< INT_TYPE >
Definition at line 43 of file GU_Grid.h.
template<typename INT_TYPE = GA_Offset>
void HDK_Sample::GU_GridT< INT_TYPE >::initColCone |
( |
exint |
nedgerows, |
|
|
exint |
nedgecols, |
|
|
bool |
row0_pole = true , |
|
|
INT_TYPE |
start_pt = INT_TYPE(0) , |
|
|
INT_TYPE |
start_mid_pt = INT_TYPE(1) |
|
) |
| |
NOTE: mySurfaceType & myPrimitiveType must be set before calling, and so should myFirstRowIfNotWrapped, myLastRowIfNotWrapped, and myUnrollCurves if rows/cols/rowcol, or myTriangularPoles if quads/tris. NOTE: You'll probably want to set myFirstRowIfNotWrapped or myLastRowIfNotWrapped to false, depending on row0_pole. NOTE: You don't need to call precompute() after this.
template<typename INT_TYPE >
void GU_GridT< INT_TYPE >::initColSphere |
( |
exint |
nedgerows, |
|
|
exint |
nedgecols, |
|
|
INT_TYPE |
start_pt = INT_TYPE(0) , |
|
|
INT_TYPE |
end_pt = INT_TYPE(1) , |
|
|
INT_TYPE |
start_mid_pt = INT_TYPE(2) |
|
) |
| |
This is the sphere most people expect, with north and south poles (row=0/nedgerows). NOTE: mySurfaceType & myPrimitiveType must be set before calling, and so should myFirstRowIfNotWrapped, myLastRowIfNotWrapped, and myUnrollCurves if rows/cols/rowcol, or myTriangularPoles if quads/tris. NOTE: You'll probably want to set myFirstRowIfNotWrapped and myLastRowIfNotWrapped to false, to match the Sphere SOP. NOTE: You don't need to call precompute() after this.
Definition at line 1383 of file GU_GridImpl.h.
template<typename INT_TYPE >
void GU_GridT< INT_TYPE >::initRowSphere |
( |
exint |
nedgerows, |
|
|
exint |
nedgecols, |
|
|
INT_TYPE |
start_pt = INT_TYPE(0) , |
|
|
INT_TYPE |
end_pt = INT_TYPE(1) , |
|
|
INT_TYPE |
start_mid_pt = INT_TYPE(2) |
|
) |
| |
This is the sphere most people DON'T expect, with east and west poles (col=0/nedgecols). NOTE: mySurfaceType & myPrimitiveType must be set before calling, and so should myFirstColIfNotWrapped, myLastColIfNotWrapped, and myUnrollCurves if rows/cols/rowcol, or myTriangularPoles if quads/tris. NOTE: You'll probably want to set myFirstColIfNotWrapped and myLastColIfNotWrapped to false, to match the Sphere SOP. NOTE: You don't need to call precompute() after this.
Definition at line 1474 of file GU_GridImpl.h.
template<typename INT_TYPE >
void GU_GridT< INT_TYPE >::initSingleGrid |
( |
exint |
nedgerows, |
|
|
exint |
nedgecols, |
|
|
INT_TYPE |
start_pt = INT_TYPE(0) |
|
) |
| |
NOTE: mySurfaceType & myPrimitiveType must be set before calling, and so should myFirstRowIfNotWrapped, myLastRowIfNotWrapped, myFirstColIfNotWrapped, and myLastColIfNotWrapped if rows/cols/rowcol. NOTE: You don't need to call precompute() after this.
Definition at line 1114 of file GU_GridImpl.h.
template<typename INT_TYPE >
void GU_GridT< INT_TYPE >::initSplitColSphere |
( |
exint |
nedgerows, |
|
|
exint |
nedgecols, |
|
|
INT_TYPE |
start_pt = INT_TYPE(0) , |
|
|
INT_TYPE |
end_pt = INT_TYPE(1) , |
|
|
INT_TYPE |
start_mid_pt = INT_TYPE(2) |
|
) |
| |
This is effectively a slice of a col sphere, with north and south poles (row=0/nedgerows). NOTE: mySurfaceType & myPrimitiveType must be set before calling, and so should myFirstRowIfNotWrapped, myLastRowIfNotWrapped, and myUnrollCurves if rows/cols/rowcol, or myTriangularPoles if quads/tris. NOTE: You'll probably want to set myFirstRowIfNotWrapped and myLastRowIfNotWrapped to false, to match the Sphere SOP. NOTE: You don't need to call precompute() after this.
Definition at line 1565 of file GU_GridImpl.h.
template<typename INT_TYPE = GA_Offset>
If myPrimitiveType is NURBS or BEZIER, and mySurfaceType is GEO_PATCH_ROWS or GEO_PATCH_COLS or GEO_PATCH_ROWCOL, this indicates whether to create separate curve primitives (true), or a surface primitive with its surface type set correspondingly.
Definition at line 135 of file GU_Grid.h.
template<typename INT_TYPE = GA_Offset>
If mySurfaceType is cols or rows and cols, and rows aren't wrapped, if this is true, the first col is present (the usual), else it's not (e.g. the grid might be connected to an existing mesh).
Definition at line 117 of file GU_Grid.h.
template<typename INT_TYPE = GA_Offset>
If mySurfaceType is rows or rows and cols, and columns aren't wrapped, if this is true, the first row is present (the usual), else it's not (e.g. the grid might be connected to an existing mesh).
Definition at line 107 of file GU_Grid.h.
template<typename INT_TYPE = GA_Offset>
If mySurfaceType is cols or rows and cols, and rows aren't wrapped, if this is true, the final col is present (the usual), else it's not (e.g. the grid might be connected to an existing mesh).
Definition at line 122 of file GU_Grid.h.
template<typename INT_TYPE = GA_Offset>
If mySurfaceType is rows or rows and cols, and columns aren't wrapped, if this is true, the final row is present (the usual), else it's not (e.g. the grid might be connected to an existing mesh).
Definition at line 112 of file GU_Grid.h.
template<typename INT_TYPE = GA_Offset>
If adjacent points on the boundary are equal, and mySurfaceType is one of the triangle options or quads, the appropriate polygons will be simple triangles, instead of quads or pairs of triangles. If a boundary quad becomes fully degenerate, no polygon will be output for it.
Definition at line 129 of file GU_Grid.h.
template<typename INT_TYPE = GA_Offset>
If mySurfaceType is rows, cols, or rows and cols, and a particular row or column wraps around (row0[col]==row1[col] or col0[row]==col1[row]), This indicates to create an open curve with an extra vertex (if true), instead of a closed polygon (if false).
Definition at line 102 of file GU_Grid.h.