Skip to content

Type Alias: PickElementKind ​

ts
type PickElementKind = 'point' | 'instance' | 'vertex' | 'triangle' | 'object';

Experimental

What a hit refers to:

  • point: a data point (2D point source or instanced marker),
  • instance: an instance of a user InstancedMesh,
  • vertex: a mesh vertex (the provoking vertex of the triangle under the cursor),
  • triangle: a triangle of a non-indexed mesh,
  • object: the object as a whole (pointIndex is -1).

Released under the MIT License.