SmApiUsdImportBrep#
Defined in SM_API_USD/inc/SmApiUsd.h
- SmStatus SmApiUsdImportBrep(
- const char *pFileName,
- const char *pPrimPath,
- SmBrep *&rpSmBrep,
- SmBoolean bHealerIsEnabled = TRUE,
Load a single BRep prim from a USD file by SdfPath and convert to SmBrep. If the prim contains multiple packed Breps, every member must convert successfully; the first is returned and the remaining members are deleted.
- Parameters:
pFileName – [in ]: Path to USD file
pPrimPath – [in ]: SdfPath string of the target prim (e.g. “/World/Brep0”)
rpSmBrep – [out]: Resulting SmBrep (caller takes ownership), or NULL on failure
bHealerIsEnabled – [in ]: TRUE = run healer on the converted BRep
- Returns:
SM_SUCCESS only if every packed BRep converts; error code otherwise