I'm modeling a shape that is best described as a partial, hollow torus. Here's what it looks like: https://i.stack.imgur.com/rZopR.png
In my application, the angle can vary from 0 to 85 degrees. I'm writing a program that iterates through this shape and requires the x and y coordinates of the center of gravity for any angle. I don't know where to start deriving this expression. I've tried using this page as a guide: How to find the center of mass of half a torus?
The results I got from that page didn't seem reasonable. The hollow, non-symmetrical aspects of my shape make it distinct from the previous question. Where should I start with this?
(If it's still not clear what I'm helping, this is what I'm after: https://i.stack.imgur.com/r8Ruf.png)

If so can I simply apply the same equation to find the CM of the hollow torus and use composite body equations?
– MattM Jul 19 '16 at 15:06