Index

Meshes

Sometimes it is useful to define a static mesh programmatically. To turn such meshes into an actual vertex-array, you can use a mesh-loader, or the mesh asset.

The mesh-loader can convert from of the following types:

Static meshes like these are mostly used for very simple meshes that can be constructed using the geometry construction functions that trial ships:

The functions should be self-explanatory in what they construct. All of them also take a :mesh argument so that you can combine multiple meshes together, and :x, :y, :z arguments to shift the constructed shape around.

Trial also provides a couple of assets that are generally useful from its own pool: