Here’s a better one - more like what is shown in the video
livesoap_example_new2.gh (26.6 KB)
It includes an option to turn on volume preservation for CMC surfaces, plastic drag and bending for the boundaries, and a few different starting meshes to choose from.
Note that although the vertices can redistribute, the total number of vertices stays fixed, and also the number of points on each boundary. So while the starting mesh doesn’t need to be a great mesh, the ratio of boundary points to internal points should be reasonable.
Also, the number of boundaries and the genus (number of ‘handles’) of the mesh stay the same. I’m working on an update though that will also allow genus change.
One thing to watch out for - I’ve realised there’s a bug with the grab goal where occasionally it will cause an error if the simulation is reset and the last grabbed point had an index higher than the number of points in the new simulation - if this happens you can work around it by selecting the grab component,and using Ctrl-X,Ctrl-V to cut it then paste it back in, which works to reset its index.
