From GMod Wiki
|
Function |
|
Syntax |
IMesh:BuildFromTriangles( Table ) |
|
Description: |
|
Builds the mesh from a table. |
|
Returns: |
nil |
|
In Object: |
Imesh |
|
Realm: |
 |
|
BBCode Link: |
[b][url=http://wiki.garrysmod.com/?title=IMesh.BuildFromTriangles]IMesh.BuildFromTriangles [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | N/A |
| Used on |
|
| Code |
 | This page needs an example to demonstrate the item detailed on this page. See how to make one here. See more articles that need examples here. | |
| Output | N/A |
Additional Notes
table -
1 -
pos - vector
normal - vector (optional)
u - texture coord (optional)
v - texture coord (optional)
2 -
etc
- You should only call this once after making the mesh. The table is arranged the same as PhysicsFromMesh. Make sure to define your primitives in a clockwise order or they will be culled.