Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

proc.ops.attribute

The attribute op family. A domain is a spreadsheet: each element (point, vertex, edge, primitive, or the one detail element) is a row and each named attribute a column. These ops set, transfer, normalize, label and remove columns, and report their statistics. Each returns a clone of the domain it is given, so the value it was handed stays as it was. The edge class is one row per unique edge, numbered by the edge list proc.ops.topology derives.

ops(substrate, types) returns the family as a map of op id to op def; procPacks/attribute.procPack registers it. A graph calls one of its ops as g.op.<id>({ ... }) and a script as proc.ops.<family>.<op>(...); the procgen toolbox's describeNode answers each in full.

Ops: attribute.labels, attribute.normalize, attribute.remove, attribute.set, attribute.statistics, attribute.transfer.

Part of @builtin::systems.procgen.proc; required as @builtin::systems.procgen.proc.ops.attribute.