Material-dependent clipping in 3D view

· 5 · 2647
*

Mark

  • *
  • Posts: 5
    • View Profile
Material-dependent clipping in 3D view
« on: July 12, 2024, 10:40:51 AM »
Hello,
I have multiple materials in a structure and would like to clip them at different values in x direction. In the  3D view I like to see material01 in the foreground , material 01 and 02 in the middle and all materials in the background. Is that possible?

Best regards Mark

*

hilden

  • *****
  • Posts: 9
    • View Profile
Re: Material-dependent clipping in 3D view
« Reply #1 on: July 12, 2024, 03:41:41 PM »
Hi Mark,

right away from the GUI it is currently not possible. But there could be other possibilities.

The Easy Image GeoApp can do a similar thing. There is an option called Split Structure by Materials. This splits the materials into different structures and adds them together again but shifted. This app can be found under GeoApp -> General -> Report & Image ->Easy Image. The parameter options open after clicking Run. For Image Presets select Split Structure by Material. There is also a YouTube tutorial for this feature https://www.youtube.com/watch?v=dVCApDddQPo. The tutorial is done with GeoDict 2020. Thus, the app is located in another place, but the functionality did not change much.

You could use the resulting structure parts and crop them as needed and add them again afterwards with LayerGeo - Add. If you need this often, you can write a GeoPy script for this task.

Best regards,
Janine

*

Mark

  • *
  • Posts: 5
    • View Profile
Re: Material-dependent clipping in 3D view
« Reply #2 on: July 15, 2024, 03:31:58 PM »
Hi Janine,
thanks for your reply. I tested the GeoApp - but it is not exactly what I want.

Is there a possibility to reassign only a part of a material? E.g. material 02 for x < 200 voxels?

Or is it possible to reassign only visible voxels? then I could hide some materials and use the clipping sliders in the structure tab to hide/display the voxels I want to reassign.

Best regards
Mark

*

hilden

  • *****
  • Posts: 9
    • View Profile
Re: Material-dependent clipping in 3D view
« Reply #3 on: July 22, 2024, 06:02:41 PM »
Hi Mark,

reassigning only a part of a material should be possible with GeoPy, but not directly from the GUI. But did you try to crop each material and embed it again, after having them split by the app or an own GeoPy script? Then adding them together with LayerGeo Add, as suggested before? You could even use a table variable to set the cropping values as needed. I think, this is the easiest way for the task at the moment. So maybe step after step:

1. split the structure in it's materials, e.g. for a structure with 2 solid materials, split the structure in two structures, one only containing material 1 and one only containing material 2. This can be done by reassigning the other materials to the pore material and saving the structure afterwards.
2. If for example only material 1 should be clipped, crop the structure only containing material 1 and embed it afterwards with pore material to obtain the same domain size as before.
3. Use the module LayerGeo Add to add the differently cropped materials together.
[ IMAGE NOT SHOWN - GUESTS CANNOT VIEW ATTACHED IMAGES ]

You can script all these steps in a GeoPy script and set a variable of type table, as explained in the GeoPy scripting User Guide on page 46. Then, you can define the cropping values for each material.

Best regards,
Janine

*

Mark

  • *
  • Posts: 5
    • View Profile
Re: Material-dependent clipping in 3D view
« Reply #4 on: July 30, 2024, 10:25:26 AM »
Hi Janine,
Thank you very much for the information. With the method using clipping, embed and LayerGeo I got what I wanted.
Many thanks for your support and best regards
Mark