generative modeling for Rhino
Metaballs are contours of a 3D scalar field. As an alternative to the typical marching cubes I am trying a force driven approach.
We can differentiate the function for the scalar field to get the gradient vector field, which can be used to push the particles towards a particular threshold value. The particles also repel each other, causing them to distribute evenly across the implicit surface. The particles are then connected according to proximity, the triangles in this graph are found and a mesh is drawn (Still a few issues with this step).