Reference·JavaScript · @bimworks/viewer3dJavaScript

WalkableSurfacesSpan

Type alias in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Type alias

TypeScript#
type WalkableSurfacesSpan = {
  decidedBy: Vid | null;
  door: boolean;
  floorZMm: number;
  headroomMm: number;
  label: string;
  model: string;
  obstacleDistanceMm: number | null;
  point: [number, number, number];
  reason: string;
  state: WalkableSurfacesState;
  surface: "flat" | "ramp" | "stair" | "obstacle top" | "too steep";
  unknown: string | null;
  vid: Vid;
};

What a click on one of the view's polygons says about the span under it

Members#

Member Kind Description
decidedBy Property The version whose solid makes the span occupied or unknown, else null
door Property
floorZMm Property The floor's height in the render frame, mm
headroomMm Property
label Property The state in words, for a legend or tooltip
model Property
obstacleDistanceMm Property Distance to the nearest obstacle, mm; null when none is near
point Property The cell's centre on the floor, render frame
reason Property Why: "walkable", "headroom 1.42 m < 1.80 m", "Architecture.ifc has a solid standing here ..."
state Property
surface Property
unknown Property When another model makes the span unknown: what it has there; else null
vid Property The version the span belongs to, and its name

decidedBy#

TypeScript#
decidedBy: Vid | null

The version whose solid makes the span occupied or unknown, else null

door#

TypeScript#
door: boolean

floorZMm#

TypeScript#
floorZMm: number

The floor's height in the render frame, mm

headroomMm#

TypeScript#
headroomMm: number

label#

TypeScript#
label: string

The state in words, for a legend or tooltip

model#

TypeScript#
model: string

obstacleDistanceMm#

TypeScript#
obstacleDistanceMm: number | null

Distance to the nearest obstacle, mm; null when none is near

point#

TypeScript#
point: [number, number, number]

The cell's centre on the floor, render frame

reason#

TypeScript#
reason: string

Why: "walkable", "headroom 1.42 m < 1.80 m", "Architecture.ifc has a solid standing here ..."

state#

TypeScript#
state: WalkableSurfacesState

surface#

TypeScript#
surface: "flat" | "ramp" | "stair" | "obstacle top" | "too steep"

unknown#

TypeScript#
unknown: string | null

When another model makes the span unknown: what it has there; else null

vid#

TypeScript#
vid: Vid

The version the span belongs to, and its name