SmApiUsdExportBreps#
Defined in SM_API_USD/inc/SmApiUsd.h
- SmStatus SmApiUsdExportBreps(
- const char *pFileName,
- std::vector<SmBrep*> &rSmBreps,
- SmBoolean bExportUVCurves = TRUE,
- SmBoolean bBoundUnboundedFaceRanges = FALSE,
Export a vector of SmBreps to a new USD file.
Creates a new USD stage, converts each SmBrep to a BrepArray prim, and saves the stage to
pFileName. Export does not copy the Breps or promote NURBS surfaces to analytics. Bounding unbounded ranges may attach missing UV trims to the input Breps; these remain available for reuse even when bExportUVCurves is FALSE. Source face domains and geometry are not shrunk. Geometry caches and the destination-path attribute may be updated. Do not export a Brep concurrently with another operation on it; use SmApiBrepCopy first to isolate side effects.- Parameters:
pFileName – [in ]: Output USD file path
rSmBreps – [i/o]: SmBreps to export (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