Incompressible Fluids

I'm starting to play around with incompressible fluids (fluids that dislike being compressed, such as water as opposed to air).

I'm doing it with particles which mutually push away from each other so that they stay at a mutually constant distance apart (like people in a crowd).

To figure out who each particle's neighbors are, I'm using an implementation of Delaunay Triangulation by Marcus Apel, with his kind permission.

- Ken Perlin

Instructions: Drag your mouse over the applet to insert more points, and watch them quickly spread out.

Source: incompressible.java extends BufferedApplet.java using delaunay.java