# Class: meshid

Mesh within a model. Typically contains vertices and indices, as well as material information.

## Hierarchy

    o-+ ressubid
      o-+ meshid

## Interfaces:

- hashid
- indexarray
- vertexarray

## Methods:

### Method overview:

- boneid
- init
- material
- matsurface
- name
- skinid
- texname
- texture

boneid (meshid,[boneid])
  returns: ([boneid])
  returns or sets boneid it is linked to. Only makes sense if model is animateable).
init (meshid,string name, int vertexcount, int indicescount, [texture/material name])
  returns: ()
  only works on empty meshes that are hosted in model.new generated model.
material (meshid)
  returns: ([material])
  returns material of the mesh or nothing if there's no material
matsurface (meshid)
  returns: ([matsurface])
  returns matsurface
name (meshid)
  returns: ([string])
  returns or sets name of mesh
skinid (meshid,[skinid])
  returns: ([skinid])
  returns or sets skinid it is linked to. Only makes sense if model is animateable).
texname (meshid)
  returns: ([string])
  returns original texturename (material / texture).
texture (meshid)
  returns: ([texture])
  returns texture of the mesh or nothing if there's no texture

## Inherited Methods:

### From ressubid

hostinfo