class_docstr: Displays a 2D polygon
  
  Parameters
  ----------
  pos : array
      Set of vertices defining the polygon.
  color : str | tuple | list of colors
      Fill color of the polygon.
  border_color : str | tuple | list of colors
      Border color of the polygon.
  border_width : int
      Border width in pixels.
      Line widths > 1px are only
      guaranteed to work when using `border_method='agg'` method.
  border_method : str
      Mode to use for drawing the border line (see `LineVisual`).
  
          * "agg" uses anti-grain geometry to draw nicely antialiased lines
            with proper joins and endcaps.
          * "gl" uses OpenGL's built-in line rendering. This is much faster,
            but produces much lower-quality results and is not guaranteed to
            obey the requested line width or join/endcap styles.
  
  triangulate : boolean
      Triangulate the set of vertices
  **kwargs : dict
      Keyword arguments to pass to `CompoundVisual`.
class_docstr_tok: ["Displays","a","2D","polygon","Parameters","--","--","--","--","--","pos",":","array","Set","of","vertices","defining","the","polygon",".","color",":","str","|","tuple","|","list","of","colors","Fill","color","of","the","polygon",".","border_color",":","str","|","tuple","|","list","of","colors","Border","color","of","the","polygon",".","border_width",":","int","Border","width","in","pixels",".","Line","widths",">","1px","are","only","guaranteed","to","work","when","using","`","border_method='agg","'","`","method",".","border_method",":","str","Mode","to","use","for","drawing","the","border","line","(","see","`","LineVisual","`",")",".","*","``","agg","''","uses","anti-grain","geometry","to","draw","nicely","antialiased","lines","with","proper","joins","and","endcaps",".","*","``","gl","''","uses","OpenGL","'s","built-in","line","rendering",".","This","is","much","faster",",","but","produces","much","lower-quality","results","and","is","not","guaranteed","to","obey","the","requested","line","width","or","join\/endcap","styles",".","triangulate",":","boolean","Triangulate","the","set","of","vertices","*","*","kwargs",":","dict","Keyword","arguments","to","pass","to","`","CompoundVisual","`","."]
code: def mesh(self, mesh):
      self._mesh = mesh
      self._update()
  
imports: from __future__ import division
  import numpy
  from .visual import CompoundVisual
  from .mesh import MeshVisual
  from .line import LineVisual
  from ..color import Color
  from ..geometry import PolygonData
  from ..gloo import set_state
label_desc: Use image node_id 10 for calling the PolygonVisual obj's underlying member method code with example usage: obj.mesh(mesh) without return types