raw_mesh
the raw_mesh object is a convinient tool for making optimized meshes for C3D.
add_triangle(vertices [, uvs [, texture]]) | adds a new triangle into the mesh with given UV coordinates and more. |
---|---|
make_geometry() | builds and returns the mesh created. |
- add_triangle(vertices [, uvs [, texture]])Source
adds a new triangle into the mesh with given UV coordinates and more.
Parameters
- vertices table list of 3 vertices ({x,y,z})
- uvs? table list of 3 UV coordinates for the given vertices ({u,v})
- texture? texture optional texture. used for per triangle texturing.
Returns
- raw_mesh returns self for chain calling methods
- make_geometry()Source
builds and returns the mesh created. creates a generic shape object
Returns
- generic_shape the new generic shape created from the mesh