Interface: ScatterInVolumeOptions
Defined in: src/mobjects/three-d/scatter.ts:57
Options for scatterInVolume.
Extends
Properties
center?
optionalcenter: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
filter()?
optionalfilter: (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
Returns
boolean
maxAttempts?
optionalmaxAttempts:number
Defined in: src/mobjects/three-d/scatter.ts:37
Candidate budget. Default: 30 * count
Inherited from
minDistance?
optionalminDistance:number
Defined in: src/mobjects/three-d/scatter.ts:35
Minimum distance between two points. Default: 0 (no limit)
Inherited from
seed?
optionalseed:number
Defined in: src/mobjects/three-d/scatter.ts:33
Seed. Default: 1
Inherited from
shape?
optionalshape:"box"|"ellipsoid"
Defined in: src/mobjects/three-d/scatter.ts:63
Default: 'box'
size?
optionalsize: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]