Adobe Illustrator CS3 – Creating Compound Paths
A compound path is a single path that consists of more than one path. That 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. Compound paths are treated as one entity, and therefore, both paths that make up this compound path take on the attributes of the bottommost path. If your compound path consists of multiple shapes, Illustrator does its best to figure out which paths become hollow and which appear solid.
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 the largest total area is what defines the results.
Illustrator uses one of two methods to decide which paths of a compound shape are hollow and which are solid. The default method is the Non-Zero Winding Fill Rule method; Illustrator can also use another method, the Even-Odd Fill Rule method. You’ll find both of these buttons in the Attributes panel, and you can choose them when a compound path is selected on the artboard. By default, Illustrator uses Non-Zero Winding Fill Rule and makes the bottommost path clockwise and all the other selected paths counterclockwise.
For more on this, refer to the sidebar “Featured Matchup: Non-Zero Winding Fill Rule vs. Even-Odd Fill Rule.”
When you create a compound path and click 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 panel.