GLMeshItem#
- class pyqtgraph.opengl.GLMeshItem(
- parentItem=None,
- **kwds,
Bases:
GLGraphicsItem
Displays a 3D triangle mesh.
- __init__(
- parentItem=None,
- **kwds,
Arguments:
meshdata
MeshData object from which to determine geometry for this item.
color
Default face color used if no vertex or face colors are specified.
edgeColor
Default edge color to use if no edge colors are specified in the mesh data.
drawEdges
If True, a wireframe mesh will be drawn. (default=False)
drawFaces
If True, mesh faces are drawn. (default=True)
shader
Name of shader program to use when drawing faces. (None for no shader)
smooth
If True, normal vectors are computed for each vertex and interpolated within each face.
computeNormals
If False, then computation of normal vectors is disabled. This can provide a performance boost for meshes that do not make use of normals.
- meshDataChanged()[source]#
This method must be called to inform the item that the MeshData object has been altered.