24 #ifndef __GUSD_REFINER_H__
25 #define __GUSD_REFINER_H__
92 , writeCtrlFlags(writeCtrlFlags) {}
122 const GprimArray& finish();
217 bool explicitPrimPath,
249 #endif // __GUSD_GT_REFINER_H__
bool m_buildPointInstancer
bool m_useUSDIntrinsicNames
std::map< SdfPath, std::vector< InstPrimEntry > > m_instancePrims
GLsizei const GLchar *const * string
GusdRefiner::GprimArray m_gprims
GLsizei const GLchar *const * path
void addInstPrim(const SdfPath &path, GT_PrimitiveHandle p, int index=0)
Add a prim to be added to a point instancer during finish.
virtual void addPrimitive(const GT_PrimitiveHandle &prim)=0
bool allowThreading() const override
Return true if the refinement allows threaded refinement of primitives.
GprimArrayEntry(const SdfPath &path, const GT_PrimitiveHandle &prim, const UT_Matrix4D &xform, const TfToken &purpose, const GusdWriteCtrlFlags &writeCtrlFlags)
InstPrimEntry(GT_PrimitiveHandle p, int i=0)
GusdWriteCtrlFlags m_writeCtrlFlags
std::vector< GprimArrayEntry > GprimArray
GusdRefiner::GprimArray GprimArray
TfToken m_pointInstancerType
Processes primitives generated by refinement process.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
GusdWriteCtrlFlags writeCtrlFlags
#define PXR_NAMESPACE_CLOSE_SCOPE
Class used to refine GT prims so that they can be written to a USD file.
bool m_forceGroupTopPackedPrim
void finish(GusdRefiner &refiner)
SdfPath add(const SdfPath &path, bool explicitPrimPath, GT_PrimitiveHandle prim, const UT_Matrix4D &xform, const TfToken &purpose, const GusdWriteCtrlFlags &writeCtrlFlags)
std::map< SdfPath, NameInfo > m_names