16 #ifndef __GA_FloatTupleAdapter__
17 #define __GA_FloatTupleAdapter__
31 : myDest(attr->getDetail().cloneEmptyDetail(false))
32 , myDAttr(myDest->getAttributes().cloneAttribute(
36 , myList(*myDest, &attr->getDetail())
40 myList.append(myDAttr, attr);
41 for (
int i = 0; i <
size; i++)
42 myResults[i] = myList.getTempVertex(myList.appendTempVertex());
53 for (
int i = 0; i < mySize; i++)
56 handle.getV(myDest->vertexPoint(myResults[i]),
data, asize);
58 handle.getV(myResults[i], data, asize);
Definition of a geometry attribute.
void extractToFloats(float *data, int asize)
GA_FloatTupleAdapter(const GA_Attribute *attr, int size)
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
PXL_API const char * getName(const ColorSpace *space)
Return the name of the color space.
GA_AttributeRefMap & getList()
A handle to simplify manipulation of multiple attributes.
void extract(T *data)
Extract to a templated type, which must have value_type of float.
SYS_FORCE_INLINE GA_AttributeOwner getOwner() const