I've been using the command posted some years ago here about how to obtain data points from a 2D-function:
f = Sin[t];
plot = Plot[f, {t, 0, 10}]
points = Cases[
Cases[InputForm[plot], Line[___],
Infinity], {_?NumericQ, _?NumericQ}, Infinity];
And export it to a data file:
Export["data2/name_"<>ToString[N[index]]<>"&"<>ToString[N[a]]<>".dat",points1,"Table","FieldSeparators"->" "];
However, right now I must generalize this command for the 3Dplot case, I've tried to look at the documentation about Cases and List3Dplot commands but unfortunately I have not been able to figure it out. Anyone has a suggestion? I'd appreciate it a lot. Thanks.
Plot3D. (and note the comment I made to that) - agentp