Skip to main content

Interface: ScatterOnMeshOptions

Defined in: src/mobjects/three-d/scatter.ts:51

Options for scatterOnMesh.

Extends​

Properties​

count​

count: number

Defined in: src/mobjects/three-d/scatter.ts:31

Number of points wanted.

Inherited from​

ScatterOptions.count


filter()?​

optional filter: (p) => boolean

Defined in: src/mobjects/three-d/scatter.ts:53

Keep only points that pass this test.

Parameters​

p​

SurfacePoint

Returns​

boolean


maxAttempts?​

optional maxAttempts: number

Defined in: src/mobjects/three-d/scatter.ts:37

Candidate budget. Default: 30 * count

Inherited from​

ScatterOptions.maxAttempts


minDistance?​

optional minDistance: number

Defined in: src/mobjects/three-d/scatter.ts:35

Minimum distance between two points. Default: 0 (no limit)

Inherited from​

ScatterOptions.minDistance


seed?​

optional seed: number

Defined in: src/mobjects/three-d/scatter.ts:33

Seed. Default: 1

Inherited from​

ScatterOptions.seed