Garry's Mod Wiki

IMesh:BuildFromTriangles

  IMesh:BuildFromTriangles( table vertexes )

Description

Builds the mesh from a table mesh vertexes.

When modifying a previously built mesh, your new mesh must match the vertex count!

See Mesh and util.GetModelMeshes for examples.

IMesh appears to have a limit of 65535 vertices. You should split your mesh into multiple meshes when above this limit.

Exceeding the limit may lead to undefined rendering behavior.

Arguments

1 table vertexes
A table consisting of MeshVertex structures.