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

  1. vertices table list of 3 vertices ({x,y,z})
  2. uvs? table list of 3 UV coordinates for the given vertices ({u,v})
  3. texture? texture optional texture. used for per triangle texturing.

Returns

  1. raw_mesh returns self for chain calling methods
make_geometry()Source

builds and returns the mesh created. creates a generic shape object

Returns

  1. generic_shape the new generic shape created from the mesh