Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GeometryRestrictionProperties

Hierarchy

Index

Properties

nodes: ITreeNode[]

The nodes to restrict the interaction to.

Type of the restriction

hideable?: boolean

If the restriction should be hidden by geometry in front of it. (default: false)

id?: string

The id of the restriction.

priority?: number

The priority of the restriction.

rotation?: { angle: number; axis: vec3 }

The rotation of the object after the restriction is applied.

Type declaration

  • angle: number
  • axis: vec3
snapToEdges?: boolean

If the restriction should snap to edges. (default: true)

snapToEdgesRadius?: number

The radius in which the restriction should snap to edges. (default: 2.5% of the scene bounding sphere radius in screen space)

snapToFaces?: boolean

If the restriction should snap to faces. (default: true)

snapToVertices?: boolean

If the restriction should snap to vertices. (default: true)

snapToVerticesRadius?: number

The radius in which the restriction should snap to vertices. (default: 2.5% of the scene bounding sphere radius in screen space)

wireframe?: boolean

If the geometry should be displayed as wireframe.

wireframeColor?: string

The color of the wireframe.