Builtin Library
README.md
topology.participation (procNode)
The faces a group selects, as a 0/1 column over the primitives: all of them when no group is named. A group on another
class selects the faces every one of whose elements is in it (promote = "all") or at least one is ("any"). The
selection every topology node restricts its answer by.
Inputs
geometry(Geometry): the geometry carrying the group.group(String, default""): names a 0/1 attribute onclassrestricting which faces take part; empty, the whole mesh takes part. A name the class does not carry is refused.class(String, default"primitive"): the classgrouplives on:"edge","point","primitive"or"vertex".promote(String, default"all"): how a group on a class other than"primitive"becomes a face set:"all"takes the faces every one of whose elements of that class is in the group,"any"the faces at least one is.
An element is in the group when its value is above 0.5.
Outputs
mask(Field<Float>): 1 for each face that takes part, 0 for the rest, one value per primitive.
Example
local box = g.mesh.box({})
box.point.up = g.compare(box.point.N.y, "gt", 0.5)
local taking = g.topology.participation({ geometry = box, group = "up", class = "point" })