First time here? Check out the FAQ!

Ask Your Question
0

Get coordinates of implicit plot.

asked 4 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 4 years ago

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()
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: 4 years ago

Seen: 392 times

Last updated: Jun 27 '20