Bases: GLGraphicsItem
Displays a 3D triangle mesh.
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. |
This method must be called to inform the item that the MeshData object has been altered.
Set the default color to use when no vertex or face colors are specified.
Set mesh data for this item. This can be invoked two ways:
Set the shader used when rendering faces in the mesh. (see the GL shaders example)