To find the center of gravity of regular and irregular shapes