SmApiUsdAppendMeshes#

Defined in SM_API_USD/inc/SmApiUsd.h

SmStatus SmApiUsdAppendMeshes(
const char *pFileName,
std::vector<SmPolyBrep*> &rSmPolyBreps,
)#

Append SmPolyBreps as new UsdGeomMesh prims under /World.

Mesh prims are named Mesh<N> where N is the previous UsdGeomMesh count on the stage.

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

  • rSmPolyBreps – [i/o]: SmPolyBreps to append (non-const: per-vertex index bookkeeping may be updated during mesh authoring, same as SmApiUsdExportMeshes. SdfPath attributes are not added to each SmPolyBrep, unlike SmApiUsdAppendBreps).

Returns:

SM_SUCCESS on success, error code otherwise