Skip to content

Commit

Permalink
[meshlib] renaming functions and vars in RasterDataToMesh
Browse files Browse the repository at this point in the history
  • Loading branch information
rinkk authored and TomFischer committed Jun 10, 2020
1 parent a184a90 commit 75e89e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions MeshLib/MeshEditing/RasterDataToMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace MeshLib
namespace RasterDataToMesh
{

static bool checkMesh2D(MeshLib::Mesh const& mesh)
static bool checkMesh(MeshLib::Mesh const& mesh)
{
if (mesh.getDimension() > 2)
{
Expand Down Expand Up @@ -50,13 +50,13 @@ static double evaluatePixel(double const value, double const no_data,
{
return replacement;
}
return value;
return value;
}

bool projectToNodes(MeshLib::Mesh& mesh, GeoLib::Raster const& raster,
double const def, std::string const& array_name)
{
if (!checkMesh2D(mesh))
if (!checkMesh(mesh))
{
return false;
}
Expand All @@ -78,7 +78,7 @@ bool projectToNodes(MeshLib::Mesh& mesh, GeoLib::Raster const& raster,
bool projectToElements(MeshLib::Mesh& mesh, GeoLib::Raster const& raster,
double const def, std::string const& array_name)
{
if (!checkMesh2D(mesh))
if (!checkMesh(mesh))
{
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions MeshLib/MeshEditing/RasterDataToMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ namespace MeshLib
namespace RasterDataToMesh
{
bool projectToNodes(MeshLib::Mesh& mesh, GeoLib::Raster const& raster,
double const default, std::string const& array_name);
double const def, std::string const& array_name);

bool projectToElements(MeshLib::Mesh& mesh, GeoLib::Raster const& raster,
double const default, std::string const& array_name);
double const def, std::string const& array_name);
} // end namespace RasterDataToMesh
} // end namespace MeshLib

0 comments on commit 75e89e9

Please sign in to comment.