Skip to main content

Interface: ScatterOnEllipsoidOptions

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

Options for scatterOnEllipsoid.

Extends​

Properties​

center?​

optional center: Vector3Tuple

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

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

Keep only points that pass this test (e.g. skip a cut-away region).

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


radii?​

optional radii: number | Vector3Tuple

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

Semi-axes [a, b, c], or one radius for a sphere. Default: 1


seed?​

optional seed: number

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

Seed. Default: 1

Inherited from​

ScatterOptions.seed