wavefront-0.5.1: Wavefront OBJ loader

Copyright(C) 2015 Dimitri Sabadie
LicenseBSD3
MaintainerDimitri Sabadie <dimitri.sabadie@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Codec.Wavefront.Face

Description

 

Synopsis

Documentation

data FaceIndex Source

A face index is a triplet of indices. FaceIndex vi vti vni is a face that indexes the locations with vi, the texture coordinates with vti and the normals with vni. An index set to Nothing means no information. That is, if vni == Nothing, then that FaceIndex doesn’t have a normal associated with.

Constructors

FaceIndex 

data Face Source

A face gathers several FaceIndex to build up faces, arranged in either Triangle, Quad or an arbritatry Polygon.