Reference·JavaScript · @bimworks/viewer3dJavaScript

SelectedVertex

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface SelectedVertex

A point clicked in Viewer3d.selectVertex

Members#

Member Kind Description
edge Property The edge the point was snapped onto, in the frame of local, or null
local Property The point in the model's millimetres as the viewer shows it, the version's alignment applied
position Property The point in viewer coordinates, the frame of Annotation.position and Viewer3d.pick
versionUuid Property The version of the model the point is on; null for a point on the reference grid
withoutAlignment Property The point in the model's own millimetres, before the version's alignment: the input of Geometry3d.calculateAlignment. Exact for a version without an alignment

edge#

TypeScript#
edge: { a: vec3; b: vec3 } | null

The edge the point was snapped onto, in the frame of local, or null

local#

TypeScript#
local: vec3

The point in the model's millimetres as the viewer shows it, the version's alignment applied

position#

TypeScript#
position: vec3

The point in viewer coordinates, the frame of Annotation.position and Viewer3d.pick

versionUuid#

TypeScript#
versionUuid: string | null

The version of the model the point is on; null for a point on the reference grid

withoutAlignment#

TypeScript#
withoutAlignment: vec3

The point in the model's own millimetres, before the version's alignment: the input of Geometry3d.calculateAlignment. Exact for a version without an alignment