Can I get terrain cartesian coords?

Hi,

I want to get some calculation with terrain so I need terrain cartesian coords.
I mean I need cartesian coords of mesh.

Is there any method for that ?