Plot 3D in Mathematica: Getting Coordinates for Points

1 reply · 2K views · last reply
gaby287
Messages
14
Reaction score
0
I have a 3D Plot in Mathematica and I would like to get coordinates for points (all points) that were plotted.
 
Reap[
Print[Plot3D[x^2 y + y^2 x + 2, {x, -1, 1}, {y, -1, 1}, EvaluationMonitor :> Sow[{x, y, x^2 y + y^2 x + 2}]]]
][[2, 1]]

Note, despite it not being particularly that there is a : followed by > in that.