public bool ExportInFile(Model3d model, ExportParameters parameters) { var exporter = new FileExporter(); switch (parameters.ModelFormat) { case ModelFormat.OBJ: return(exporter.ObjExport(model, parameters)); case ModelFormat.STL: return(exporter.StlExport(model, parameters)); } return(false); }