SmApiUsdFindGeometryPrims#

Defined in SM_API_USD/inc/SmApiUsdGeometryValidate.h

SmStatus SmApiUsdFindGeometryPrims(
const pxr::UsdStagePtr &crStage,
std::vector<std::pair<pxr::SdfPath, pxr::UsdPrim>> &rPrims,
std::size_t *pVisited = nullptr,
)#

Find the prims that SmApiUsdGeometryValidate should check: the prims UsdStage::Traverse visits (active, defined, not abstract) that have the BrepArray type or a brep:regionCount attribute, including those inside instance prototypes. The prims of a prototype are listed once, under a stable path made from the smallest authored instance path. Sorted by path.

Parameters:

pVisited – if not null, receives the number of prims visited

Returns:

SM_SUCCESS; SM_ERR_NULL_POINTER for a null stage