mars-0.1.0.0: Generates mountainous terrain using a random walk algorithm.

Maintainerch.howard@zoho.com
Safe HaskellNone

Graphics.Mars.Ply

Description

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.

Synopsis

Documentation

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.