Curves
A curve is a body made of edges only: a line in space with no faces and no volume. It renders as a blue line and its edges can be picked like any other edge. A curve does not add material by itself. Other tools use it: a sweep carries a profile along it, a loft follows it as a guide, and a plane can be set square to it at a point.
The curve tools
All of them are in the Curves menu of the toolbar.
| Tool | Menu | What it makes |
|---|---|---|
| Helix | Curves › Helix | A helical curve around an axis or on a cylindrical face: the path of a spring or a thread |
| Intersect | Curves › Intersect | The curve where two sets of faces meet: a section of a body, or the seam between two surfaces |
| Project | Curves › Project | Curves thrown onto faces, along a line or to the closest point: a flat sketch laid onto a curved body |
| Offset | Curves › Offset | A curve beside edges at a constant distance, lying on their faces: a line set back from a rim, or beside a projected curve |
| Bridge | Curves › Bridge | A smooth curve joining two curve ends, meeting each at its position, its direction or its bend: a gap closed between two rails |
| Composite | Curves › Composite | Several curves and edges joined into one curve: an edge of the model, a bridge and a sketch as one sweep path |

helix("z")A coil around the Z axis.

intersect(pipe.sideFaces(), slope)The ellipse where a pipe crosses a sloped face.

project(logo, dome)A flat sketch laid onto a dome.

offset(3, box.endEdges(), { on: box.sideFaces() })A loop 3 below the top rim of a block.

bridge(l1.end(), l2.start())An S joining the end of one line to the start of another.

curve(rim, br, tail)An edge of a block, a bridge and a line as one curve.
Curves are construction geometry
A curve is there to build something else. When a tool uses it, the curve hides: after a sweep along an intersection curve, only the swept solid is drawn. The curve is still in the model: later statements can read its edges, and a dialog that takes curves offers it again, drawn while it is picked.
The tools that read a curve never use it up the way an extrude uses up its sketch. Two sweeps can follow the same helix.
Picking a curve
In a dialog that takes curves, such as the Path slot of the Sweep dialog, a click on any edge of a curve takes that curve, every edge of it. Most curve tools make one curve, such as a helix or a bridge, so the click takes the whole statement.
A statement can also hold several curves: an intersection of two bodies that meet in two places has two, listed in the Shapes panel as Curve 1 and Curve 2. There a click takes only the curve you click. Its chip names the curve and the statement, such as Curve 2 · ic, hovering lights only that curve, and Apply writes it as a selector on the statement's variable, such as ic.edges(edge().open()). To take every curve of the statement, double-click one of them or click the statement's row in the timeline; the Cut row of Split takes it by its row only. The whole statement and one of its curves replace each other in the row, and clicking a curve the row holds takes it back off. An edge of it selected before the dialog opened stands for its curve too.
An edge of a solid is taken as that edge only. Where a curve lies on an edge of a solid, as a composite made of that edge does, the click takes the curve.
The Guides of a Loft name whole statements only: a click on any curve of one takes all its curves. The From edge base of a plane takes one curve of such a statement only when that curve is a single edge, and says so otherwise.
A curve cannot fork
The tools that read a curve refuse one that forks: a sweep path, a loft guide, a rib spine, the source of an offset or a projected curve. A fork is three or more curve ends meeting at one point, as in a T. The message names the point:
sweep path branches at (x, y, z); a curve cannot fork.
Curves that meet without sharing an end are not a fork: a line that ends on the middle of another, a line touching a circle, two curves that cross. Those are separate curves.
Reading a curve in code
Every curve tool returns an object that answers the same accessors:
c.edges() // every edge, in the order the curve runs
c.edges(0) // one edge, by index
c.edges(edge().arc()) // the edges an edge filter keeps
c.start() // the point the (first) curve starts at
c.end() // the point it ends at
An edge of a curve is also where a plane square to it is set up, for a profile to sweep along it:
const profile = sketch(plane(c.edges(0), 'start'), () => {
circle([0, 0], 4);
});
sweep(c, profile);