Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

attribute

Reading, writing and moving the per-element columns a mesh carries.

The definitions live in proc.ops.attribute; this pack is what puts them in the op registry, so procgen.searchNodes("", { pack = "attribute" }) lists the family and procgen.describeNode("op.<id>") describes any one of them.

Ops

  • attribute.set — Set a named attribute on a domain class (point/vertex/edge/primitive/detail)
  • attribute.labels — An attribute's values as a per-element field, and the index label names among them — what field.compare reads to keep the points of one name
  • attribute.remove — Remove a named attribute from a domain class
  • attribute.transfer — Transfer a point attribute from a source domain to a target by nearest point, on the device
  • attribute.statistics — Measure a scalar attribute column into a Data table: count, min, max, mean, median, stddev (over the whole population), sum, and percentiles — the nine deciles p10 through p90, each interpolated ...
  • attribute.normalize — Normalize a scalar attribute column to [0,1] by its own min/max or rank → a new column

attribute.capture answers as attribute.set: a graph naming it cooks attribute.set.