Skip to content

Commit

Permalink
BUG: Fix bug in GenerateMisorientationColors for Cubic/Hex low symmet…
Browse files Browse the repository at this point in the history
…ries.

Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
  • Loading branch information
imikejackson committed Feb 15, 2024
1 parent 02821b7 commit fd81042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UCSBUtilitiesFilters/GenerateMisorientationColors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class GenerateMisorientationColorsImpl
m_MisorientationColor[index + 2] = 0;
cellQuat = Quaternion<double>(m_Quats[i * 4], m_Quats[i * 4 + 1], m_Quats[i * 4 + 2], m_Quats[i * 4 + 3]);

if(m_CrystalStructures[phase] != EbsdLib::CrystalStructure::Cubic_High && m_CrystalStructures[phase] != EbsdLib::CrystalStructure::Hexagonal_High)
if(m_CrystalStructures[phase] == EbsdLib::CrystalStructure::Cubic_Low || m_CrystalStructures[phase] == EbsdLib::CrystalStructure::Hexagonal_Low)
{
uint32_t idx = m_CrystalStructures[phase];
if(idx == EbsdLib::CrystalStructure::UnknownCrystalStructure)
Expand Down

0 comments on commit fd81042

Please sign in to comment.