SmApiReadBrepFromFile#

Defined in SM_API/inc/SmApiImportExport.h

SmApiStatus SmApiReadBrepFromFile(
const TCHAR *pFileName,
SmBoolean bAscii,
SmBoolean bRebuildUVTrimCurves,
SmBrep *&rpBrep,
)#

Read one Brep from a native SMLib .smb file.

Parameters:
  • pFileName – [in ]: Input file path; must not be NULL

  • bAscii – [in ]: TRUE for ASCII, FALSE for binary

  • bRebuildUVTrimCurves – [in ]: TRUE to rebuild UV trim curves after loading

  • rpBrep – [out]: Newly allocated Brep; caller takes ownership

Returns:

SM_SUCCESS on success, error code otherwise