Text this: Optimizing the shape of mechanical elements and structures