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#
The version whose solid makes the span occupied or unknown, else null
door#
TypeScript#
door: booleanfloorZMm#
TypeScript#
floorZMm: numberThe floor's height in the render frame, mm
headroomMm#
TypeScript#
headroomMm: numberlabel#
TypeScript#
label: stringThe state in words, for a legend or tooltip
model#
TypeScript#
model: stringobstacleDistanceMm#
TypeScript#
obstacleDistanceMm: number | nullDistance 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: stringWhy: "walkable", "headroom 1.42 m < 1.80 m", "Architecture.ifc has a solid standing here ..."
state#
TypeScript#
state: WalkableSurfacesStatesurface#
TypeScript#
surface: "flat" | "ramp" | "stair" | "obstacle top" | "too steep"unknown#
TypeScript#
unknown: string | nullWhen another model makes the span unknown: what it has there; else null
vid#
The version the span belongs to, and its name