-
Notifications
You must be signed in to change notification settings - Fork 4
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
clip entire plot at a given elevation with slider #32
Comments
Hi @Quadius - at this time, clipping an entire scene is not implemented and the The errors you are experiencing have to do with the arguments for the Try this in the meantime: p = pv.BackgroundPlotter()
for i in range(0, len(DH)):
p.add_mesh(globals()['segment{}'.format(i)],color='white',)
p.view_yz()
p.show_axes()
clipper = pv.Clip(points, plotter=p, display_params=dict(color='blue',
render_points_as_spheres=True)) |
Also, reference this currently closed issue: pyvista/pyvista#162 |
Sometimes the |
Ah, yes!! You could easily merge these all into one
blocks = pv.MultiBlock
blocks.append(points)
for i in range(0, len(DH)):
blocks.append(globals()['segment{}'.format(i)])
merged = blocks.combine()
merged = points.copy()
for i in range(0, len(DH)):
merged = merged + globals()['segment{}'.format(i)] |
Then if you still want to color the import numpy as np
points['chunk'] = np.zeros(points.n_points)
for i in range(0, len(DH)):
m = globals()['segment{}'.format(i)]
m['chunk'] = np.ones(m.n_points) Then when plotting the merged grid, simply choose a colormap ( |
I have points and lined that are viewed together on a plot using pyvista.plotter and adding a mesh. I am having difficulty
Code:
The text was updated successfully, but these errors were encountered: