Unplugged Viz
High-performance scientific visualization isn't just for the workstation anymore
|
Helper methods for generating grid geometries. More...
Static Public Member Functions | |
static int[] | GenerateTriangleStripIndices (int vertexRows, int vertexColumns, bool wrap=false) |
Generate triangle strip indices for a grid with given numbers of rows and columns. Assumes the vertices are laid out in rows, then columns; for example: More... | |
static float[,,] | GenerateTextureCoordinates (int rows, int columns, float uMax=1, float vMax=1) |
Generate texture coordinates for a grid with given numbers of rows and columns. More... | |
Helper methods for generating grid geometries.
|
static |
Generate texture coordinates for a grid with given numbers of rows and columns.
rows | The vertex row count. |
columns | The vertex column count. |
uMax | The proportion of the texture rows for which their are data. |
vMax | The proportion of the texture columns for which their are data. |
|
static |
Generate triangle strip indices for a grid with given numbers of rows and columns. Assumes the vertices are laid out in rows, then columns; for example:
0 1 2 3
4 5 6 7
8 9 0 1
2 3 4 6
vertexRows | The vertex row count. |
vertexColumns | The vertex column count. |
wrap | If set to true wrap the indices around the model. |