| Copyright | (C) 2015 Dimitri Sabadie |
|---|---|
| License | BSD3 |
| Maintainer | Dimitri Sabadie <dimitri.sabadie@gmail.com> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Codec.Wavefront.Face
Description
- data FaceIndex = FaceIndex {
- faceLocIndex :: !Int
- faceTexCoordIndex :: !(Maybe Int)
- faceNorIndex :: !(Maybe Int)
- data Face = Face FaceIndex FaceIndex FaceIndex [FaceIndex]
- pattern Triangle :: FaceIndex -> FaceIndex -> FaceIndex -> Face
- pattern Quad :: FaceIndex -> FaceIndex -> FaceIndex -> FaceIndex -> Face
Documentation
data FaceIndex
A face index is a triplet of indices. is a face that indexes the
locations with FaceIndex vi vti vnivi, the texture coordinates with vti and the normals with vni. An index set
to Nothing means no information. That is, if vni == , then that NothingFaceIndex
doesn’t have a normal associated with.
Constructors
| FaceIndex | |
Fields
| |