Skip to content

Conversation

jerome-blanche
Copy link
Contributor

Add support of pythreejs as a backend of pyvista and support for Python 3.9.

A PyVista VTK wheel exists for Python 3.9: https://github.com/pyvista/pyvista-wheels/blob/main/vtk-osmesa-9.1.0-cp39-cp39-linux_x86_64.whl.
This uses OSMesa and avoids using xvfb, which has been found to be unstable and has lower performance.

When pythreejs is the backend, clearing the plotter deletes too many objects, which ends with 3D models without colors.
Removing only the former actors from the plotter before adding the new ones fixes the issue.

@jerome-blanche jerome-blanche added the enhancement Improve any current implemented feature label Apr 14, 2022
@dnwillia-work dnwillia-work requested a review from mkundu1 April 15, 2022 12:19
Co-authored-by: Mainak Kundu <94432368+mkundu1@users.noreply.github.com>
@dnwillia-work
Copy link
Collaborator

@jerome-blanche I think you just need to rebase this because we switched to the 'src' layout recently

@jerome-blanche jerome-blanche self-assigned this Apr 25, 2022
@jerome-blanche jerome-blanche merged commit bfdb169 into main Apr 25, 2022
@jerome-blanche jerome-blanche deleted the feature/pythreejs branch April 25, 2022 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improve any current implemented feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants