Builtin Library
- ..
- .metadata162 B
- README.md936 B
- find.module
- init.luau1.2 KB
README.md
instances.sources (procNode)
The geometries a population stands, in the order the set was made: the ones given, else the ones the points carry. A set from instances.variants, instances.pick_random or instances.pick_by_attribute lists its sources in its detail's labels.Mesh; a set from instances.on_points carries its one source as every point's Mesh. Points that list none and carry no Mesh record are refused.
Inputs
instances(Points). The population whose sources are read when none are given.sources(List<Geometry>, optional). The sources, when the caller holds them. They are answered as they are.
Outputs
sources(List<Geometry>). The geometries, in the order the set was made.
local set = g.instances.pick_random({ points = g.points.grid({ countX = 2, countZ = 2 }), sources = { g.mesh.box({}), g.mesh.sphere({}) } })
local listed = g.instances.sources({ instances = set })