Godot: Mesh

A Mesh describes vertex array-based geometry which can be divided into multiple surfaces. A given surface has a separate vertex array and material used for drawing. A Mesh can be defined using a singular surface, however, multiple surfaces allow for multiple materials to be used on the same Mesh.

The vertex data of a Mesh can be arranged in many different ways, so it is necessary to select an appropriate primitive for rendering vertices. The five available primitives are described by the PrimitiveType enumerator:

enum PrimitiveType {PRIMITIVE_POINTS, PRIMITIVE_LINES, PRIMITIVE_LINE_STRIP, PRIMITIVE_TRIANGLE, PRIMITIVE_TRIANGLE_STRIP}