GlomeTrace-0.3: Ray Tracing Library

Safe HaskellSafe-Inferred

Data.Glome.Triangle

Synopsis

Documentation

triangle :: Vec -> Vec -> Vec -> SolidItem t mSource

Create a simple triangle from its 3 corners. The normals are computed automatically.

triangles :: [Vec] -> [SolidItem t m]Source

Create a triangle fan from a list of verticies.

trianglenorm :: Vec -> Vec -> Vec -> Vec -> Vec -> Vec -> SolidItem t mSource

Create a triangle from a list of verticies, and a list of normal vectors (one for each vertex).

trianglesnorms :: [(Vec, Vec)] -> [SolidItem t m]Source

Create a triangle fan from a list of verticies and normals.