Mechanics of Optimal Structural Design