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

Pyvista subplot with VRML #4475

Open
SimonRit opened this issue May 30, 2023 · 2 comments
Open

Pyvista subplot with VRML #4475

SimonRit opened this issue May 30, 2023 · 2 comments
Labels
bug Uh-oh! Something isn't working as expected.

Comments

@SimonRit
Copy link

Describe the bug, what's wrong, and what you expected.

I am trying to use Pyvista to plot two VRML files next to each other using Pyvista’s subplot. However, the two files are overlaid on each other in the first subplot, as shown with the teapot and sextant files.

Steps to reproduce the bug.

import pyvista as pv
from pyvista import examples

pl = pv.Plotter(shape=(1, 2))
sextant_file = examples.vrml.download_sextant()
pl.import_vrml(sextant_file)
pl.subplot(0, 1)
teapot_file = examples.vrml.download_teapot()
pl.import_vrml(teapot_file)
pl.show()

System Information

--------------------------------------------------------------------------------
  Date: Tue May 30 18:08:50 2023 CEST

                OS : Linux
            CPU(s) : 12
           Machine : x86_64
      Architecture : 64bit
       Environment : IPython
        GPU Vendor : Intel Open Source Technology Center
      GPU Renderer : Mesa DRI Intel(R) HD Graphics (Coffeelake 3x8 GT2)
       GPU Version : 4.6 (Core Profile) Mesa 19.3.4
  MathText Support : False

  Python 3.8.8 (default, Apr 13 2021, 19:58:26)  [GCC 7.3.0]

           pyvista : 0.39.1
               vtk : 9.2.6
             numpy : 1.20.1
        matplotlib : 3.4.1
            scooby : 0.7.2
             pooch : v1.7.0
           imageio : 2.9.0
           IPython : 7.23.1
          colorcet : 1.0.0
        ipywidgets : 7.6.3
             scipy : 1.6.3
              tqdm : 4.61.0
            meshio : 5.3.4
             trame : 2.5.0
      trame_client : 2.8.0
      trame_server : 2.11.2
         trame_vtk : 2.4.4
      nest_asyncio : 1.5.1
--------------------------------------------------------------------------------

Screenshots

screenshot

@SimonRit SimonRit added the bug Uh-oh! Something isn't working as expected. label May 30, 2023
@banesullivan
Copy link
Member

It looks like there is a missing feature in vtkVRMLImporter that is preventing us from using anything but the first renderer on the render window.

importer.SetRenderWindow(self.render_window)

@banesullivan
Copy link
Member

I think we have the same issue with most/all "import_*" methods on the Plotter

SimonRit pushed a commit to jmletang/TP-Rayons-X-GBM that referenced this issue May 30, 2023
SimonRit pushed a commit to jmletang/TP-Rayons-X-GBM that referenced this issue May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Uh-oh! Something isn't working as expected.
Projects
None yet
Development

No branches or pull requests

2 participants