This demo finds the moment of inertia for a three-dimensional region .

The graph shown displays the region, coloring each point based on its distance squared from the axis of rotation. The closer a point mass is to the axis of rotation, the less it adds to the moment of inertia.