Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit95280a384c

README.md

curve.circle (procNode)

A closed circular curve in the XZ plane, centered at at: point i of segments stands at angle i / segments * 2 pi around at.

Built from: core.points, attribute.number, curve.from_points.

Inputs

  • at (Vec3). Default { x = 0, y = 0, z = 0 }. The circle's center; the ring stands at this point's height.
  • radius (Float). Default 1. Distance from the center to each point, in the XZ plane.
  • segments (Float). Default 32. At least 3. How many points the ring is built from, spread evenly over the full turn.

Outputs

  • curve: one closed curve of segments points, each carrying P and its number id; the curve's closed is 1.

Example

local ring = g.curve.circle({ at = vector.create(0, 1, 0), radius = 2, segments = 12 })