rsagl-0.4.0.2: The RogueStar Animation and Graphics Library

Safe HaskellSafe-Infered

RSAGL.Modeling.ModelingExtras

Synopsis

Documentation

heightField :: Monoid attr => (RSdouble, RSdouble) -> (RSdouble, RSdouble) -> ((RSdouble, RSdouble) -> RSdouble) -> Modeling attrSource

A rectangular height field rising off of the x-z plane.

heightDisc :: Monoid attr => (RSdouble, RSdouble) -> RSdouble -> ((RSdouble, RSdouble) -> RSdouble) -> Modeling attrSource

A circular height field rising off of the x-z plane.

heightMap :: ((RSdouble, RSdouble) -> RSdouble) -> Modeling attrSource

Raises or lowers each point in a model along the y-axis according to its (x,z) coordinate. Typically this is used to construct height fields.

disregardSurfaceNormals :: Modeling attrSource

For models where we are certain surface normals don't matter, then don't calculate them.

dropRandomElements :: Int -> StdGen -> [a] -> [a]Source