HDK
|
#include <GA_WorkVertexBuffer.h>
Definition at line 21 of file GA_WorkVertexBuffer.h.
GA_WorkVertexBuffer::GA_WorkVertexBuffer | ( | GA_VertexPool & | pool, |
GA_Size | size = 0 , |
||
GA_Size | matrix_number_colums = GA_MAXORDER |
||
) |
Construct a buffer of temporary vertices/points for a given detail. Thes vertices can be used for intermediate computations. The size
parameter specifies the initial allocation size of the buffer.
When the vertex buffer represents a 2D array of vertices, the matrix_number_columns
variable specifies the number of columns in the array (i.e. nu).
|
virtual |
Virtual solely for GEO backward compatibility.
GA_Offset GA_WorkVertexBuffer::appendPointOffset | ( | ) |
Append a single temporary point.
Allocate N
points into the provided buffer.
Definition at line 75 of file GA_WorkVertexBuffer.h.
GA_Offset GA_WorkVertexBuffer::appendVertexOffset | ( | GA_Offset | point = GA_INVALID_OFFSET | ) |
Append a single vertex. If a point is not specified, a temporary point will be created to handle point attributes.
Allocate N
vertices in the provided buffer.
Definition at line 67 of file GA_WorkVertexBuffer.h.
void GA_WorkVertexBuffer::clear | ( | ) |
Release all the vertices.
|
inline |
Get a vertex in a mesh (rather than a linear array). This uses the MatrixSize to determine the number of columns in the matrix.
Definition at line 91 of file GA_WorkVertexBuffer.h.
|
inline |
The matrix size is the number of columns in the 2D array of vertices.
Definition at line 95 of file GA_WorkVertexBuffer.h.
|
inline |
Query
Definition at line 86 of file GA_WorkVertexBuffer.h.
GA_Offset GA_WorkVertexBuffer::getVertexOffset | ( | GA_Size | idx, |
GA_Offset | pt = GA_INVALID_OFFSET |
||
) |
Look up the vertex at the index specified. If the index requested is greater than the allocated number of vertices, new vertices will be allocated. The const method will not append new vertices, and will return GA_INVALID_INDEX if the index is out of range.
Look up the vertex at the index specified. If the index requested is greater than the allocated number of vertices, new vertices will be allocated. The const method will not append new vertices, and will return GA_INVALID_INDEX if the index is out of range.
|
inline |
Definition at line 82 of file GA_WorkVertexBuffer.h.
Grow the buffer to the size specified. Temporary points will be created for each temporary vertex
Reserve memory for the given amount of vertices/points without growing the the buffer. Only has an effect when num_elems is larger than the current number of entries.
Swap two entries in the vertex array. This changes the vertex order in the buffer, but has no effect on the geometry.
Definition at line 100 of file GA_WorkVertexBuffer.h.