BlueQuartzSoftware / BlueQuartzSoftware/DREAM3D
FindShapes has NaN axis Euler angle in specific cases
- Dominant language
- C++
- Stars
- 189
- Forks
- 78
- PR merge metrics
- No merged PRs in 30d
Description
Occasionally, FindShapes gives a NaN axis Euler angle output. This happens when `uberbelim[elimcount - 1][0]` becomes a NaN value due to `uberelim[elimcount - 1][elimcount - 1]` being zero.
https://github.com/BlueQuartzSoftware/DREAM3D/blob/a3f74d70040840d90dc61761e48c4ff7f19d844e/Source/Plugins/Statistics/StatisticsFilters/FindShapes.cpp#L709
In my case, the NaN values occur when the calculated moments of a specific grain are Ixx=4.5, Iyy=3.5=Izz=3.5, Ixy=Iyz=Ixz=-1, and the resulting `uber` matrix for `j=1` is {{0, -1, -1}, {-1, -1, -1}{-1, -1, -1}}. Here is a picture of this "failed" grain for what is worth:
[

](url)
I'm not sure what the true root cause of this is, though.
Contributor guide
Assessment
This issue has not been assessed yet.