Math for filling a vessel (mesh) with a fluid

Hiya.
Anyone familiar with the math / algo to fill a vessel with fluids/particles… ie: to detect edges of the inside of a mesh?

Similar to how this guy does it (amazing artist btw!)


1 Like

Perhaps this might give you a starting point
https://doc.babylonjs.com/snippets/innermeshpoints

3 Likes