A MeshVisual Visual that uses the new shader Function.
vispy.visuals.mesh.
MeshVisual
Bases: vispy.visuals.visual.Visual
vispy.visuals.visual.Visual
Mesh visual
The vertices.
The faces.
Colors to use for each vertex.
Colors to use for each face.
The color to use.
The values to use for each vertex (for colormapping).
The meshdata.
Shading to use.
The drawing mode.
Keyword arguments to pass to Visual.
ambient_light_color
The ambient light color
clim
cmap
color
The uniform color for this mesh
draw
light_dir
The light direction
mesh_data
The mesh data
mesh_data_changed
mode
The triangle mode used to draw this mesh.
Options are:
‘triangles’: Draw one triangle for every three vertices (eg, [1,2,3], [4,5,6], [7,8,9) ‘triangle_strip’: Draw one strip for every vertex excluding the first two (eg, [1,2,3], [2,3,4], [3,4,5]) ‘triangle_fan’: Draw each triangle from the first vertex and the last two vertices (eg, [1,2,3], [1,3,4], [1,4,5])
‘triangles’: Draw one triangle for every three vertices (eg, [1,2,3], [4,5,6], [7,8,9)
‘triangle_strip’: Draw one strip for every vertex excluding the first two (eg, [1,2,3], [2,3,4], [3,4,5])
‘triangle_fan’: Draw each triangle from the first vertex and the last two vertices (eg, [1,2,3], [1,3,4], [1,4,5])
set_data
Set the mesh data
Values for each vertex.
shading
The shading method used.
shininess
The shininess