ObjectReference
Interface in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Interface
interface ObjectReferenceThe reference geometry of an object (docs/reference-geometry-measurement-design.md §5): its centre line ("line") or a wall's axis plane ("plane"), in viewer measurement coordinates (mm), from the reference figures the server writes at check-in. A door, window, piece of furniture or other object without an axis has its vertical centre line instead (docs/vertical-centre-line-measurement-design.md)
Members#
| Member | Kind | Description |
|---|---|---|
| centre | Property | The true centre where it differs from the axis (a wall's layer centre, a member's profile centroid) |
| estimated | Property | Whether the axis is an estimate from the geometry rather than an IFC definition |
| kind | Property | |
| method | Property | How the server derived the axis: axisCurve, extrusionAxis, sweepDirectrix, revolvedArc, portsAxis, principalAxisEstimate, ...; for a vertical centre line ope… |
| points | Property | The centre line, or the base line of the axis plane |
| ports | Property | The object's ports, in nesting order |
| quads | Property | Plane only: one four-point ring per straight segment of the axis, over the wall's height |
| vertical | Property | True for a vertical centre line (method openingCentre or planCentre): two of them are measured centre to centre |
centre#
The true centre where it differs from the axis (a wall's layer centre, a member's profile centroid)
estimated#
estimated: booleanWhether the axis is an estimate from the geometry rather than an IFC definition
kind#
kind: "line" | "plane"method#
method: stringHow the server derived the axis: axisCurve, extrusionAxis, sweepDirectrix, revolvedArc, portsAxis, principalAxisEstimate, ...; for a vertical centre line openingCentre (through the centre of the opening the object fills) or planCentre (of its plan rectangle)
points#
The centre line, or the base line of the axis plane
ports#
The object's ports, in nesting order
quads#
Plane only: one four-point ring per straight segment of the axis, over the wall's height
vertical#
vertical?: booleanTrue for a vertical centre line (method openingCentre or planCentre): two of them are measured centre to centre