If you are using gradient mesh in Adobe Illustrator, and need a compound path, you may be into troubles. One workaround is to use layer mask to define what to show or hide on a given layer.
Start by drawing the shape you are going to modify as a shape
