-
Notifications
You must be signed in to change notification settings - Fork 452
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
parallel projection (2D rendering) #337
Comments
This isn't currently implemented, but we can put it on the todo list! |
@laserman781 - there is actually a pretty simple solution to this which I am about to implement. All you need to do is call import pyvista as pv
from pyvista import examples
mesh = examples.download_st_helens().warp_by_scalar()
p = pv.Plotter(notebook=False)
p.add_mesh(mesh)
p.camera_position = 'xy'
p.camera.SetParallelProjection(True)
p.show() I just implemented some helper methods to make this easier and also be able to toggle it with the p = pv.Plotter(notebook=False)
p.add_mesh(mesh)
p.enable_parallel_projection()
p.show() Or better yet, check out the menus in the p = pv.BackgroundPlotter()
p.add_mesh(mesh)
p.show() |
Also, you might be interested in the import pyvista as pv
from pyvista import examples
# This is a 2D image on the XY plane
mesh = examples.download_st_helens()
p = pv.Plotter(notebook=False)
p.add_mesh(mesh)
p.enable_parallel_projection()
p.enable_image_style()
p.view_xy()
p.show() |
Can I view the 2D plane as a parallel projection? I know this can be done in paraview so I assume it can also be done in pyvista.
The text was updated successfully, but these errors were encountered: