From c4b55af3a9569014b2e054354d5c25aa3eb06b1f Mon Sep 17 00:00:00 2001 From: Xaver K Date: Fri, 19 Mar 2021 15:02:52 +0100 Subject: [PATCH] VisualizationMesh material numbering (#38) * Changed material numbering in lsVisusalizationMesh to always have lowest material at 0. --- include/lsWriteVisualizationMesh.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lsWriteVisualizationMesh.hpp b/include/lsWriteVisualizationMesh.hpp index 95828f0e..0378300a 100644 --- a/include/lsWriteVisualizationMesh.hpp +++ b/include/lsWriteVisualizationMesh.hpp @@ -603,7 +603,7 @@ template class lsWriteVisualizationMesh { materialMeshes[materialMeshes.size() - 1 - i]->GetNumberOfCells(); ++j) { materialNumberArray->InsertNextValue( - materialIds[materialMeshes.size() - 1 - i]); + materialIds[i]); } materialMeshes[materialMeshes.size() - 1 - i]->GetCellData()->SetScalars( materialNumberArray);