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

Update visible cell selection #571

Merged
merged 3 commits into from
Feb 3, 2020
Merged

Update visible cell selection #571

merged 3 commits into from
Feb 3, 2020

Conversation

banesullivan
Copy link
Member

@banesullivan banesullivan commented Jan 29, 2020

this provides some updates to fix visible cell selection when multiple meshes are in a scene.

Relevant to #560

Example

import pyvista as pv

centers = [(0, 0, 0), (1, 0, 0), (-1, 0, 0),
           (0, 1, 0), (0, -1, 0)]
radii = [1, 0.5, 0.5, 0.5, 0.5]

spheres = pv.MultiBlock()
for i, c in enumerate(centers):
    spheres.append(pv.Sphere(center=c, radius=radii[i]))

p = pv.Plotter(notebook=False)
p.add_mesh(spheres)
p.enable_cell_picking(through=False)
p.show()

Previous behavior:

2020-01-29 01 52 07

New behavior:

2020-01-29 01 50 59

@banesullivan banesullivan added the enhancement Changes that enhance the library label Jan 29, 2020
@banesullivan banesullivan self-assigned this Jan 29, 2020
@banesullivan banesullivan marked this pull request as ready for review February 3, 2020 04:28
@banesullivan banesullivan merged commit f7f5cd2 into master Feb 3, 2020
@banesullivan banesullivan deleted the patch/picking-visible branch February 6, 2020 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Changes that enhance the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant