Sounds like you are looking for topology optimisation
You could look at Ameba, Monolith or tOpos:
https://ameba.xieym.com/
Ameba v1.0.2 Released.
There are several others - I think these ones are not updated any more though:
https://www.grasshopper3d.com/group/millipede