SmApiUsdExportMeshes#

Defined in SM_API_USD/inc/SmApiUsd.h

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

Export SmPolyBreps to a new USD file as UsdGeomMesh children under /World.

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

  • rSmPolyBreps – [i/o]: SmPolyBreps to export (written as Mesh0, Mesh1, …; non-const: per-vertex index bookkeeping may be updated during mesh authoring. SdfPath attributes are not added to each SmPolyBrep, unlike SmApiUsdExportBreps). Duplicate first if you need an untouched copy for concurrent use.

Returns:

SM_SUCCESS on success, error code otherwise