drillPick

fun drillPick(windowPosition: Cartesian2, limit: Double? = definedExternally, width: Double? = definedExternally, height: Double? = definedExternally): ReadonlyArray<Any>(source)

Returns a list of objects, each containing a primitive property, for all primitives at a particular window coordinate position. Other properties may also be set depending on the type of primitive and may be used to further identify the picked object. The primitives in the list are ordered by their visual order in the scene (front to back).

const pickedObjects = scene.drillPick(new Cartesian2(100.0, 200.0));

Return

Array of objects, each containing 1 picked primitives.

Parameters

windowPosition

Window coordinates to perform picking on.

limit

If supplied, stop drilling after collecting this many picks.

width

Width of the pick rectangle. Default value - 3

height

Height of the pick rectangle. Default value - 3

See also