First time here? Check out the FAQ!

Ask Your Question
1

plot_vector_field3d and three.js viewer

asked 6 years ago

jepstra gravatar image

I guess there might be some mistake in my code, but I cannot use plot_vector_field3d and show the result with three.js viewer. The code is

var('x y z')
f = (x, y, z)
show(plot_vector_field3d(f, (x,-3,3), (y,-3,3), (z,-3,3), aspect_ratio=1), viewer='threejs')

and it only shows an empty box. How to explain this behaviour?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 6 years ago

eric_g gravatar image

updated 6 years ago

Unfortunately the plot of vector fields with threejs is not implemented yet. This is one of the reasons why threejsis not the default 3d viewer in Sage yet, see the "con" section of https://trac.sagemath.org/ticket/22408.

Moreover, the person who started the implementation of threejs in Sage cannot work further on it at the moment. So, if you (or anybody else reading this) feel like to implement vector fields in threejs, you are very welcome. This would be a nice way to contribute to the open-source project SageMath! Please contact me for guidance if required.

Preview: (hide)
link

Comments

Thank you very much for your comment and attention!! I'm afraid I'm not very used to the code inside Sage... but I hope I may contribute to SageMath in the future.

jepstra gravatar imagejepstra ( 6 years ago )
1

Very good! A good starting point is http://doc.sagemath.org/html/en/devel...; see also http://doc.sagemath.org/html/en/thema... for implementing new parents.

eric_g gravatar imageeric_g ( 6 years ago )

@eric_g thank you very much!!

jepstra gravatar imagejepstra ( 6 years ago )

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: 6 years ago

Seen: 707 times

Last updated: Feb 13 '18