I agree that the distributions from electrostatic repulsion can be very nice.
Here’s another example of that repulsion goal, but also including the ngon mesh/polygon generation based on proximity within the goal.
One issue with Voronoi cells is that even for good distributions of the point sites, the cells often have some rather short edges. Using a different dual of the triangulation such as the barycentric dual (instead of the circumcentric dual, which the Voronoi cells are equivalent to) often gives nicer cell shapes.
repulsion_distribute_surface_mesh.gh (16.0 KB)
As for making custom goals, there isn’t an official reference document as such but the best place to start is to look at the code for the existing goals here, and feel free to ask any questions you run into.
(one other advantage over this sort of point distribution based meshing is that unlike remeshing, you don’t need any mesh to start with, so it can even be used for implicits, like I just showed here
Chair Surface - implicit equation to parametric equation - #2 by DanielPiker)