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

createHelperObjects?: boolean

Whether to create visual helper objects (grid, axis, etc.) for restrictions. (default: true)

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.

radius?: number

The radius in which the restriction should snap. (default: undefined) Overrides the snapToVerticesRadius and snapToEdgesRadius if defined.

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.

wireframeDepthTest?: boolean

If the wireframe should be rendered with depth test. (default: false)

wireframePointSize?: number

The point size of the wireframe if the geometry contains points. (default: as defined in the viewport settings)