Reference·JavaScript · @bimworks/viewer3dJavaScript

ObjectDistanceResult

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface ObjectDistanceResult

The result of an object distance measurement (docs/object-distance-measurement-design.md §6)

Members#

Member Kind Description
distance Property Shortest distance between the two surfaces in millimetres; 0 when the objects touch or intersect
errorMm Property Upper bound of the quantisation error in the reported distance, mm (the vertex positions are stored quantised)
mode Property The distance definition this result was measured with
pointA Property The closest point on the first object, viewer measurement coordinates (mm, globalBaseTranslation subtracted)
pointB Property The closest point on the second object
qidA Property
qidB Property
referenceKind Property What the references measured to were: "axis", "centreLine" (a vertical centre line on at least one side) or "centreToCentre" (two vertical lines: between the…
referenceModes Property Per object, whether it was measured on its surface or on its reference
referenceObjects Property Per side, the level or grid line it holds instead of an object (docs/reference-geometry-measurement-design.md §12.4), or null

distance#

TypeScript#
distance: number

Shortest distance between the two surfaces in millimetres; 0 when the objects touch or intersect

errorMm#

TypeScript#
errorMm: number

Upper bound of the quantisation error in the reported distance, mm (the vertex positions are stored quantised)

mode#

TypeScript#
mode: ObjectDistanceMode

The distance definition this result was measured with

pointA#

TypeScript#
pointA: vec3

The closest point on the first object, viewer measurement coordinates (mm, globalBaseTranslation subtracted)

pointB#

TypeScript#
pointB: vec3

The closest point on the second object

qidA#

TypeScript#
qidA: string | null

qidB#

TypeScript#
qidB: string | null

referenceKind#

TypeScript#
referenceKind?: "axis" | "centreLine" | "centreToCentre" | null

What the references measured to were: "axis", "centreLine" (a vertical centre line on at least one side) or "centreToCentre" (two vertical lines: between their middles, the objects' centre points, and in horizontal mode their distance in plan); null when both objects were measured on their surface

referenceModes#

TypeScript#
referenceModes?: (ReferenceMode)[]

Per object, whether it was measured on its surface or on its reference

referenceObjects#

TypeScript#
referenceObjects?: (ReferenceObject | null)[]

Per side, the level or grid line it holds instead of an object (docs/reference-geometry-measurement-design.md §12.4), or null