Get coordinates of implicit plot.
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.
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.
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()
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2020-06-27 17:27:06 +0100
Seen: 352 times
Last updated: Jun 27 '20