Skip to content
Snippets Groups Projects
Commit bc2fede9 authored by wenqing's avatar wenqing Committed by Dmitri Naumov
Browse files

[MeshLib/VTK] Corrected the element nodes of 15 node prism

parent f10d8587
No related branches found
No related tags found
No related merge requests found
...@@ -209,24 +209,9 @@ MeshLib::Mesh* VtkMeshConverter::convertUnstructuredGrid( ...@@ -209,24 +209,9 @@ MeshLib::Mesh* VtkMeshConverter::convertUnstructuredGrid(
} }
case VTK_QUADRATIC_WEDGE: case VTK_QUADRATIC_WEDGE:
{ {
auto** prism_nodes = new MeshLib::Node*[15]; elem = detail::createElementWithSameNodeOrder<MeshLib::Prism15>(
for (unsigned j = 0; j < 3; ++j) nodes, node_ids, i);
{
prism_nodes[j] = nodes[node_ids->GetId(j + 3)];
prism_nodes[j + 3] = nodes[node_ids->GetId(j)];
}
for (unsigned j = 0; j < 3; ++j)
{
prism_nodes[6 + j] = nodes[node_ids->GetId(8 - j)];
}
prism_nodes[9] = nodes[node_ids->GetId(12)];
prism_nodes[10] = nodes[node_ids->GetId(14)];
prism_nodes[11] = nodes[node_ids->GetId(13)];
for (unsigned j = 0; j < 3; ++j)
{
prism_nodes[12 + j] = nodes[node_ids->GetId(11 - j)];
}
elem = new MeshLib::Prism15(prism_nodes, i);
break; break;
} }
default: default:
......
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