OverlayMeshItem
Interface in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Interface
interface OverlayMeshItemA prebuilt triangle mesh drawn like an area (fill and outline): many figures merged into one
draw (FigureLayers). Positions are relative to anchor, raw world mm
Inheritance and interfaces#
Members#
| Member | Kind | Description |
|---|---|---|
| anchor | Property | |
| bounds | Property | |
| color | Property | "#rrggbb" or "#rrggbbaa", overrides the role colour inheritedFrom: OverlayItemCommon.color |
| depth | Property | "ghost" draws as "test" until the ghost pass arrives inheritedFrom: OverlayItemCommon.depth |
| hoverHighlight | Property | false: hovering does not lighten or tooltip the whole mesh (its parts are different things) |
| id | Property | Unique within the overlay inheritedFrom: OverlayItemCommon.id |
| indices | Property | |
| label | Property | inheritedFrom: OverlayItemCommon.label |
| labelShow | Property | "hover": the label only while the item or one of its qids is hovered; default "always" inheritedFrom: OverlayItemCommon.labelShow |
| normals | Property | |
| outline | Property | |
| positions | Property | |
| qids | Property | Related model objects inheritedFrom: OverlayItemCommon.qids |
| role | Property | inheritedFrom: OverlayItemCommon.role |
| storey | Property | inheritedFrom: OverlayItemCommon.storey |
| style | Property | |
| tooltip | Property | inheritedFrom: OverlayItemCommon.tooltip |
| type | Property | overwrites: OverlayItemCommon.type |
| views | Property | inheritedFrom: OverlayItemCommon.views |
anchor#
anchor: [number, number, number]bounds#
bounds: { max: (number)[]; min: (number)[] }color#
color?: string"#rrggbb" or "#rrggbbaa", overrides the role colour
inheritedFrom: OverlayItemCommon.color
depth#
depth?: "always" | "test" | "ghost""ghost" draws as "test" until the ghost pass arrives
inheritedFrom: OverlayItemCommon.depth
hoverHighlight#
hoverHighlight?: booleanfalse: hovering does not lighten or tooltip the whole mesh (its parts are different things)
id#
id: stringUnique within the overlay
inheritedFrom: OverlayItemCommon.id
indices#
indices: Uint32Arraylabel#
label?: stringinheritedFrom: OverlayItemCommon.label
labelShow#
labelShow?: "always" | "hover""hover": the label only while the item or one of its qids is hovered; default "always"
inheritedFrom: OverlayItemCommon.labelShow
normals#
normals: Float32Arrayoutline#
outline?: { indices: Uint32Array; normals: Float32Array; positions: Float32Array }positions#
positions: Float32Arrayqids#
qids?: (string)[]Related model objects
inheritedFrom: OverlayItemCommon.qids
role#
role?: OverlayRoleinheritedFrom: OverlayItemCommon.role
storey#
storey?: stringinheritedFrom: OverlayItemCommon.storey
style#
style?: { fill?: number; outline?: boolean }tooltip#
tooltip?: stringinheritedFrom: OverlayItemCommon.tooltip
type#
type: "mesh"overwrites: OverlayItemCommon.type
views#
views?: ("2d" | "3d")[]inheritedFrom: OverlayItemCommon.views