SmApiUsdAppendBreps#

Defined in SM_API_USD/inc/SmApiUsd.h

SmStatus SmApiUsdAppendBreps(
const char *pFileName,
std::vector<SmBrep*> &rSmBreps,
SmBoolean bExportUVCurves = TRUE,
SmBoolean bBoundUnboundedFaceRanges = FALSE,
)#

Append SmBreps to an existing USD file.

Opens the stage at pFileName, appends BrepArray prims converted from rSmBreps, and re-saves the stage. Retains generated trims, caches, and destination-path attributes on the inputs with the same side effects as SmApiUsdExportBreps; does not copy the Breps.

Parameters:
  • pFileName – [in ]: Existing USD file path

  • rSmBreps – [i/o]: SmBreps to append (non-const: SdfPath attributes are added to each SmBrep)

  • bExportUVCurves – [in ]: TRUE = include edgeuse UV trim curves

  • bBoundUnboundedFaceRanges – [in ]: TRUE = use trim-curve bounds for unbounded BrepArray face ranges without modifying the BRep face domains

Returns:

SM_SUCCESS on success, error code otherwise