Fix to element mesh face indices

This commit is contained in:
Ralph Wessel
2024-10-03 17:50:50 +01:00
parent f066b0ee02
commit f5bb3dc454
@@ -118,6 +118,7 @@ Element::Body* Element::getBody() const {
Int32 fpedg = component.pgon.fpedg;
Int32 lpedg = component.pgon.lpedg;
Int32 faceSize = lpedg - fpedg + 1;
faces.push_back(faceSize);
for (Int32 ie = fpedg; ie <= lpedg; ie++)
{
GetComponent(component, API_PedgID, ie);
@@ -138,7 +139,6 @@ Element::Body* Element::getBody() const {
GetComponent(component, API_VertID, vertexIndex);
faces.push_back(faceSize);
if (vertexIndexMap.find(vertexIndex) == vertexIndexMap.end()) {
faces.push_back(currentVertexIndex);
vertexIndexMap[vertexIndex] = currentVertexIndex++;