Selecting the optimal shell and infill parameters