3D slope and 3D elevation control