This version of the ShapeDiver viewer is no longer supported.

Please refer to the version 3 documentation here. See also the migration guide from version 2 to version 3 here.

Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

Optional anchorElements

anchorElements: string[]

The IDs of all anchor elements that should be considered. Per default, all anchors are considered.

Optional id

id: string

ID of this element. If this ID already exists, the previous element will be overwritten. If no ID is provided, a unique ID will be returned.

Optional orientation

orientation: { axis?: THREE.Vector3; direction?: THREE.Vector3 }

The orientation that is used to rotate the element.

Type declaration

  • Optional axis?: THREE.Vector3

    The axis of the rotation. Default: [0,0,1]

  • Optional direction?: THREE.Vector3

    The direction on the plane that is created by the axis vector. Default: [0,1,0]

Optional positionEnd

positionEnd: THREE.Vector3

The ending position of the line. Default: [0,0,0]

Optional positionStart

positionStart: THREE.Vector3

The starting position of the line. Default: [0,0,0]

Optional snapRadius

snapRadius: number

The radius in which anchors should snap to this element. Default: 1