Replies: 1 comment 3 replies
-
save_fig() and view() are the functions for saving screenshots and setting the camera angle. import vtkplotlib as vpl
fig = vpl.figure()
fig.background_opacity = 0 # optional, hide the background in screenshots
vpl.mesh_plot(vpl.data.get_rabbit_stl(), fig=fig)
vpl.view(focal_point=[0, 0, 0], camera_position=[-1, -1, 0], fig=fig)
fig.reset_camera()
vpl.save_fig("screenshot.png", pixels=(1000, 1000), fig=fig)
vpl.close() How you go about choosing the parameters for |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi and thank you for your great codes!
Can you tell me how can I save the rendered stl data into image files and set the camera position with some example codes?
Thankyou 😃
Beta Was this translation helpful? Give feedback.
All reactions