13 #ifndef __GEO_ConvertParms__
14 #define __GEO_ConvertParms__
56 float getULOD()
const {
return isLOD() ? u.lod : u.div; }
57 float getVLOD()
const {
return isLOD() ?
v.lod :
v.div; }
65 {
return !isLOD() || (isLOD() && (u.lod > 0)); }
67 {
return !isLOD() || (isLOD() && (
v.lod > 0)); }
69 {
return !isLOD() || (isLOD() && (
trim.lod > 0)); }
79 int validUDiv()
const {
return isDiv() && (u.div >= 0); }
80 int validVDiv()
const {
return isDiv() && (
v.div >= 0); }
83 static const int GEO_EXTRA_LOD = 12;
174 myDeletePoints =
nullptr;
175 myDeletePrimitives =
nullptr;
181 UT_ASSERT(mySourceDetail && myDestDetail);
182 return getWranglers(*(
GA_Detail*)myDestDetail,
187 UT_ASSERT(mySourceDetail && myDestDetail);
188 return getGroupWranglers(*(
GA_Detail*)myDestDetail,
195 cacheWranglers(myWranglers, dest,
src,
false);
201 cacheWranglers(myGroupWranglers, dest,
src,
true);
202 return *myGroupWranglers;
224 bool for_groups)
const;
240 GEO_ConvertParms::cacheWranglers(
251 wranglers.reset(allocWranglerCache(dest, *src, for_groups));
252 else if (!wranglers->isValid(dest, *src))
253 wranglers->reset(dest, *src);
bool pastedFeatureCoord() const
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
void setTrimSurface(bool b)
GA_API const UT_StringHolder div
void setPastedFeatureAttrib(bool b)
void setPastedFeatureCoord(bool b)
bool metaClustering() const
void setMetaClustering(bool b)
GA_ElementWranglerCache & getGroupWranglers()
void setConvertMethod(GEO_ConvertMethod m)
void setSourceDetail(const GEO_Detail *g)
void setInterpolateHull(bool b)
void setDestDetail(GEO_Detail *g)
GA_PrimitiveGroup * primGroup
GEO_Detail * destDetail() const
void setToType(const GA_PrimCompat::TypeMask &t)
GEO_ConvertMethod convertMethod() const
const GEO_Detail * mySourceDetail
GA_ElementWranglerCache & getWranglers(GA_Detail &dest, const GA_Detail *src=nullptr)
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
bool interpolateHull() const
GEO_Detail * myDestDetail
GEO_SurfaceType surfaceType() const
void setSharedFaces(bool b)
bool pastedFeatureAttrib() const
GA_PrimCompat::TypeMask fromType() const
void trim(std::string &s)
GA_ElementWranglerCache & getWranglers()
Returns a GA_ElementWranglerCache using mySourceDetail and myDestDetail.
GLboolean GLboolean GLboolean b
GA_PrimCompat::TypeMask toType() const
void setFromType(const GA_PrimCompat::TypeMask &t)
void setMetaOffset(fpreal f)
Contains transitional objects to provide some backward compatibility for code that references old GEO...
void setSurfaceType(GEO_SurfaceType t)
void setKeepGroups(bool f)
static int floatLODToIntLOD(float lod)
Container class for all geometry.
GEO_ConvertMethod(GEO_ConvertStyle s=GU_CONVERT_LOD)
void setTrimLOD(float lod)
GA_ElementWranglerCache & getGroupWranglers(GA_Detail &dest, const GA_Detail *src=nullptr)
const GEO_Detail * sourceDetail() const