How to calculate the volume of a 3D mesh object the surface of which is made up triangles

Reading this paper, it is actually a pretty simple calculation. The trick is to calculate the signed volume of a tetrahedron – based on your triangle and topped off at the origin. The sign of the volume comes from whether your triangle is pointing in the direction of the origin. (The normal of the triangle … Read more

What is the purpose of VOLUME in Dockerfile

A volume is a persistent data stored in /var/lib/docker/volumes/… You can either declare it in a Dockerfile, which means each time a container is started from the image, the volume is created (empty), even if you don’t have any -v option. You can declare it on runtime docker run -v [host-dir:]container-dir. combining the two (VOLUME … Read more