Creating Compound Paths


A compound path is a single path that is made up of more than one path. Sounds like an oxymoron, no? Think of the letter "O" in the alphabet. It appears to be a large circle with a smaller circle cut out from its center. How is such a shape created with Illustrator? The answer is by drawing two circles and combining them to become a single compound path. You do this by choosing Object > Compound Path > Create. The result is a shape with a hole cut out of the middle (Figure 4.26). Compound paths are treated as one entity and therefore, both paths that make up this compound path take on the attributes of the bottom-most path. If your compound path is made up of multiple shapes, Illustrator does its best to figure out which paths become hollow and which appear solid.

Figure 4.26. An example of a compound path. The hole in the center is actually cut out from the path and objects that appear beneath the compound shape are visible through the hole.


Illustrator uses one of two methods to decide which paths of a compound shape are hollow and which are solid. The default method is called the Non-Zero Winding Fill Rule; Illustrator can also use another method, the Even-Odd Fill Rule. You'll find both of these methods in the Attributes palette and you can choose them when a compound path is selected on the artboard (Figure 4.27). By default, Illustrator uses the Non-Zero Winding Fill Rule and makes the bottom-most path clockwise and all the other selected paths counterclockwise.

Figure 4.27. You can use the Attributes palette to choose one of the two supported compound path methods for determining hollow and solid areas.


When a path reverses direction in a shape such as in a figure eight, it can never be all clockwise or all counterclockwise. In such a case, the direction of the region(s) with largest total area is what defines the results.



When you create a compound path and choose the Non-Zero Winding Fill Rule, you can manually reverse the path direction to control whether a shape is hollow or solid. Use the Direct Selection tool to select the path you need and click the appropriate button in the Attributes palette (Figure 4.28).

Figure 4.28. Using the Attributes palette to manually reverse the direction of a path, you can specify whether a part of a compound path using the Non-Zero Winding Fill Rule is hollow or solid.


For more on this, refer to the sidebar, "Featured Match-Up: Non-Zero Winding Fill Rule vs. Even-Odd Fill Rule," on the next page.






Real World Adobe Illustrator CS2
Real World Adobe Illustrator CS2
ISBN: 0321337026
EAN: 2147483647
Year: 2003
Pages: 147
Authors: Mordy Golding

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net