Reference·JavaScript · @bimworks/viewer3dJavaScript

ObjectReference

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface ObjectReference

The 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#

TypeScript#
centre?: (vec3)[]

The true centre where it differs from the axis (a wall's layer centre, a member's profile centroid)

estimated#

TypeScript#
estimated: boolean

Whether the axis is an estimate from the geometry rather than an IFC definition

kind#

TypeScript#
kind: "line" | "plane"

method#

TypeScript#
method: string

How 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#

TypeScript#
points: (vec3)[]

The centre line, or the base line of the axis plane

ports#

TypeScript#
ports?: (vec3)[]

The object's ports, in nesting order

quads#

TypeScript#
quads?: ((vec3)[])[]

Plane only: one four-point ring per straight segment of the axis, over the wall's height

vertical#

TypeScript#
vertical?: boolean

True for a vertical centre line (method openingCentre or planCentre): two of them are measured centre to centre