Heght data generation ported.
(Might have some problems for the moment.)