Heightmap to solid mesh utility?

Is anyone aware of a tool that converts a heightmap into a solid mesh (e.g. 3DS or even egg format)? Or any tips on how to achieve this with Panda3D code?