About getting miller indices of crystal planes

31 views
Skip to first unread message

Eslam el bakry

unread,
Sep 9, 2025, 4:13:12 PMSep 9
to dream3d-users
Hi
I am currently trying to get the miller indices of planes of a crystal. To get that done I need to:
1- Rotate the coordinates to match that of the crystal. 
I did that by converting the Euler coordinates to a rotation matrix and reinserting the matrix value with the filter "Rotate sample reference frame".
The problem is when I try to do the same thing by converting Euler indices to rotation matrix to rotation vector, and putting the latter into paraview, the sample is rotated in a different direction! DO you have any idea about what that could be?
2- Translate the origin of coordinates to center of mass of a grain. I did use the filter Compute Feature centroids" and then " Apply transformation to geometry" filter. The latter filter seems to red colored and not runnable.  DO you have any idea about what that could be?
I appreciate your patience
(If you know a shorter route to get miller indices of surface planes of a crystalline grain, please let me know) 
I have attached the .H5 file in drop box, link:

Eslam

Michael Jackson

unread,
Sep 12, 2025, 12:00:39 PMSep 12
to Eslam el bakry, dream3d-users
Hello Eslam, 
    To transform the Centroid coordinates, you will need to first create a “Vertex Geometry” using the “Create Geometry” Filter. For the “Vertex List”, select the Centroids array. After you have created the vertex geometry, you can then use the “Apply Transformation to Geometry” filter.

Also, don’t use the “Rotate Sample Reference Frame” for anything other than a 90 or 180 degree rotation around a single axis. Instead use the “Apply Transformation to Geometry” filter which is much more capable. 

When I get back to the office, I will have to look up the equations to transform the Euler Angles into Miller Indices for each of the Laue classes. 

--
Mike Jackson                    mike.j...@bluequartz.net
BlueQuartz Software         www.bluequartz.net
President/Owner               Dayton, Ohio
Principal DREAM.3D Developer


--
You received this message because you are subscribed to the Google Groups "dream3d-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dream3d-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dream3d-users/c8531650-4ff0-423e-b312-6fce104446edn%40googlegroups.com.

Eslam el bakry

unread,
Sep 12, 2025, 6:02:44 PMSep 12
to Michael Jackson, dream3d-users
Thank you for your answer. 
When I created the vertex geometry, and used the created geometry in the “Apply Transformation to Geometry” filter, no coordinates were actually rotated/transferred ! It gave me a warning of "The selected geometry is not an 'Image Geometry'. NO interpolation is performed on the data. The 'Cell Attribute Matrix' DataPath can be empty."

I have also tried “Apply Transformation to Geometry”, using Lab-DCT data as input geometry (In this case the created Geometry arrays were not used). Here, the “Apply Transformation to Geometry” filter worked when choosing either Linear Interpolation or Nearest Neighbour, but I really do not know if that is right ! 
Should I use the vertex Geometry in image Geometry Interpolation/resampling ( That is the only thing that the created geometry can be used in !).

Please let me know your thoughts
Eslam

Michael Jackson

unread,
Sep 15, 2025, 10:37:41 AMSep 15
to Eslam el bakry, dream3d-users
When using any kind of “Node” based geometry, Vertex, Edge, Triangle, Quad, interpolation of the data is not needed. When using an Image Geometry due to the re-gridding nature of the filter, we will need to interpolate new values for the cell data.

In your case, you should be creating a Vertex geometry and then Applying the transformation to that geometry.

The warnings you will receive about interpolation can be ignored if you have selected to transform a node based geometry.

--
Mike Jackson                    mike.j...@bluequartz.net
BlueQuartz Software         www.bluequartz.net
President/Owner               Dayton, Ohio
Principal DREAM.3D Developer

Eslam el bakry

unread,
Sep 16, 2025, 3:05:25 PMSep 16
to dream3d-users
Hi Mike
 I have still a question: I am trying to use "Apply Transformation to geometry" filter, while my DCT data is still image geometry, to rotate the sample. In one of my data sets, the error (code -264) appears which states: CreateArray: Cannot create DataArray 'GrainId'.  Total memory required for DataStructure: '18682893098' Bytes.  Total reported memory: '17179869184' Bytes.
How Can I solve this error? 
Best
Eslam

Michael Jackson

unread,
Sep 17, 2025, 6:21:49 PMSep 17
to Eslam el bakry, dream3d-users
It looks like DREAM3D-NX needs to allocate about 18GB worth of data but your machine only has 16GB installed. Try a different machine with more memory or reduce the data set through either cropping the data set (Crop Geometry (image)) or by resampling the data to a lower resolution (Resample Image Geometry).

--
Mike Jackson                    mike.j...@bluequartz.net
BlueQuartz Software         www.bluequartz.net
President/Owner               Dayton, Ohio
Principal DREAM.3D Developer

Reply all
Reply to author
Forward
0 new messages