Module OgamlGraphics.Model.Face

Represents a face of a model
type t
Type of a face
val create : Vertex.t -> Vertex.t -> Vertex.t -> t
Creates a face from 3 vertices
val quad : Vertex.t -> Vertex.t -> Vertex.t -> Vertex.t -> (t * t)
Returns the two triangles associated to 4 vertices
val vertices : t -> (Vertex.t * Vertex.t * Vertex.t)
Returns the 3 vertices of a face
val paint : t -> Color.t -> t
Returns a new face painted with a given color
val normal : t -> OgamlMath.Vector3f.t
Returns the normal of a face