Reference·JavaScript · @bimworks/viewer3dJavaScript

QuantityFigure

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface QuantityFigure

The verification geometry of a calculated quantity, as the server stores it (docs/quantity-figures-design.md §3.1)

Members#

Member Kind Description
kind Property The primitive that carries the label: "polygon" | "polyline" | "dimension" | "box"
primitives Property Flat [x, y, z, ...] coordinates in metres, model coordinates

kind#

TypeScript#
kind: string

The primitive that carries the label: "polygon" | "polyline" | "dimension" | "box"

primitives#

TypeScript#
primitives: ({ normal?: (number)[]; rings: ((number)[])[]; type: "polygon" } | { closed?: boolean; points: (number)[]; type: "polyline" } | { from: (number)[]; to: (number)[]; type: "dimension" } | { corners: (number)[]; type: "box" })[]

Flat [x, y, z, ...] coordinates in metres, model coordinates