Skip to content

Commit

Permalink
VisualizationMesh material numbering (#38)
Browse files Browse the repository at this point in the history
* Changed material numbering in lsVisusalizationMesh to always have lowest material at 0.
  • Loading branch information
XaverKlemenschits authored Mar 19, 2021
1 parent f58b429 commit c4b55af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/lsWriteVisualizationMesh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ template <class T, int D> 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);
Expand Down

0 comments on commit c4b55af

Please sign in to comment.