Copyright | (C) 2015 Dimitri Sabadie |
---|---|
License | BSD3 |
Maintainer | Dimitri Sabadie <dimitri.sabadie@gmail.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- 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
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 Nothing
FaceIndex
doesn’t have a normal associated with.
FaceIndex | |
|
Instances
A face gathers several FaceIndex
to build up faces. It has a least three vertices