Geometry Expressions

Abacus, displayed in Clock Form

Constraints

We explore how constraints work in Geometry Expressions.

To create specific geometry, first create a sketch, without worrying about details. Here we draw a triangle.

Now we add precise details by constraining the lengths of the sides.

Notice the first length does not change the drawing, it simply sets the scale.

Animation: constraining the first side of a sketched triangle, which only sets the scale

When you set the length of the second and third side, the drawing does change.

Animation: constraining the second and third sides, which changes the triangle

You can change the lengths and the drawing will change (including the measured area).

Animation: changing the side lengths, which updates the drawing and the measured area

You can make the lengths symbolic, and the area will be presented as a formula.

Animation: making the side lengths symbolic, so the area is shown as a formula

If you add an angle, the system will tell you that this will be overconstrained. However, you can choose to relax one of the previous constraints and convert it to a measurement.

Animation: adding an angle and relaxing a side length into a measurement

We repeat the process, adding a second angle.

Animation: adding a second angle the same way