Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit95280a384c

README.md

points.box (procNode)

A 3D lattice of points filling a box centred on the origin. Each count is at least 1, and the box the cells fill is the counts times spacing (value.math), so the points span (count - 1) times spacing on each axis. grid.box lays out the cells, x fastest, then y, then z, on the device, and each cell's centre is one point. attribute.remove takes the cell layout off the detail so the lattice reads as Points, and each point carries its own number as id.

Inputs

  • countX (Int, default 3): how many points along X. The lattice holds countX x countY x countZ points and stays centred on the origin on every axis. Below 1 reads as 1.
  • countY (Int, default 3): how many points along Y, the layers the lattice is stacked in. 1 collapses it to a single flat sheet at y = 0. Below 1 reads as 1.
  • countZ (Int, default 3): how many points along Z. Below 1 reads as 1.
  • spacing (Float, default 1.0): distance between neighbouring points, the same on all three axes. The lattice spans (count - 1) x spacing per axis.

Outputs

  • points: the lattice, with id numbering each point.

Which graph calls it

This node is built with proc.graph and g:node, and a proc.graph graph calls it as g:node("<id>", "points.box", ...). A graph built with proc.define calls g.points.box in its place, the node written in the call form; g.op.points.box there is refused, naming it.