One of the first tests one needs to implement when generating meshes is a volume test. The main idea like in many other tests is to evaluate the same quantity in two different ways and then compare the results. If everything is correct the results should be close up to some rounding precision error.
When dealing with surface vs volume calculation a familiar method from mutivariable calculus is the Divergence theorem [1] :
[Read More]