Reference·JavaScript · @bimworks/viewer3dJavaScript

CameraLinkBridge

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface CameraLinkBridge

Converts points between the measurement frames of two linked viewers (Viewer3d.linkCamera). Points are millimetres; the conversion must be rigid (a move and a turn), as through a model loaded in both: other.modelToMeasurementCoordinates(vid, viewer.measurementToModelCoordinates(vid, point))

Members#

Member Kind Description
fromOther Method A point in the other viewer's measurement frame, in that of the viewer linkCamera was called on
toOther Method A point in the measurement frame of the viewer linkCamera was called on, in the other viewer's

fromOther#

TypeScript#
fromOther(point: vec3): vec3

A point in the other viewer's measurement frame, in that of the viewer linkCamera was called on

Parameters#

Name Type Description
point vec3

toOther#

TypeScript#
toOther(point: vec3): vec3

A point in the measurement frame of the viewer linkCamera was called on, in the other viewer's

Parameters#

Name Type Description
point vec3