Builtin Library
README.md
points.from_grid (procNode)
The cell centres of a grid as plain points: the cell layout leaves the detail and each point carries its own number as id. points.box and points.grid end here.
The points come in the grid's cell order, x fastest, then y, then z.
Built from: member writes on the detail and point domains, g.element.id.
Inputs
grid(Grid). The grid whose cell centres become points.
Outputs
points(Points). One point per cell, carryingP, the grid's cell attributes andid.
local centres = g.points.from_grid({ grid = g.grid.box({ size = vector.create(2, 2, 2), cells = vector.create(2, 2, 2) }) })