Skip to main content

path3d

Files live in paths/. Used by no component property yet.

A bezier path: points is a run of cubic control points -- an anchor, two handles, the next anchor, and three more for every segment after that -- and closed joins the last segment back to the first anchor. Two points on their own are read as a straight line.

A path2d is flat and a path3d is in space. What fills, extrudes, revolves or sweeps one is a mesh asset naming it; what strokes one is shape2d.

[[assets]]
id = "outline"
type = "path2d"
closed = true
points = [[0, 0], [1, 0], [1, 1], [0, 1], [-1, 1], [-1, 0]]