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

Projection type #27

Closed
siegLoesch opened this issue Jun 11, 2019 · 3 comments
Closed

Projection type #27

siegLoesch opened this issue Jun 11, 2019 · 3 comments

Comments

@siegLoesch
Copy link

Hello Marco,

reading the vtkplotter documentation I found:
parallelScale (float),
scaling used for a parallel projection ...

and was wondering how to switch from perspective to parallel projection? For the moment I just get the perspective projection.

Best regards
Siegfried

@marcomusy
Copy link
Owner

@siegLoesch
Hi Siegfried!
you just need to set the flag:

plot(u, infinity=True) # point of view is set at infinity

I agree that the naming is not the best..
Hope that helps
M.

@siegLoesch
Copy link
Author

Hello Marco,
that works perfectly fine. Maybe the naming isn't that good - but your package and your support!
Thank you!
Siegfried

@marcomusy
Copy link
Owner

Update: in the latest release you need to

from vtkplotter import plot, settings

settings.useParallelProjection = True

plot(...)

M.

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

No branches or pull requests

2 participants