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: Set the face color array (Nf, 4).
  If indexed=='faces', then the array will be interpreted
  as indexed and should have shape (Nf, 3, 4)
docstr_tok: ["Set","the","face","color","array","(","Nf",",","4",")",".","If","indexed=='faces","'",",","then","the","array","will","be","interpreted","as","indexed","and","should","have","shape","(","Nf",",","3",",","4",")"]
code: def setFaceColors(self, colors, indexed=None):
      """
      Set the face color array (Nf, 4).
      If indexed=='faces', then the array will be interpreted
      as indexed and should have shape (Nf, 3, 4)
      """
      if indexed is None:
          self._faceColors = np.ascontiguousarray(
              colors, dtype=np.float32
          )
          self._faceColorsIndexedByFaces = None
      elif indexed == "faces":
          self._faceColors = None
          self._faceColorsIndexedByFaces = np.ascontiguousarray(
              colors, dtype=np.float32
          )
      else:
          raise Exception(
              "Invalid indexing mode. Accepts: None, 'faces'"
          )
  
imports: import numpy
  from ..Qt import QtGui
label_desc: Use image node_id 17 for calling the MeshData obj's underlying member method code with example usage: obj.setFaceColors(colors, indexed) without return types