Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

topology

What a mesh is connected to: edges, boundaries, islands, adjacency, and conversion between element classes.

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

Ops

  • topology.edges — Derive a Geometry's unique edge set with face adjacency → the edge attribute class (points / faces / faceCount / length) plus the edge table
  • topology.boundary — Find the open boundary of a surface — the edges exactly one face borders → a 0/1 group on the edge and point classes, plus the ordered boundary loops
  • topology.islands — Label a Geometry's connected components → a per-primitive island id (and the lowest island id per point)
  • topology.adjacency — Answer a neighbour relation over a Geometry — the faces / points / edges around a point, the faces across an edge, the faces across a face → a CSR neighbour table (offsets into values, 0-based starts) plus a per-e...
  • topology.convert — Convert a component group between classes — points to the faces that use them, faces to their points, edges to their points, and back