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
941 stars 232 forks source link

Version requirement #913

Closed KodalAnwesha closed 4 weeks ago

KodalAnwesha commented 4 weeks ago

What is your question? Which version of Pyvista and vtk is required to generate 3D model in GemPy?

javoha commented 4 weeks ago

Hello, did you face any problems with the most recent versions (vtk=9.3.0, pyvista=0.43,10)? It works for me with the setup we discussed in #912. Cheers Jan

KodalAnwesha commented 4 weeks ago

Hi, I guess it is working, because there is no error showing. But the PyVista window is not opening. Thanks

KodalAnwesha commented 4 weeks ago

Hi, Could you please help me out. The 3D models are not generating. Only the 2D sections are visible.

KodalAnwesha commented 4 weeks ago

I have used this code in different cell still the pyvista window is not opening.

gpv.plot_3d(geo_model, kwargs_plot_structured_grid={'opacity': .2})

Leguark commented 4 weeks ago

Is PyVista otherwise working? Can you try to plot a sphere?

miguel@DESKTOP-L0T7RJ5:~$ source .virtualenvs/gempy_2024.2.0/bin/activate
(gempy_2024.2.0) miguel@DESKTOP-L0T7RJ5:~$ python
Python 3.11.9 (main, Apr  6 2024, 17:59:24) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyvista
>>> pyvista.Sphere().plot()
KodalAnwesha commented 4 weeks ago

Yes, it is working.

KodalAnwesha commented 4 weeks ago

Hi, Could you please help me out regarding the problem I mentioned. As you have said, the pyvista is working otherwise, like plotting the sphere. But it is not working with GemPy. The pyvista window is not coming.

javoha commented 4 weeks ago

What happens if you set image=True in gpv.plot_3d as a keyword?

KodalAnwesha commented 4 weeks ago

Like for example, while running this code, gpv.plot_3d(geo_model, show_surfaces=True, image=True) The 3D model is coming in the jupyter notebook itself, not in the pyvista window. I want it in the pyvista window, so that I can orient the 3D model in my own way. Is it the problem of pyvista or my system?

javoha commented 4 weeks ago

Mmh ok I am not sure why this is not working. Which example are you using? And what IDE are you in? Does not necessarily seem to be a gempy issue to be honest.

Leguark commented 4 weeks ago

Unfortunately, we are unable to reproduce the issue on our end, so we will be closing this issue for now.

To help us assist you more effectively in the future, please follow the reporting guidelines (pasted below). Additionally, please be aware that most GemPy contributors volunteer their time, so responses should not be expected immediate. For professional support options, please refer to the sponsoring section.


Describe the bug A clear and concise description of what the bug is. Include error messages / tracebacks. If useful include screenshots.

To Reproduce Provide detailed steps to reproduce the behavior:

1. 2. 3. ...

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.