Skip to content
Snippets Groups Projects
Commit 902b6acf authored by Tom Fischer's avatar Tom Fischer Committed by Dmitri Naumov
Browse files

[MeL/MG/MeshLayerMapper] Rename for better understandibility.

parent 1cfb2af0
No related branches found
No related tags found
No related merge requests found
...@@ -196,13 +196,13 @@ void MeshLayerMapper::addLayerToMesh(const MeshLib::Mesh &dem_mesh, unsigned lay ...@@ -196,13 +196,13 @@ void MeshLayerMapper::addLayerToMesh(const MeshLib::Mesh &dem_mesh, unsigned lay
}; };
std::size_t const nNodes = dem_mesh.getNumberOfNodes(); std::size_t const nNodes = dem_mesh.getNumberOfNodes();
std::vector<MeshLib::Node*> const& nodes = dem_mesh.getNodes(); std::vector<MeshLib::Node*> const& top_nodes = dem_mesh.getNodes();
int const last_layer_node_offset = layer_id * nNodes; int const last_layer_node_offset = layer_id * nNodes;
// add nodes for new layer // add nodes for new layer
for (std::size_t i = 0; i < nNodes; ++i) for (std::size_t i = 0; i < nNodes; ++i)
{ {
_nodes.push_back(getNewLayerNode(*nodes[i], _nodes.push_back(getNewLayerNode(*top_nodes[i],
*_nodes[last_layer_node_offset + i], *_nodes[last_layer_node_offset + i],
raster, _nodes.size())); raster, _nodes.size()));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment