Mesh.BuildFromTriangles
From GMod Wiki
Function | |
Syntax | Mesh.BuildFromTriangles( Table of Mesh Vertexes vertexes ) |
Description: | |
Builds the mesh from a table. | |
Returns: | nil |
In Object: | IMesh |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Mesh.BuildFromTriangles]Mesh.BuildFromTriangles [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- You should only call this once after making the mesh. The table is arranged the same as Entity.PhysicsFromMesh. Make sure to define your primitives in a clockwise order or they will be culled.
- Vertexes should be a table containing a description of the 3 vertexes needed for each triangle to be used. The number of elements in Vertexes should be a multiple of three.
- Vertexes should be a table of Mesh Vertexes structures.
This page needs reviewing. An expert needs to verify that all of the information in this page is correct. See more articles for review here. |