Builtin Library
README.md
curve.resample (procNode)
Lay every curve of a geometry out again as points evenly spaced along it by arc length: a set number per curve, or as many as a spacing fits. The new points carry the attributes of the points they lie between, blended.
The count per curve is count, or at a spacing as many as fit its length (at least 2); the points are laid by arc length with the curve's attributes blended onto them.
Built from: core.resample.curve, attribute.number.
Inputs
curve(Curves). The curves to resample. Each keeps its shape, its open/closed choice and its place among the others.spacing(Float). Default0. At least 0. The distance between neighbouring points. 0 usescountinstead.count(Float). Default16. At least 2. How many points each curve is laid out with whenspacingis 0.
Outputs
curve: the resampled curves, each point numbered asid. The points also carry whatcore.resample.curvewrites on them: the sampling attributes (prim,ia,ib,ic,bary,t,tangent) andsandlength.
Example
local line = g.curve.line({ start = vector.create(0, 0, 0), finish = vector.create(4, 0, 0), segments = 4 })
local even = g.curve.resample({ curve = line, spacing = 0.5 })
Nine points, 0.5 apart along the line.