AlignmentFit
Interface in @bimworks/viewercommon.
API catalogue · @bimworks/viewercommon · Interface
interface AlignmentFitWhat 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#
allow: AlignmentFitKindThe kind asked for
degenerate#
degenerate: "coincident" | null"coincident" when the pairs lie at one place in plan, so no turn could be found; null otherwise
exact#
exact: booleanThe pairs fix the fit exactly (1 pair of a move, 2 of a turn and scale), so the residuals check nothing
kind#
kind: AlignmentFitKindThe kind fitted: "move" while there are too few pairs to turn, or when the pairs lie at one place in plan
matrix#
matrix: (number)[]The alignment of the model to move: 16 numbers, column-major, mm (what SetAlignment and setModelAlignment take)
maxResidual#
maxResidual: numbermissingPairs#
missingPairs: numberHow many pairs the kind asked for still needs; 0 when it has them
residuals#
residuals: (number)[]Per pair, how far the moved point lands from its onto point, in mm
scale#
scale: numberThe uniform scale: the one fitted for "turn-scale", else options.scale (1 by default)
turnDegrees#
turnDegrees: numberThe turn about the vertical axis, in degrees (-180, 180]