Dear Willy,
How DREAM3D-NX stores grain information in the triangle mesh is in the “Face Labels” Array. That array has 2 components which list the pair of Grain Ids (FeatureIds) that the triangle shares. The trick is to figure out a way to extract just those triangles that have a Face Label that has for its component values either “1” and “2” or “2” and “1”.
… goes off and figures this out….
The pipeline I created is attached. Essentially what I did was to use the following:
Multi-Threshold Objects filter:
I use the “Face Labels” component 0 = 131 and component 1 = 170. (in my case, yours will be the smaller of the 2 feature ids that you are interested in)
I also use a “Custom TRUE Value” = 0 and a “Custom False Value” = 1. I do this because I want to remove all triangles that do NOT meet this criteria so I essentially flip the mask while creating the mask.
Remove Flagged Triangles
You then feed the “Triangle Data Container” into this filter with the mask that I just created in the previous filter to generate a brand new Triangle Geometry. I also copy over all the vertex and face data.
Compute GBCD
You then use this reduced Triangle Geometry to compute the GBCD and then generate the GBCD Pole Figures. You could then export the needed GBCD data at this point using any of the “Write” filters.