From e4f1c6955a7cf66897b2d41e11b25666c67eadce Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Fri, 22 Jan 2016 11:43:23 +0100 Subject: [PATCH] [A/U/ME] AddTopLayer: Use FileIO::writeMeshToFile(). --- Applications/Utils/MeshEdit/AddTopLayer.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Applications/Utils/MeshEdit/AddTopLayer.cpp b/Applications/Utils/MeshEdit/AddTopLayer.cpp index abc47c3d8bc..b710dd100f5 100644 --- a/Applications/Utils/MeshEdit/AddTopLayer.cpp +++ b/Applications/Utils/MeshEdit/AddTopLayer.cpp @@ -18,15 +18,12 @@ #include "BaseLib/FileTools.h" -// FileIO #include "FileIO/readMeshFromFile.h" -#include "FileIO/VtkIO/VtuInterface.h" +#include "FileIO/writeMeshToFile.h" -// MeshLib #include "MeshLib/Mesh.h" #include "MeshLib/MeshEditing/AddLayerToMesh.h" - int main (int argc, char* argv[]) { ApplicationsLib::LogogSetup logog_setup; @@ -69,8 +66,7 @@ int main (int argc, char* argv[]) } INFO("Writing mesh \"%s\" ... ", mesh_out_arg.getValue().c_str()); - FileIO::VtuInterface mesh_io(result.get(), vtkXMLWriter::Binary); - mesh_io.writeToFile(mesh_out_arg.getValue()); + FileIO::writeMeshToFile(*result, mesh_out_arg.getValue()); INFO("done."); return EXIT_SUCCESS; -- GitLab