Optimizing Line and Surface Layout Design