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

Rotating with respect to a fixed axis. #437

Open
jeffreypaul15 opened this issue Jun 8, 2021 · 0 comments
Open

Rotating with respect to a fixed axis. #437

jeffreypaul15 opened this issue Jun 8, 2021 · 0 comments

Comments

@jeffreypaul15
Copy link

Is there a way to rotate an object only about one axis irrespective of the camera position?
For example :
I want to rotate this mesh only with respect to the z axis:

import pyvista
from pyvista import demos
pl = demos.orientation_plotter()
pl.camera.position = (0,3,0)
pl.camera.roll = 30
pl.show()

rotates the camera with respect to the x axis here
image

But

import pyvista
from pyvista import demos
pl = demos.orientation_plotter()
pl.camera.position = (3,0,0)
pl.camera.roll = 30
pl.show()

rotates the camera with respect to the z axis.
image

I wanted to know if there was a way to set roll to only rotate about one particular axis?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant