mars- Generates mountainous terrain using a random walk algorithm.
Safe HaskellNone



Provides functions to convert an array of floats into a Surface structure containing vertices and faces, and then into PLY format text, which can be loaded into a modeling program like Blender.



surface :: U.UArray (Int, Int) Float -> Surface A.ArraySource

Converts a 2D array of floats into a sheet of polygons, which can be processed by toPly.

toPly :: Surface A.Array -> StringSource

Converts a Surface data structure, which is a sheet of polygons, into an ascii-format PLY file.