Skip to main content

interface.PickSampleExt

API > PickSampleExt

Interface: PickSampleExt

Extended pick sample information.

Extends

Properties

clippingOutline

readonly clippingOutline: boolean

The picked pixel is part of clipping outline

Inherited from

PickSample.clippingOutline

Source

@novorender/core3d/context.ts:1136


depth

readonly depth: number

The depth/distance from the view plane.

Inherited from

PickSample.depth

Source

@novorender/core3d/context.ts:1134


deviation

deviation?: number

The spatial deviation of underlying pixel, if any.

Remarks

This only applies to point clouds with precomputed deviation data.

Inherited from

PickSample.deviation

Source

@novorender/core3d/context.ts:1132


normal

readonly normal: ReadonlyVec3

World space normal of underlying pixel.

Inherited from

PickSample.normal

Source

@novorender/core3d/context.ts:1126


normalVS

readonly normalVS: ReadonlyVec3

Sample normal, in view space.

Source

@novorender/web_app/view.ts:1108


objectId

readonly objectId: number

The object id/index of underlying pixel.

Inherited from

PickSample.objectId

Source

@novorender/core3d/context.ts:1128


position

readonly position: ReadonlyVec3

World space position of underlying pixel.

Inherited from

PickSample.position

Source

@novorender/core3d/context.ts:1124


sampleType

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

Whether sample lies on an edge, corner or surface.

Source

@novorender/web_app/view.ts:1111


x

readonly x: number

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

Inherited from

PickSample.x

Source

@novorender/core3d/context.ts:1120


y

readonly y: number

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

Inherited from

PickSample.y

Source

@novorender/core3d/context.ts:1122