Skip to content
Snippets Groups Projects
Commit 43e82249 authored by Karsten Rink's avatar Karsten Rink
Browse files

fixed index error for matgroup in 3d geometry

parent cc22a165
No related branches found
No related tags found
No related merge requests found
......@@ -151,12 +151,12 @@ void LayeredVolume::addLayerBoundaries(const MeshLib::Mesh &layer, std::size_t n
if (MathLib::Vector3(*n1, *n2).getLength() > std::numeric_limits<double>::epsilon())
{
const std::array<MeshLib::Node*,3> tri_nodes = { n0, n1, n2 };
_elements.push_back(new MeshLib::Tri(tri_nodes, nLayers+j));
_elements.push_back(new MeshLib::Tri(tri_nodes, nLayers+1+j));
}
if (MathLib::Vector3(*n0, *n3).getLength() > std::numeric_limits<double>::epsilon())
{
const std::array<MeshLib::Node*,3> tri_nodes = { n0, n2, n3 };
_elements.push_back(new MeshLib::Tri(tri_nodes, nLayers+j));
_elements.push_back(new MeshLib::Tri(tri_nodes, nLayers+1+j));
}
}
}
......
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