I want to calculate the cavity volume on the inside of an 3D object. The object is modeled as a triangular mesh and is hollow. A good example for what I want to calculate is the volume of a ventricular cavity for a human heart.
I have looked at calculating the volume of a mesh according to the answer and paper from this thread; however, it seems to be only calculating the volume of the mesh. Depending on how my model is created the hollow/cavity of the model would not be calculated from this method. For example if my model is layered with an inner and outer surface, as seen in the image, would I be able to calculate the volume in red? I have thought of trying to find just the outer volume(World Space Volume) and subtracting the mesh volume from it to get the cavity volume, but have so far been unsuccessful.
Maybe I am misunderstanding the paper and previous thread, but believe this cavity calculation is a separate problem. As well, the method would need to be able to handle overhangs and inner objects that may cause complications. Let me know whether I am thinking about the previous thread/paper incorrectly or if there is an alternate method to look at.