Taking the sum of the average value of the weight/volume times the distance times the volume segment divided by the weight will produce the center of gravity.
How Do You Find the Center of Gravity?
Finding the center of gravity (CG) is an important concept in physics and engineering, as it helps us to understand the way objects move and interact with their environment. The center of gravity is the point at which the weight of an object is evenly distributed, allowing it to remain balanced and in equilibrium.
The CG is determined by the total mass of the object, its shape, and the distribution of its mass. In other words, it is the point around which the mass of an object is balanced.