Reference·JavaScript · @bimworks/viewer3dJavaScript

ObjectTransformResult

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface ObjectTransformResult

What ObjectTransformOptions.onCommit receives: a move, preceded by an optional rotation around a pivot

Members#

Member Kind Description
each Property Whether the objects turned each in place: models[].each holds the change per object. Viewer3D-Next
models Property The same change per model of the objects, in the model's own coordinates (its alignment and GEO placement taken out): what a BUL TRANSFORM of that model says…
moveMm Property The translation in millimetres, in the measurement frame
openings Property With fillings: whether their openings go along (false: write WITHOUT OPENINGS). Viewer3D-Next
renderDelta Property The whole change as a column-major 4 x 4 in the render frame (Viewer3D-Next)
rotate Property The rotation, null for a pure move; the pivot in millimetres, in the measurement frame

each#

TypeScript#
each?: boolean

Whether the objects turned each in place: models[].each holds the change per object. Viewer3D-Next

models#

TypeScript#
models?: (ObjectTransformModelResult)[]

The same change per model of the objects, in the model's own coordinates (its alignment and GEO placement taken out): what a BUL TRANSFORM of that model says (Viewer3D-Next)

moveMm#

TypeScript#
moveMm: [number, number, number]

The translation in millimetres, in the measurement frame

openings#

TypeScript#
openings?: boolean

With fillings: whether their openings go along (false: write WITHOUT OPENINGS). Viewer3D-Next

renderDelta#

TypeScript#
renderDelta?: (number)[]

The whole change as a column-major 4 x 4 in the render frame (Viewer3D-Next)

rotate#

TypeScript#
rotate: { angleDeg: number; axis: [number, number, number]; pivotMm: [number, number, number] } | null

The rotation, null for a pure move; the pivot in millimetres, in the measurement frame