Reference·JavaScript · @bimworks/viewer3dJavaScript

ObjectTransformModelResult

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface ObjectTransformModelResult

The change of ObjectTransformResult.models for one model

Members#

Member Kind Description
delta Property The whole change in the model's coordinates, mm (a column-major mat4), for setTransformPreview. Viewer3D-Next
each Property Turned each in place (PlacementTool.setEach): per object of this model its own change, the same turn about its own pivot and the same move; one BUL TRANSFORM…
exact Property How exact the user was: the unit every move was typed in (null: dragged), how the turns came
moveMm Property What happens to the pivot, mm, in the model's coordinates
rotate Property The turn about the pivot as it was before the change, null without one; a vertical axis is always (0, 0, 1)
vid Property

delta#

TypeScript#
delta?: (number)[]

The whole change in the model's coordinates, mm (a column-major mat4), for setTransformPreview. Viewer3D-Next

each#

TypeScript#
each?: (ObjectTransformObjectResult)[]

Turned each in place (PlacementTool.setEach): per object of this model its own change, the same turn about its own pivot and the same move; one BUL TRANSFORM each. Viewer3D-Next

exact#

TypeScript#
exact: { angle: "detent" | "typed" | "face" | "free" | null; unit: string | null }

How exact the user was: the unit every move was typed in (null: dragged), how the turns came

moveMm#

TypeScript#
moveMm: [number, number, number]

What happens to the pivot, mm, in the model's coordinates

rotate#

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

The turn about the pivot as it was before the change, null without one; a vertical axis is always (0, 0, 1)

vid#

TypeScript#
vid: number