Comment on Hilariously fast volume computation with the divergence theorem (2018)parentComments−uecker15dI really hope nobody computes the volume by rendering in 3D and counting pixels.−chrisjj14dRendering in 2D and summing per-pixel Z-spans. For a finely meshed shape and approx. result, it has by far the lowest cost.−uecker14dYes, this makes more sense as you at least collapse the third dimensions, but I would assume this formula is still faster when implemented efficiently.
Comments
I really hope nobody computes the volume by rendering in 3D and counting pixels.
Rendering in 2D and summing per-pixel Z-spans. For a finely meshed shape and approx. result, it has by far the lowest cost.
Yes, this makes more sense as you at least collapse the third dimensions, but I would assume this formula is still faster when implemented efficiently.