# `class tinylib.Face`

Available on all platforms

A Face: container for a triangle and an uv coordinate of its vertexes

## Instance Fields

### `var ids:TriFaceIDs`

index of vertexes

### `var uv0:UVCoord`

UV coordinate for vertex 0 of this face (triangle)

### `var uv1:UVCoord`

UV coordinate for vertex 1 of this face (triangle)

### `var uv2:UVCoord`

UV coordinate for vertex 2 of this face (triangle)

### `function new(i:UInt, j:UInt, k:UInt, r0:UVCoord, r1:UVCoord, r2:UVCoord):Void`

Constructor.

- i: vertex id 0 of the face
- j: vertex id 1 of the face
- k: vertex id 2 of the face
- r0: UV coordinate of vertex id 0
- r1: UV coordinate of vertex id 1
- r2: UV coordinate of vertex id 2

### `function get_ids():TriFaceIDs`

getter of `ids`

### `function get_uv0():UVCoord`

getter of `uv0`

### `function get_uv1():UVCoord`

getter of `uv1`

### `function get_uv2():UVCoord`

getter of `uv2`

### `function setID(i:UInt, j:UInt, k:UInt):Void`

another setter of `ids`

### `function set_ids(i:TriFaceIDs):TriFaceIDs`

setter of `ids`

### `function set_uv0(r:UVCoord):UVCoord`

setter of `uv0`

### `function set_uv1(r:UVCoord):UVCoord`

setter of `uv1`

### `function set_uv2(r:UVCoord):UVCoord`

setter of `uv2`