Depending on what you're doing with these shapes, you may have a vastly easier time if you can wait for 8.1.10 and the piping feature: