Calculate the CoG


The center of gravity of a composite body is always the average of all its individual centers of mass, weighted by their respective masses.

xS=Σ(xi·Ai)Ages
and analog for y:
yS=Σ(yi·Ai)Ages

Exceptions


Cutouts are treated like regular bodies in the calculation. However, they act negatively, meaning their components are subtracted in the formula.

The centroid of a triangle is located one third of its length from the thick end. This applies to both sides, of course.