Methods
Model

loadModelsFromToken

loads models from a viewer token example usage const options = { modelid "my model id", }; const url = "https //api catenda com/v2/projects/{project id}/viewer3d/data?token={token}"; const modelinfopromise = viewer3d loadmodelsfromtoken(url, options); parameters url viewer token url type required string yes options options when loading the model type required object no properties name type required description color string or number no color used on objects headers object no map of headers to send with the request initialstate string no initial visibility state of the model mapobjectid function no function for mapping the object id to a custom id query object no query to send with the request transform object no initial transform of the model headers map of headers to send with the request type map\[string] initialstate initial visibility state of the model valid values are hidden visible mapobjectid function for mapping the object id to a custom id type (modelid string, objectid string) => string query query to send with the request type map\[object] transform the initial transform of the model name type required description position vector3 docid\ kewrhktc8iq2hlt48srfq no position to move to rotation rotation docid 2ovib7iabuifxws58jvdo no rotation transform scale vector3 docid\ kewrhktc8iq2hlt48srfq no scale transform return value promise that resolves to the model info for the loaded models type promise => modelinfo object modelinfo name type description id string id of the loaded model boundingbox box3 docid\ w y1d3zvta83yjycevckw bounding box of the loaded model originalboundingbox box3 docid\ w y1d3zvta83yjycevckw bounding box without applying transform