Viewer3DDark.loadModel() method

Load a model into current viewer.

Signature:

loadModel(modelId: string, configOrOnProgress?: LoadModelConfig | ProgressFn, changeCamera?: boolean, islocal?: boolean, path?: string | IFile[]): Promise<string>;

Parameters

ParameterDescription
modelIdThe global unique ID to this model under developer account.
configOrOnProgressLoadModelConfig | Config object for model loading. Accept config object or onProgress callback function.
changeCamera
islocal
pathstring |

Returns:

Promise<string>

A promise contains the model id.