11 #ifndef __GA_WorkVertexBuffer__
12 #define __GA_WorkVertexBuffer__
51 void growBuffer(
GA_Size newsize);
71 buffer[i] = appendVertexOffset();
79 buffer[i] = appendPointOffset();
93 {
return getVertexOffset(r*myMatrixSize+c, pt); }
101 { myVertices.swap(i1, i2); }
107 vertex = myVertexPool.appendVertex(point);
108 myVertices.append(vertex);
SIM_API const UT_StringHolder vertex
void appendVertices(GA_Offset *buffer, GA_Size n)
Allocate N vertices in the provided buffer.
void swapVertices(GA_Size i1, GA_Size i2)
GA_Size getMatrixSize() const
The matrix size is the number of columns in the 2D array of vertices.
Manages allocation/deletion of temporary vertex/points for a detail.
GA_Size GA_VertexPoolIndex
exint GA_Size
Defines the bit width for index and offset types in GA.
void appendPoints(GA_Offset *buffer, GA_Size n)
Allocate N points into the provided buffer.
GA_VertexPool & getVertexPool() const
#define GA_INVALID_OFFSET
auto reserve(std::back_insert_iterator< Container > it, size_t n) -> checked_ptr< typename Container::value_type >
GA_Offset getBasisVertexOffset(GA_Size r, GA_Size c, GA_Offset pt=GA_INVALID_OFFSET)
**Note that the tasks the is the thread number *for the pool
GA_Size getVertexEntries() const