12 #ifndef __GU_TPSurfCache_H__
13 #define __GU_TPSurfCache_H__
45 ~GU_TPTrimSurfCache();
51 {
return myHasCd || myHasUv || myHasAf; }
76 int64 getMemoryUsage(
bool inclusive)
const;
79 void touchDomain(
int ustart_idx,
int ustop_idx,
80 int vstart_idx,
int vstop_idx);
88 {
return (myPatches)?myPatches->myPatch : 0;}
98 void getCounts(
int uwrapped,
int vwrapped,
99 int &nucurves,
int &nupoints,
100 int &nvcurves,
int &nvpoints)
const;
101 void getCounts(
int uwrapped,
int vwrapped,
102 int &nupoints,
int &nvpoints)
const;
109 : myCdOffset.isValid() ||
110 myTxtOffset.isValid() ||
111 myAlphaOffset.isValid();
114 bool hasColor()
const {
return myCdOffset.isValid(); }
116 bool hasAlpha()
const {
return myAlphaOffset.isValid(); }
122 : myPatches->myTrimmedState;
126 int getNewTrimIndex();
137 {
return myPatches->myPoints; }
139 {
return myPatches->myNormals;}
141 {
return myPatches->myColors;}
143 {
return myPatches->myUVs;}
145 {
return myPatches->myAlphas;}
156 const GA_ROHandleV3 &colorOffset ()
const {
return myCdOffset; }
157 const GA_ROHandleF &alphaOffset ()
const {
return myAlphaOffset; }
158 const GA_ROHandleF &textureOffset()
const {
return myTxtOffset; }
168 int myUSpans, myVSpans;
169 int myUSize, myVSize;
175 void resizeAttributes(
GEO_Detail *gdp,
int ptattrib = 1);
const UT_Vector3Array & trimColors() const
bool hasAttributes() const
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the and then *wait for them to all complete We provide a helper class
int64 getMemoryUsage(bool inclusive) const override
#define SYS_DEPRECATED_PUSH_DISABLE()
int hasAttributes(GU_CacheMode mode) const
#define SYS_DEPRECATED_POP_DISABLE()
const UT_FloatArray & alphas() const
const UT_Vector4Array & trimPoints() const
const UT_Vector4Array & points() const
virtual void assimilateXform()
const UT_Vector3Array & normals() const
const GEO_TPSurf * surface() const
const UT_Vector3Array & colors() const
const UT_Vector3Array & trimNormals() const
const UT_FloatArray & trimAlphas() const
virtual void initializeData()
const UT_Vector3Array & uvs() const
void surface(const GEO_TPSurf *surf)
GU_TPSurfTrimState getTrimmedState() const
GU_CacheMode builtAs() const
const GU_TrimPatch * getPatch() const
const UT_Vector3Array & trimUVs() const