BlueQuartzSoftware / BlueQuartzSoftware/DREAM3D

FindShapes has NaN axis Euler angle in specific cases

Open
#971 4 comments 0 reactions 3 assignees Claimed by @mgroeber View on GitHub
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:
[
![failed_grain](https://user-images.githubusercontent.com/55297120/111005490-29606800-8348-11eb-9809-4d9dad369af6.PNG)
](url)

I'm not sure what the true root cause of this is, though.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.