Tab by tab
Tab by tab: Edit Path
This series goes through the editor one tab at a time and says, button by button, what each one does. After Home, Layout and View, it is the turn of Edit Path, the heart of vector drawing.
A path is a line made of nodes, the points it passes through, and segments, the pieces between them. Edit Path is where you change both. It opens by itself as soon as you pick the Node Edit tool (N), or when you double-click a path with the Select tool.
Reading the nodes
JVector shows what every node does by its shape and colour:
- a magenta square is a corner node;
- a blue circle is a smooth node;
- a purple circle is a symmetrical node;
- a selected node turns yellow.
A selected node also shows its handles, the two levers that bend the segments on either side of it. The red handle shapes the segment coming into the node, the green one the segment going out. Drag a node to move it, and drag a handle to bend the curve.
Convert
To Path - turns a rectangle, an ellipse or a line into a path with real nodes, so you can reshape it freely. Text has its own button for that: Text in the Convert to Path group on the Object tab turns it into curves.
Close - closes an open path with a segment from its last node back to its first, or opens a closed one. It works on the path of the selected node. Shortcut: Shift + C.
Node Type
Select one or more nodes, then choose what kind they should be.
Corner - the two handles move independently, so the path can turn sharply at the node. Shortcut: C.
Smooth - the handles stay on one straight line, so the curve flows through the node without a kink. Each handle keeps its own length. Shortcut: S.
Symm - symmetrical: the handles stay on one line and also have the same length, so the curve is equally round on both sides. Shortcut: Shift + S.
A corner node with no handles that becomes smooth or symmetrical gets a pair of handles along the direction of the path, so there is something to grab right away.
Nodes
Add - click anywhere on a segment and a new node appears exactly there. The curve keeps its shape, and you are back in node editing with the new node selected. Press it again for every node you add. Shortcut: A.
Remove - deletes the selected nodes. The path closes the gap with a single segment. Shortcut: Del.
Path
Join - connects two end nodes into one. Pick both ends of one open path and the path closes; pick an end of two different paths and they become a single path. It is available when exactly two nodes are selected, and both must be end nodes of open paths.
Break - the opposite: splits the selected node in two. A closed path opens at that node, and an open path is cut there into two separate paths. It is available when one node is selected.
Isect - adds nodes exactly where two shapes cross, in both of them, without changing their shapes. Select the two shapes with the Select tool first; rectangles and ellipses become paths on the way. Afterwards the Node Edit tool takes over with the new nodes selected, ready for cutting a shape where another one crosses it.
Segments
These two work on whole paths: every path that has at least one selected node.
Flatten - makes every segment straight and every node a corner. A curved shape becomes a polygon through the same nodes.
Smooth - the opposite: makes every node smooth and gives it handles, so sharp corners turn into flowing curves.
Align Nodes
Align H - puts the selected nodes on one horizontal line, at their average height.
Align V - puts the selected nodes on one vertical line, at their average position from left to right.
Both need at least two selected nodes.
Display
- Show all nodes - a switch. When it is off, only the nodes of the selected object are shown and can be grabbed, so you never catch a node of an object lying underneath. When it is on, the nodes of every object are shown. It works while an object is selected.
Good to know
- Every change on this tab is a single step that Ctrl + Z takes back.
- The shortcuts work as long as you are not typing in a text field.
- Fewer nodes make cleaner paths. Before you add a node, check whether moving a handle does the job, and when a path comes out of a trace or an import with too many nodes, remove the ones that do not change the shape.
Next in the series: the Object tab, with transforming, combining and converting whole objects.