Re:Shoelace formula
by giornogiovanna on Monday December 03, 2018 @02:30PM
(#18592098)
If you rewrite this method in terms of determinants, then it also has the bonus of generalizing correctly to arbitrarily many dimensions! And it also gives you a nice picture - imagine adding and subtracting simplices with one point at the origin (triangles in 2D, tetrahedra in 3D).
[ Parent
| on HN ]
Came here to ask about 3D. Weird that the article doesn't mention the 3D or n-dimensional case.
Here is my answer to 3D from a long long time ago.
https://stackoverflow.com/questions/1838401/general-formula-...
Another interesting thing about the metrix in that answer. If you invert it, the rows become the coefficients for the plane equations of the faces. You also don't need to fully invert it - IIRC the adjoint is sufficient.
See Tom Duff's solution here: http://iq0.com/notes/normal.html