A3DAsmModelFileLoadFromFile
-
A3DStatus
A3DAsmModelFileLoadFromFile(const A3DUTF8Char *pcFileName, const A3DRWParamsLoadData *pLoadParametersData, A3DAsmModelFile **ppModelFile) A3DStatusA3DAsmModelFileLoadFromFile(constA3DUTF8Char* pcFileName, constA3DRWParamsLoadData* pLoadParametersData,A3DAsmModelFile** ppModelFile)Loads an
A3DAsmModelFilefrom a physical file, returning a handle to the new model file.Successfully calling this function will always create a new model file, even if the call is made several times with the same input path. Once loaded, a handle to the new model file is stored in
ppModelFileand you can query its content withA3DAsmModelFileGet.A3DRWParamsLoadDataparameters; A3D_INITIALIZE_DATA(A3DRWParamsLoadData,parameters); A3DAsmModelFile*model_file=0; A3DStatusresult=A3DAsmModelFileLoadFromFile("/path/to/file.stl",¶meters,&model_file); assert(result==A3D_SUCCESS); assert(model_file!=0);
Parameters
pcFileName: The system path to the input file. Must be a valid UTF-8 string.
pLoadParametersData: A set of options used to customize the behaviour of the loading.
ppModelFile: A pointer to the handle of the new model file, in case of success.
Returns
A3D_SUCCESSor an error code in case of failure.