Garry's Mod Wiki


Renderable mesh object, can be used to create models on the fly. The only way to create your own IMesh object is to call Mesh.

IMeshes only respond to one projected texture.

Issue Tracker: 2301


IMesh:BuildFromTriangles( table vertexes )
Builds the mesh from a table mesh vertexes. See Mesh and util.GetModelMeshes for examples.
Deletes the mesh and frees the memory used by it.
Renders the mesh with the active matrix.
boolean IMesh:IsValid()
Returns whether this IMesh is valid or not.