SmApiUsdImportBreps#
Defined in SM_API_USD/inc/SmApiUsd.h
- SmStatus SmApiUsdImportBreps(
- const char *pFileName,
- std::vector<SmBrep*> &rSmBreps,
- SmBoolean bHealerIsEnabled = TRUE,
Load all BRep prims from a USD file and convert them to SmBreps.
Opens the USD stage at
pFileName, locates every UsdGeomGprim that carries a BrepArray schema, and converts each one into an SmBrep. Newly imported Breps are appended torSmBrepsonly after the entire stage converts successfully. On failure, any entries already supplied by the caller remain unchanged and no newly created Breps are returned.- Parameters:
pFileName – [in ]: Path to USD file (.usda, .usdc, .usd)
rSmBreps – [i/o]: Existing entries are preserved; on success, resulting SmBreps are appended and owned by the caller
bHealerIsEnabled – [in ]: TRUE = run healer on each converted BRep
- Returns:
SM_SUCCESS only if every discovered packed BRep converts; error code otherwise