wavefront
Copyright(C) 2015 Dimitri Sabadie
LicenseBSD3
MaintainerDimitri Sabadie <dimitri.sabadie@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
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 

Instances

Instances details
Generic FaceIndex Source # 
Instance details

Defined in Codec.Wavefront.Face

Associated Types

type Rep FaceIndex 
Instance details

Defined in Codec.Wavefront.Face

type Rep FaceIndex = D1 ('MetaData "FaceIndex" "Codec.Wavefront.Face" "wavefront-0.7.1.5-inplace" 'False) (C1 ('MetaCons "FaceIndex" 'PrefixI 'True) (S1 ('MetaSel ('Just "faceLocIndex") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "faceTexCoordIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "faceNorIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Int)))))
Show FaceIndex Source # 
Instance details

Defined in Codec.Wavefront.Face

Eq FaceIndex Source # 
Instance details

Defined in Codec.Wavefront.Face

type Rep FaceIndex Source # 
Instance details

Defined in Codec.Wavefront.Face

type Rep FaceIndex = D1 ('MetaData "FaceIndex" "Codec.Wavefront.Face" "wavefront-0.7.1.5-inplace" 'False) (C1 ('MetaCons "FaceIndex" 'PrefixI 'True) (S1 ('MetaSel ('Just "faceLocIndex") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "faceTexCoordIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "faceNorIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Int)))))

data Face Source #

A face gathers several FaceIndex to build up faces. It has a least three vertices

Instances

Instances details
Generic Face Source # 
Instance details

Defined in Codec.Wavefront.Face

Methods

from :: Face -> Rep Face x Source #

to :: Rep Face x -> Face Source #

Show Face Source # 
Instance details

Defined in Codec.Wavefront.Face

Eq Face Source # 
Instance details

Defined in Codec.Wavefront.Face

Methods

(==) :: Face -> Face -> Bool Source #

(/=) :: Face -> Face -> Bool Source #

type Rep Face Source # 
Instance details

Defined in Codec.Wavefront.Face