Hilariously Fast Volume Computation with the Divergence Theorem

from blog On Life and Lisp, | ↗ original
(No, there won’t be jokes.) The following presents a fast algorithm for volume computation of a simple, closed, triangulated 3D mesh. This assumption is a consequence of the divergence theorem. Further extensions may generalise to other meshes as well, although that is presently out of scope. We begin with the definition of volume as the triple...