Reference·JavaScript · @bimworks/viewercommonJavaScript

AlignmentFit

Interface in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Interface

TypeScript#
interface AlignmentFit

What fitAlignment found

Members#

Member Kind Description
allow Property The kind asked for
degenerate Property "coincident" when the pairs lie at one place in plan, so no turn could be found; null otherwise
exact Property The pairs fix the fit exactly (1 pair of a move, 2 of a turn and scale), so the residuals check nothing
kind Property The kind fitted: "move" while there are too few pairs to turn, or when the pairs lie at one place in plan
matrix Property The alignment of the model to move: 16 numbers, column-major, mm (what SetAlignment and setModelAlignment take)
maxResidual Property
missingPairs Property How many pairs the kind asked for still needs; 0 when it has them
residuals Property Per pair, how far the moved point lands from its onto point, in mm
scale Property The uniform scale: the one fitted for "turn-scale", else options.scale (1 by default)
turnDegrees Property The turn about the vertical axis, in degrees (-180, 180]

allow#

TypeScript#
allow: AlignmentFitKind

The kind asked for

degenerate#

TypeScript#
degenerate: "coincident" | null

"coincident" when the pairs lie at one place in plan, so no turn could be found; null otherwise

exact#

TypeScript#
exact: boolean

The pairs fix the fit exactly (1 pair of a move, 2 of a turn and scale), so the residuals check nothing

kind#

TypeScript#
kind: AlignmentFitKind

The kind fitted: "move" while there are too few pairs to turn, or when the pairs lie at one place in plan

matrix#

TypeScript#
matrix: (number)[]

The alignment of the model to move: 16 numbers, column-major, mm (what SetAlignment and setModelAlignment take)

maxResidual#

TypeScript#
maxResidual: number

missingPairs#

TypeScript#
missingPairs: number

How many pairs the kind asked for still needs; 0 when it has them

residuals#

TypeScript#
residuals: (number)[]

Per pair, how far the moved point lands from its onto point, in mm

scale#

TypeScript#
scale: number

The uniform scale: the one fitted for "turn-scale", else options.scale (1 by default)

turnDegrees#

TypeScript#
turnDegrees: number

The turn about the vertical axis, in degrees (-180, 180]