Skip to main content

Interface: ScatterInVolumeOptions

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

Options for scatterInVolume.

Extends​

Properties​

center?​

optional center: Vector3Tuple

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

Center. Default: [0, 0, 0]


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:65

Keep only points that pass this test (e.g. outside the nucleus).

Parameters​

p​

Vector3Tuple

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


shape?​

optional shape: "box" | "ellipsoid"

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

Default: 'box'


size?​

optional size: Vector3Tuple

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

Size of the box [x, y, z] (the ellipsoid is inscribed in it). Default: [2, 2, 2]