Garry's Mod Wiki

ModelMeshData

Description

A table structure containing the information required to create a mesh.

Returned by util.GetModelMeshes

Members

string material
The name or path of this mesh's material.
table triangles
A sequential table of MeshVertex Structures that represents the triangles of this mesh.

These triangles are created from the contents of the verticies field.

This can be used as an input to IMesh:BuildFromTriangles

table verticies
A sequential table of MeshVertex Structures that represents each vertex of the mesh.
This field has a typo in its name and should be named "vertices"