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()
Asked: 4 years ago
Seen: 394 times
Last updated: Jun 27 '20