Ask Your Question
0

Get coordinates of implicit plot.

asked 2020-06-27 10:27:06 -0500

Ammar gravatar image

I'm using the implicit_plot3d() function to draw some surface. My question is if it's possible to extract the x, y, and z coordinates of that surface.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2020-06-27 11:36:48 -0500

Juanjo gravatar image

I understand that you want the vertex coordinates of the triangles used to plot the surface. If this were the case, the following code exemplifies how to get the list of such coordinates:

var("x,y,z")
surf = implicit_plot3d(x^4+y^4+z^4==1,(x,-1,1),(y,-1,1),(z,-1,1))
surf.triangulate()
surf.vertex_list()
edit flag offensive delete link more

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: 2020-06-27 10:27:06 -0500

Seen: 37 times

Last updated: Jun 27