ViewpointMeasurement
Type alias in @bimworks/viewercommon.
API catalogue · @bimworks/viewercommon · Type alias
TypeScript#
type ViewpointMeasurement = { kind: "distance" | "length" | "angle" | "point"; points: (ViewpointPoint)[] } | { holes: ((ViewpointPoint)[])[]; kind: "area"; mode: "gross" | "net" | "hull"; points: (ViewpointPoint)[] } | { distance: number; error: number; kind: "object_distance"; mode: "shortest" | "vertical" | "horizontal"; objects: [string | null, string | null]; points: [ViewpointPoint, ViewpointPoint]; reference_kind: string | null; reference_modes: ("surface" | "axis")[] | null; reference_objects: ({ kind: "level"; name: string } | { kind: "grid"; name: string; points: (ViewpointPoint)[] } | null)[] } | { kind: "laser"; normal: ViewpointPoint; object: string | null; only_z: boolean; points: [ViewpointPoint]; to_reference: boolean };A finished measurement as a viewpoint keeps it (bimworks.measurements), its kind as Measuring.kindOf names it. An object distance keeps its result and is not computed again; a laser keeps where it stands (object: the qid it stands on) and casts its beams again