Skip to main content

@novorender/api / PickSampleExt

Interface: PickSampleExt

Defined in: @novorender/src/web_app/view.ts:1656

Extended pick sample information.

Extends

Properties

clippingOutline

readonly clippingOutline: boolean;

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

The picked pixel is part of clipping outline

Inherited from

PickSample.clippingOutline


depth

readonly depth: number;

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

The depth/distance from the view plane.

Inherited from

PickSample.depth


normal

readonly normal: ReadonlyVec3;

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

World space normal of underlying pixel.

Inherited from

PickSample.normal


normalVS

readonly normalVS: ReadonlyVec3;

Defined in: @novorender/src/web_app/view.ts:1658

Sample normal, in view space.


objectId

readonly objectId: number;

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

The object id/index of underlying pixel.

Inherited from

PickSample.objectId


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.

Inherited from

PickSample.pointFactor


position

readonly position: ReadonlyVec3;

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

World space position of underlying pixel.

Inherited from

PickSample.position


sampleType

readonly sampleType: "surface" | "edge" | "corner";

Defined in: @novorender/src/web_app/view.ts:1661

Whether sample lies on an edge, corner or surface.


x

readonly x: number;

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

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

Inherited from

PickSample.x


y

readonly y: number;

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

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

Inherited from

PickSample.y