SmApiReadPartFromFile#
Defined in SM_API/inc/SmApiImportExport.h
- SmApiStatus SmApiReadPartFromFile(
- const TCHAR *pFileName,
- SmBoolean bAscii,
- SmTArray<SmCurve*> &rCurves,
- SmTArray<SmSurface*> &rSurfaces,
- SmTArray<long> &rBooleanTreeNodes,
- SmTArray<SmBrep*> &rBreps,
Read a native SMLib part container.
All returned objects are newly allocated and owned by the caller. Output arrays must be empty on entry.
- Parameters:
pFileName – [in ]: Input file path; must not be NULL
bAscii – [in ]: TRUE for ASCII, FALSE for binary
rCurves – [out]: Standalone curves
rSurfaces – [out]: Standalone surfaces
rBooleanTreeNodes – [out]: Boolean tree node data
rBreps – [out]: Brep models
- Returns:
SM_SUCCESS on success, error code otherwise