Data Structures
-
struct offler_colour
Colour of a vertex (RGBA).
-
struct offler_face
A single face in a mesh. Faces with more than UINT16_MAX sides are not considered likely enough to support. This is a slightly ‘fatter’ structure than it needs to be, but this is for convenience of implementation and to ease building on top of it.
-
struct offler_vertex
A vertex in a mesh. Not all vertices have normals, but as normals are such a common requirement it seems worth it being present all the time.
-
struct offler_mesh
A 3D mesh, as represented by an OFF file. This is a razor-thin wrapper, rather than a fully-featured mesh data structure.