GlomeTrace-0.1.1: Ray Tracing Library

Data.Glome.Triangle

Synopsis

Documentation

data Triangle Source

Constructors

Triangle Vec Vec Vec 

triangle :: Vec -> Vec -> Vec -> SolidItemSource

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

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

Create a triangle fan from a list of verticies.

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

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

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