Methods
Model
loadUrl
loads a model from a url by default removes existing models before loading the new model example usage const options = { append true, modelid "my model id", modelname "my model name", }; const url = "https //api catenda com/v2/projects/{project id}/viewer2d/geometry?token=your token"; const modelinfospromise = viewer2d loadurl(url, options); parameters url url to the model type required string yes options options for loading the model type required object no properties name type required description append boolean no append model to existing loaded models modelid string no user provided id for the loaded model modelname string no user provided name for the loaded model return value promise that resolves to a list of model information for the loaded models type promise => array\[object] modelinfo name type description id string id of the loaded model boundingbox box3 docid\ jffhx6zgbamwxgmvf z r bounding box of the loaded model