Skip to main content

@novorender/api / PickSample

Interface: PickSample

Defined in: @novorender/src/core3d/context.ts:1690

Pick Sample information

Extended by

Properties

clippingOutline

readonly clippingOutline: boolean;

Defined in: @novorender/src/core3d/context.ts:1706

The picked pixel is part of clipping outline


depth

readonly depth: number;

Defined in: @novorender/src/core3d/context.ts:1704

The depth/distance from the view plane.


normal

readonly normal: ReadonlyVec3;

Defined in: @novorender/src/core3d/context.ts:1698

World space normal of underlying pixel.


objectId

readonly objectId: number;

Defined in: @novorender/src/core3d/context.ts:1700

The object id/index of underlying pixel.


pointFactor?

readonly optional pointFactor: number;

Defined in: @novorender/src/core3d/context.ts:1702

The value of the currently selected point visualization of the underlying pixel, if any.


position

readonly position: ReadonlyVec3;

Defined in: @novorender/src/core3d/context.ts:1696

World space position of underlying pixel.


x

readonly x: number;

Defined in: @novorender/src/core3d/context.ts:1692

relative x pixel offset (not css pixel) from pick center.


y

readonly y: number;

Defined in: @novorender/src/core3d/context.ts:1694

relative y pixel offset (not css pixel) from pick center.