_findInstancedPrims#
Fully qualified name: usd_optimize::_findInstancedPrims
- void usd_optimize::_findInstancedPrims(
- const PXR_NS::UsdStageWeakPtr &stage,
- std::set<PXR_NS::UsdPrim> &instancedPrims,
Find any instanced prims in the scene.
Checks any prototypes in the scene to record what is being instanced. When finding meshes to merge we can’t easily tell if a prim we are looking at is being instanced by something else. This set of prims can be found and then passed in to _findMeshes.
- Parameters:
stage – The USD stage
instancedPrims – Set of instanced prims to populate.