Builtin Library
- ..
- .metadata327 B
- README.md897 B
- init.luau2.0 KB
- list.module
README.md
group.list
Every group the geometry carries, on its edge, point, primitive and vertex classes, as Data: count, and groups, each { name, class, members, elements, fraction } sorted by class then name. A group with zero members is listed as one, which is how an empty selection reads apart from a name that was never made. A class counted on the device (a geometry the device made) is read back once for the listing, as elements.
Inputs
geometry(Geometry). The geometry whose groups are listed.
Outputs
groups(Data).count(how many groups) andgroups, one row per group:name,class,members,elements(how many the class holds),fraction(members over elements) andhasColumn(true).
local some = g.group.by_random({ geometry = g.points.grid({ countX = 2, countZ = 2 }), name = "picked" })
local listed = g.group.list({ geometry = some })