Skip to main content

FaceAnnotation

class FaceAnnotation extends Annotation

Annotation that tracks position of mesh face(triangle)

constructor​

new FaceAnnotation(view3D, )
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
view3DView3D
Partial<FaceAnnotationOptions>✔️{}

Properties​

position​

readonlyinherited

3D position of the annotation

Type: THREE.Vector3

element​

readonlyinherited

Element of the annotation

Type: HTMLElement

renderable​

readonlyinherited

Whether this annotation is renderable in the screen

Type: boolean

focusPose​

readonlyinherited

An array of values in order of [yaw, pitch, zoom]

Type: Array<number>

focusDuration​

inherited

Duration of the focus animation

Type: number

baseFov​

inherited

Base fov value that annotation is referencing

Type: number

baseDistance​

inherited

Base dsitance value that annotation is referencing

Type: number | null

aspect​

inherited

Base aspect value that annotation is referencing

Type: number

hidden​

readonlyinherited

Whether the annotation is hidden and not rendered

Type: boolean

Methods​

focus​

inherited

Focus camera to this annotation
This will add a class selected to this annotation element.

unfocus​

inherited

Unfocus camera.
This will remove a class selected to this annotation element.
To reset camera to the original position, use Camera#reset

toJSON​

inherited

Serialize anntation data to JSON format.

destroy​

inherited

Destroy annotation and release all resources.

resize​

inherited

Resize annotation to the current size

render​

inherited

Render annotation element

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
paramsobject

show​

inherited

Show annotation.
A class "hidden" will be removed from the annotation element.

hide​

inherited

Hide annotation and prevent it from being rendered.
A class "hidden" will be added to the annotation element.

setOpacity​

inherited

Set opacity of the annotation
Opacity is automatically controlled with annotationBreakpoints

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
opacitynumberOpacity to apply, number between 0 and 1

enableEvents​

inherited

Add browser event handlers

disableEvents​

inherited

Remove browser event handlers