Drawing curves

This page describes the drawing shared by all the methods.

Smooth and cusp nodes

Each left click places a node.

  • A smooth node (simple click): the curve goes through it without a break.

  • A cusp node (Ctrl + click): the curve breaks there. It is shown as a square.

Two consecutive cusp nodes are joined by a straight line: hold Ctrl to draw a polyline part, release it to go back to curves.

_images/smooth_progress.png

Smooth nodes: the curve goes through every point.

_images/cusp_nodes.png

Two cusp nodes in the middle: the part between them is straight.

Solid and dotted lines

With a Catmull-Rom spline, the shape of a segment also depends on the next point. This is why:

  • at each click, only the penultimate segment becomes solid: it will not change any more;

  • the last segment and the one following the mouse stay dotted.

A segment ending on a cusp node, or a traced segment, is validated at once: it no longer depends on the next click. The curve principle is detailed in The algorithm: the Catmull-Rom spline.

Correcting and undoing

Key

Action

Backspace

Removes the last node. The cursor goes back to its position so the preview does not jump.

Esc

Discards the whole shape being drawn.

V

Shows or hides the vertices of the drawing.

Ctrl + Z

After validation: undoes the creation or modification (layer undo stack).

A click on the same point as the previous one is refused (message in the message bar).

Geometry validity

While drawing, a green cross shows a geometry problem, for instance a self-intersecting polygon. Correct the drawing before validating.