From 800bd4136c6461b0e88f1044dd8b34454c1158d1 Mon Sep 17 00:00:00 2001 From: Karsten Rink <karsten.rink@ufz.de> Date: Wed, 14 May 2014 14:04:18 +0200 Subject: [PATCH] removed unnecessary parameter from tetgen writer --- FileIO/TetGenInterface.cpp | 5 ++--- FileIO/TetGenInterface.h | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/FileIO/TetGenInterface.cpp b/FileIO/TetGenInterface.cpp index 0fe6af93616..5f2d907037e 100644 --- a/FileIO/TetGenInterface.cpp +++ b/FileIO/TetGenInterface.cpp @@ -573,7 +573,7 @@ bool TetGenInterface::writeTetGenSmesh(const std::string &file_name, out << i << " " << (*nodes[i])[0] << " " << (*nodes[i])[1] << " " << (*nodes[i])[2] << "\n"; if (mesh.getDimension() == 2) - write2dElements(out, mesh, attribute_points); + write2dElements(out, mesh); else write3dElements(out, mesh, attribute_points); @@ -596,8 +596,7 @@ bool TetGenInterface::writeTetGenSmesh(const std::string &file_name, } void TetGenInterface::write2dElements(std::ofstream &out, - const MeshLib::Mesh &mesh, - std::vector<MeshLib::Node> &attribute_points) const + const MeshLib::Mesh &mesh) const { // the surfaces header const std::array<unsigned,7> types = MeshInformation::getNumberOfElementTypes(mesh); diff --git a/FileIO/TetGenInterface.h b/FileIO/TetGenInterface.h index 8ed6a9b5e13..9601c3781b6 100644 --- a/FileIO/TetGenInterface.h +++ b/FileIO/TetGenInterface.h @@ -181,12 +181,10 @@ private: * Writes the elements from a 2D mesh to a TetGen smesh-file. * @param out the output stream the information is written to. * @param mesh mesh containing the subsurface boundary representation used for meshing. - * @param attribute_points attribute points containing material IDs (if the vector is empty no attributes are written). * @return returns true on success and false otherwise. */ void write2dElements(std::ofstream &out, - const MeshLib::Mesh &mesh, - std::vector<MeshLib::Node> &attribute_points) const; + const MeshLib::Mesh &mesh) const; /** * Writes the elements from a 3D mesh to a TetGen smesh-file. -- GitLab