Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] No texture coordinates when loading the sample traces.shp file from tutorial 12 #316

Closed
CTomsu opened this issue Nov 16, 2023 · 7 comments · Fixed by #317
Closed
Assignees
Labels
bug Something isn't working

Comments

@CTomsu
Copy link

CTomsu commented Nov 16, 2023

When following the tutorial chapter 12 Visualizing Geological Cross Sections with PyVista no texture information is created from the command line

mesh = gg.visualization.create_mesh_from_cross_section(linestring=traces.loc[0].geometry,
zmin=traces.loc[0]['zmin'],
zmax=traces.loc[0]['zmax'])

To Reproduce
Steps to reproduce the behavior:
Following exactly the steps of tutorial 12

This is the outcome of creating the mesh from cross sections.

mesh = gg.visualization.create_mesh_from_cross_section(linestring = traces.loc[0].geometry, zmin=traces.loc[0].zmin, zmax=traces.loc[0].zmax)
mesh
PolyData (0x21749143fa0)
N Cells: 20
N Points: 22
N Strips: 0
X Bounds: 3.239e+07, 3.242e+07
Y Bounds: 5.717e+06, 5.763e+06
Z Bounds: -6.000e+03, 5.000e+02
N Arrays: 0

missing the texture informations printed in the tutorials output.

Subsequently, I cannot apply the tutorials profile image as texture to the mesh.
This is the output of the line

p.add_mesh(mesh, texture=tex)
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\ga93sos\miniconda3\envs\Py311\Lib\site-packages\pyvista\plotting\plotter.py", line 3475, in add_mesh
raise ValueError(
ValueError: Input mesh does not have texture coordinates to support the texture.

I have just installed the actuals gemgis versions with all actual dependencies.

Any idea ??

Copy link

Hello and welcome! Thanks for posting your first issue in the GemGIS project! Someone from our developers will get back to you. If your question is support related, we may transfer it to the Discussions.

@AlexanderJuestel
Copy link
Collaborator

@CTomsu,
Thanks for reporting this, I will have a look at it tomorrow and get back to you as soon as possible!

@AlexanderJuestel
Copy link
Collaborator

@CTomsu I can reproduce your error, I will now investigate and try to fix it. I will get back to you ASAP

@AlexanderJuestel AlexanderJuestel self-assigned this Nov 19, 2023
@AlexanderJuestel AlexanderJuestel added the bug Something isn't working label Nov 19, 2023
@AlexanderJuestel AlexanderJuestel changed the title No texture coordinates when loading the sample traces.shp file from tutorial 12 [BUG] No texture coordinates when loading the sample traces.shp file from tutorial 12 Nov 19, 2023
@AlexanderJuestel
Copy link
Collaborator

@CTomsu I have answered to a discussion here where the same issue has occurred already and hope to get a response for a fix:
pyvista/pyvista#4570

@AlexanderJuestel
Copy link
Collaborator

@CTomsu, the issue was fixed by @banesullivan and the changes will be available for the next patch release (Version 1.1.7).

@CTomsu
Copy link
Author

CTomsu commented Dec 14, 2023 via email

@AlexanderJuestel
Copy link
Collaborator

Hello @CTomsu, I just triggered a new release, GemGIS 1.17 should now be available. Sorry for the delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants