Methods
Model
getTransform
returns the current transform applied to the specified model example usage const modelid = "my model id"; const type = "bim"; const transform = viewer3d gettransform(modelid, type); parameters modelid id of the model type required string yes type type of the model type required string no valid values are bim point cloud return value the transform applied to the model type object properties name type required description position vector3 docid\ kewrhktc8iq2hlt48srfq no position of the model rotation rotation no rotation transform scale vector3 docid\ kewrhktc8iq2hlt48srfq no scale transform rotation name type required description angle number no angle in radians centerofrotation vector3 docid\ kewrhktc8iq2hlt48srfq no point to rotate over x number yes x axis rotation y number yes y axis rotation z number yes z axis rotation example { rotation { centerofrotation { x 0, y 0, z 0, }, angle 0, x 0, y 0, z 1, }, position { x 0, y 0, z 0, }, scale { x 1, y 1, z 1, }, };