Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

proc.ops.curves

Curves as geometry: lines, circles, beziers, a curve through given points, and curves smoothed or resampled. A curve is a primitive of a Geometry: a run of its points, in order, open or closed. Its points are points like any other, so every point and field op moves them, and a geometry holds any number of curves.

ops(substrate, polyline) returns the family as a map of op id to op def; procPacks/curve.procPack registers it. A graph calls one of its ops as g.op.<id>({ ... }) and a script as proc.ops.<family>.<op>(...); the procgen toolbox's describeNode answers each in full.

Ops: curve.bezier, curve.circle, curve.from_points, curve.line, curve.resample, curve.smooth.

Part of @builtin::systems.procgen.proc; required as @builtin::systems.procgen.proc.ops.curves.