Reference·JavaScript · @bimworks/viewer3dJavaScript

figureToOverlayItems

Function in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Function

TypeScript#
function figureToOverlayItems

Members#

Member Kind Description
figureToOverlayItems Method A quantity figure (metres, model world coordinates) as overlay items in raw model mm: an area per polygon (lifted lift mm along its normal), a path per pol…

figureToOverlayItems#

TypeScript#
figureToOverlayItems(figure: QuantityFigure, id: string, common?: Partial<OverlayItemCommon>, options?: { fill?: number | null; lift?: number }): (OverlayItem)[]

A quantity figure (metres, model world coordinates) as overlay items in raw model mm: an area per polygon (lifted lift mm along its normal), a path per polyline, two arrows per dimension, paths for a box's edges. Every item gets id + "#" + n and the common fields

Parameters#

Name Type Description
figure QuantityFigure
id string
common Partial<OverlayItemCommon>
options { fill?: number | null; lift?: number }