Preview Aretu CAD is in development. Names, features, prices and terms on this site are provisional.

User guide

Equation curves

What an equation curve is

An equation curve is a sketch curve drawn from formulas instead of placed points. Each formula gives one coordinate as the curve variable t runs from a Start value to an End value. A circle of radius 10 mm is:

x = 10 mm * cos(t)
y = 10 mm * sin(t)
t from 0 to 360

In a 2D sketch a curve has two equations, and in a 3D sketch three. The letter t is kept for this use, so no parameter can be called t.

Draw one

  1. While editing a sketch, open Shapes > Curves > Equation Curve. The Equation Curve panel opens on the right.
  2. In a 2D sketch choose Cartesian (one equation for each axis) or Polar (a radius r and an angle θ).
  3. Click an equation field, type its formula and press Enter. Tab applies it and moves to the next field; Escape leaves the field as it was.
  4. Type the Start and End values of t.
  5. The curve is previewed, dashed, as soon as every field is valid. Choose Commit to add it, or Cancel.

The status line says what is still needed, or why a formula was refused.

Formulas

A formula uses the same rules as any value in Aretu CAD (Parameters and equations), with t added:

  • Give lengths a unit, as in 10 mm * cos(t). A plain number is read in the document's display unit, and the field then shows that unit.
  • sin, cos and tan take degrees, so a full turn is t from 0 to 360. Write cos(t rad) to give an angle in radians.
  • A formula may name parameters. The curve then follows them: change the parameter and the curve, and everything built on it, is rebuilt.
  • Type name = formula to create a named equation where you are, such as xc = radius * cos(t). It appears in the Parameters panel as a function of t and can be used in other curves. Start and End accept name = value too.
  • Start and End are plain numbers and do not use t. The curve runs from its point at Start to its point at End.

Axes

The panel names the coordinate system the curve is drawn in. In a 3D sketch it is the system the sketch is built on. In a 2D sketch it is the sketch's own frame, unless you choose another coordinate system.

  • On the primary system, or a sketch on one of its planes, the fields are labelled x, y and z in the axes' colours. A sketch on the ZX plane shows x and z.
  • On a secondary coordinate system, one of its planes or a model face, the axes have no names. The panel draws the curve's axes in the workspace. Give each equation its axis: select the equation and click one of those axes, away from the point where they meet, or click the equation's axis box to step to the next axis. The axis of the selected equation is highlighted, and the last free axis is filled in for you.
  • A polar curve measures θ from the first axis towards the second.

Another coordinate system

A curve in a 2D sketch can be drawn in another coordinate system in place of the sketch's own frame: the origin, or a secondary coordinate system made before the sketch. One of the system's planes must be parallel to the sketch.

  1. With the Equation Curve panel open, click the coordinate system's widget in the workspace. The panel names the system.
  2. The curve's origin is the system's origin, projected onto the sketch, and the equations run along the system's two axes that lie in the sketch. The origin's axes show their names; a secondary system's are given to the equations as above.
  3. To go back to the sketch's own frame, click the coordinate system line at the top of the panel.

The curve follows its coordinate system: move the system and the curve moves with it. A system with no plane parallel to the sketch is refused with the reason. If the system is later deleted, the sketch is marked as needing repair; choose Edit equations on the curve, which opens it in the sketch's own frame, and Commit.

Edit one

Open the Zen menu over an equation curve while editing its sketch and choose Edit equations. The panel opens with the curve's formulas; Commit changes the curve and keeps everything attached to it.

How it behaves in a sketch

An equation curve is fixed by its equations.

  • It cannot be dragged, and it has no control points to move.
  • Other geometry can be coincident with the curve or its ends, and tangent to it at a shared end. That geometry moves; the curve does not.
  • It bounds regions and works as an Extrude or Revolve profile, a Sweep path and a Fill boundary like any other sketch curve.
  • It can be construction geometry, and Delete removes it.
  • Trim, Extend, Offset, Mirror and Pattern refuse it. Change its equations or its Start and End instead.

Limits

  • A curve is one smooth piece. A formula with a corner, such as abs(t) across zero, is refused: draw two curves that share an end.
  • A formula must have a value everywhere from Start to End. The refusal names the value of t where it has none.
  • A very long curve, such as hundreds of turns, is refused: shorten its range or draw it as several curves.
  • Another coordinate system can be chosen in a 2D sketch only, and only where one of its planes is parallel to the sketch.
  • A model that holds an equation curve cannot be opened by an earlier release of Aretu CAD.

AI operations

The assistant draws and changes equation curves with set_equation_curve, which does what the panel does, another coordinate system included.