I would like to cut a 3D solid by several plans, display these plans and calculate the volume between each cutting plan. For exemple, in the picture thereafter, I want to determine the volume between 2 green plans. Does anyone as an idea of how to do this ? I am using openGL but maybe another choice could be more efficient ?
[EDIT]
I finally achieved to display on a browser an stl file, calculate its volume and I can divide it into 2 stl files which represent the 2 different cuttings. I use the same algorithm again to recalculate the cutting's volume.
The hardships now, is to combine the stl files into one and create a small gap between the cuttings. All the cuttings have the same orientation so it should be easier.
If you have some ideas, let me know, Thanks !