Ask Your Question
0

Change camera position

asked 0 years ago

Miguel403 gravatar image

Hello, there is a way to change camera position in SageMath? I am currently using Polyhedron() function to display figures, I know that exist camera_position and pointview parameters, but when I use them in show() or another function it doesn't work. I don't want to use Zoom, but change the perspective when the visualizer box initialize. If anyone could help me, I would appreciate.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 0 years ago

eric_g gravatar image

As explained here, you should use the keyword argument viewpoint=((x,y,z), angle) in show. For instance:

dodecahedron().show(viewpoint=((5,0,8), 90))
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 0 years ago

Seen: 78 times

Last updated: Feb 07