Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commite8beb5604c

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) and groups, one row per group: name, class, members, elements (how many the class holds), fraction (members over elements) and hasColumn (true).
local some = g.group.by_random({ geometry = g.points.grid({ countX = 2, countZ = 2 }), name = "picked" })
local listed = g.group.list({ geometry = some })