Added a resolution parametr to stl exporter function.