Methods
Model

getTransform

Returns the current transform applied to the specified model.

Example



Usage

JS


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

No

Position of the model

rotation

Rotation

No

Rotation transform

scale

Vector3

No

Scale transform

Rotation

Name

Type

Required

Description

angle

Number

No

Angle in radians

centerOfRotation

Vector3

No

Point to rotate over

x

Number

Yes

X axis rotation

y

Number

Yes

Y axis rotation

z

Number

Yes

Z axis rotation

Example

JS




Updated 13 Sep 2024
Did this page help you?