Interface: ToInstancesOptions
Defined in: src/mobjects/three-d/scatter.ts:312
Options for toInstances.
Properties
alignToNormal?
optionalalignToNormal:boolean
Defined in: src/mobjects/three-d/scatter.ts:318
Turn each instance so its local +Y follows the surface normal. Default: true
colors?
optionalcolors:string[]
Defined in: src/mobjects/three-d/scatter.ts:316
Per-instance colors, picked at random. Default: none (material color)
scale?
optionalscale:number| [number,number]
Defined in: src/mobjects/three-d/scatter.ts:314
Uniform scale, or a [min, max] range drawn per instance. Default: 1
seed?
optionalseed:number
Defined in: src/mobjects/three-d/scatter.ts:322
Seed for scale, color and spin. Default: 1
spin?
optionalspin:boolean
Defined in: src/mobjects/three-d/scatter.ts:320
Random spin about the normal (or a random orientation for volume points). Default: true