ObjectDistanceResult
Interface in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Interface
interface ObjectDistanceResultThe 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#
distance: numberShortest distance between the two surfaces in millimetres; 0 when the objects touch or intersect
errorMm#
errorMm: numberUpper bound of the quantisation error in the reported distance, mm (the vertex positions are stored quantised)
mode#
mode: ObjectDistanceModeThe distance definition this result was measured with
pointA#
The closest point on the first object, viewer measurement coordinates (mm, globalBaseTranslation subtracted)
pointB#
The closest point on the second object
qidA#
qidA: string | nullqidB#
qidB: string | nullreferenceKind#
referenceKind?: "axis" | "centreLine" | "centreToCentre" | nullWhat 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#
referenceModes?: (ReferenceMode)[]Per object, whether it was measured on its surface or on its reference
referenceObjects#
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