Skip to content
Snippets Groups Projects
Commit d22438f6 authored by Norihiro Watanabe's avatar Norihiro Watanabe Committed by Dmitri Naumov
Browse files

[A/P/ME] bugfix in swapNodeCoordinateAxes

parent cc8caf78
No related branches found
No related tags found
No related merge requests found
......@@ -25,10 +25,13 @@
static void swapNodeCoordinateAxes(MeshLib::Mesh &mesh, std::array<int, 3> const& new_axes_indices)
{
double new_coords[3] = {};
for (MeshLib::Node* node : mesh.getNodes())
{
for (int i=0; i<3; i++)
(*node)[i] = (*node)[new_axes_indices[i]];
new_coords[i] = (*node)[new_axes_indices[i]];
for (int i=0; i<3; i++)
(*node)[i] = new_coords[i];
}
}
......
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