previous   Reversing a Path's DirectionPath Union   next


Merging Paths

Multiple can be merged into a single using the menu item Transform->Merge Paths. Note that this is not the same as ||. Moves (gaps) will be placed between the last of one path and the first control point of the next path. Once the path has been merged, it can then be edited. If the paths had different styles, the new path will retain the style of the first path (the lowest one in the ). For example, in Figure 8.25(a) there are two paths with different styles. Figure 8.25(b) shows the single path created from merging the two original paths. Since the first path used the even-odd winding rule, the new shape has a hole in it.

   
 mergepatha mergepathb  
 (a) (b)  
Figure 8.25: Merging two paths: (a) the first path has a solid line pattern, a green fill color and even-odd winding rule, and the second path has a dashed line pattern and a yellow fill color; (b) resulting merged path has a solid line pattern, green fill color and even-odd winding rule.

The same applies if one or more of the selected objects is a . For example, in Figure 8.26(a) there are two text-paths. These are merged to form a single text-path shown in Figure 8.26(b). Note that the text from the second is lost. The resulting path is shown in edit mode in Figure 8.26(c) to illustrate the underlying path. A mixture of paths and text-paths can be merged. The resulting object will be a text-path if the first object to be merged is a text-path, otherwise it will be a path.

mergetextpathsa
(a)
mergetextpathsb
(b)
mergetextpathsc
(c)
Figure 8.26: Merging two text-paths: (a) the first path is on the left and the second path is on the right; (b) resulting merged path; (c) resulting merged path in edit mode to illustrate the underlying path.

Paths are merged according to their . For example, in Figure 8.27(a) there are two paths, both with a bar start marker, and an arrow end marker. The path on the right is further back in terms of the stacking order.8.4 Figure 8.27(b) shows the result of merging the two paths--the left hand path has been appended to the right hand path. Figure 8.27(c) shows the same two paths as in Figure 8.27(a) except that now the left path is the . There is no visible difference between Figure 8.27(a) and Figure 8.27(c), but the result of merging the paths in Figure 8.27(c) (see Figure 8.27(d)) is different to Figure 8.27(b)--the right hand path has been appended to the left hand path.

mergepath2a
(a)
mergepath2b
(b)
mergepath2a
(c)
mergepath2d
(d)
Figure 8.27: Paths are merged according to the stacking order: (a) two straight line paths where the path on the right is at the back of the stack; (b) new single path resulting from merging the two paths in (a); (c) same as (a) but the path on the left is at the back of the stack; (d) new single path resulting from merging the two paths in (c).

See also:



Footnotes

...stackingorder.8.4
i.e. it gets painted on the canvas before the other path.

previous   Reversing a Path's DirectionPath Union   next