class_docstr: Class for storing and operating on 3D mesh data. May contain:
  
    - list of vertex locations
    - list of edges
    - list of triangles
    - colors per vertex, edge, or tri
    - normals per vertex or tri
  
  This class handles conversion between the standard [list of vertexes, list of faces]
  format (suitable for use with glDrawElements) and 'indexed' [list of vertexes] format
  (suitable for use with glDrawArrays). It will automatically compute face normal
  vectors as well as averaged vertex normal vectors. 
  
  The class attempts to be as efficient as possible in caching conversion results and
  avoiding unnecessary conversions.
class_docstr_tok: ["Class","for","storing","and","operating","on","3D","mesh","data",".","May","contain",":","-","list","of","vertex","locations","-","list","of","edges","-","list","of","triangles","-","colors","per","vertex",",","edge",",","or","tri","-","normals","per","vertex","or","tri","This","class","handles","conversion","between","the","standard","[","list","of","vertexes",",","list","of","faces","]","format","(","suitable","for","use","with","glDrawElements",")","and","'indexed","'","[","list","of","vertexes","]","format","(","suitable","for","use","with","glDrawArrays",")",".","It","will","automatically","compute","face","normal","vectors","as","well","as","averaged","vertex","normal","vectors",".","The","class","attempts","to","be","as","efficient","as","possible","in","caching","conversion","results","and","avoiding","unnecessary","conversions","."]
docstr: Serialize this mesh to a string appropriate for disk storage
docstr_tok: ["Serialize","this","mesh","to","a","string","appropriate","for","disk","storage"]
code: def save(self):
      """Serialize this mesh to a string appropriate for disk storage"""
      import pickle
  
      if self._faces is not None:
          names = ["_vertexes", "_faces"]
      else:
          names = ["_vertexesIndexedByFaces"]
  
      if self._vertexColors is not None:
          names.append("_vertexColors")
      elif self._vertexColorsIndexedByFaces is not None:
          names.append("_vertexColorsIndexedByFaces")
  
      if self._faceColors is not None:
          names.append("_faceColors")
      elif self._faceColorsIndexedByFaces is not None:
          names.append("_faceColorsIndexedByFaces")
  
      state = dict([(n, getattr(self, n)) for n in names])
      return pickle.dumps(state)
  
imports: import numpy
  from ..Qt import QtGui
label_desc: Use image node_id 23 for calling the MeshData obj's underlying member method code with example usage: obj.save() and returns: pickle