gempy-project / gempy

GemPy is an open-source, Python-based 3-D structural geological modeling software, which allows the implicit (i.e. automatic) creation of complex geological models from interface and orientation data. It also offers support for stochastic modeling to address parameter and model uncertainties.
https://gempy.org
European Union Public License 1.2
986 stars 235 forks source link

Lith blocks rotated in comparison to meshes? #908

Closed AlexanderJuestel closed 5 months ago

AlexanderJuestel commented 5 months ago

Describe the bug

When plotting a simple model, I noticed that the meshes are plotted correctly but that the lith blocks are flipped in the Y-axis direction. See screenshot. I will have a look in the source code to see what is going on here :)

gpv.plot_3d(geo_model, show_data=True, image=False, plotter_type='basic')

image

Expected behavior Lith blocks and meshes should have the same orientation.

javoha commented 5 months ago

Hey, interesting - I have not seen this behavior in my models. Can you share the code so I can take a look. Why exactly do you have downward facing orientations?

AlexanderJuestel commented 5 months ago

Good questions :D attached you will find the notebook and the data. You should be able to run it from cell 28 onwards.

Thanks for having a look :)

Data.zip

javoha commented 5 months ago

Ok, so the problem here is your extent. Your extent in x direction goes from high to low. If you just switch those values everything works fine. Not 100% sure where this blows up, but it somehow leads to a weird flip in the model.

AlexanderJuestel commented 5 months ago

That happens when you do copy and paste :D

Fixed the problem :)

image