---
title: SelectedVertex
summary: Interface in @bimworks/viewer3d.
order: 10
languages: [javascript]
sdk-package: JavaScript · @bimworks/viewer3d
---

# SelectedVertex

[[page:reference/javascript/api|API catalogue]] · `@bimworks/viewer3d` · Interface

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
interface SelectedVertex
````

A point clicked in `Viewer3d.selectVertex`

## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/javascript/bimworks-viewer3d/selectedvertex-fc80286b#member-edge-88b79f6e0cf1|edge]] | Property | The edge the point was snapped onto, in the frame of local, or null |
| [[page:reference/javascript/bimworks-viewer3d/selectedvertex-fc80286b#member-local-402c49016534|local]] | Property | The point in the model's millimetres as the viewer shows it, the version's alignment applied |
| [[page:reference/javascript/bimworks-viewer3d/selectedvertex-fc80286b#member-position-f4b540e669d3|position]] | Property | The point in viewer coordinates, the frame of Annotation.position and Viewer3d.pick |
| [[page:reference/javascript/bimworks-viewer3d/selectedvertex-fc80286b#member-versionuuid-ccd86d13c9d3|versionUuid]] | Property | The version of the model the point is on; null for a point on the reference grid |
| [[page:reference/javascript/bimworks-viewer3d/selectedvertex-fc80286b#member-withoutalignment-ea9772324a22|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` {#member-edge-88b79f6e0cf1}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
edge: { a: vec3; b: vec3 } | null
````

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

## `local` {#member-local-402c49016534}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
local: vec3
````

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

## `position` {#member-position-f4b540e669d3}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
position: vec3
````

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

## `versionUuid` {#member-versionuuid-ccd86d13c9d3}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
versionUuid: string | null
````

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

## `withoutAlignment` {#member-withoutalignment-ea9772324a22}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
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
