Module mesh3d

Source
Expand description

This module contains the Mesh3D, which stores 3D objects as vertices and index faces

Structs§

Face
A Face contains indices to a mesh’s collection of vertices and a ColChar to fill the face. Indices should be arranged in a clockwise order, as if they appear counter-clockwise when rendering they will not be rendered at all (this is how gemini-engine handles backface culling and maximises performance)
Mesh3D
A 3D mesh made up of vertices, faces made of indices into vertices, and a transformation.

Type Aliases§

Transform3D
An alias to DMat4, a 4x4 matrix of f64 values
Vec3D
An alias to DVec3, a three-dimensional vector of f64 values