duDumpHeightfield function