cls_BaseMesh - almarklein/visvis GitHub Wiki
Inherits from object.
The BaseMesh class represents a mesh in its pure mathematical form (without any visualization properties). Essentially, it serves as a container for the vertices, normals, faces, and values.
See the Mesh and OrientableMesh classes for representations that include visualization properties.
The old signature may also be used, but will be removed in future versions: BaseMesh(vertices, normals=None, faces=None, colors=None, texcords=None, verticesPerFace=3)
The BaseMesh class implements the following methods:
SetColors, SetFaces, SetNormals, SetTexcords, SetValues, SetVertices
Deprecated: use SetValues() instead.
Set the color data as a Nx3 numpy array or as a 3D Pointset. Use None as an argument to remove the color data.
Set the faces data. This can be either a list, a 1D numpy array, a Nx3 numpy array, or a Nx4 numpy array. In the latter two cases the type is set to GL_TRIANGLES or GL_QUADS respectively.
The front of the face is defined using the right-hand-rule.
Set the normal data as a Nx3 numpy array or as a 3D Pointset.
Deprecated: use SetValues() instead.
Set the texture coordinates as a Nx2 numpy array or as a 2D Pointset. Use None as an argument to turn off the texture.
Set the value data for each vertex. This can be given as: * Nx1 array, representing the indices in a colormap * Nx2 array, representing the texture coordinates in a texture * Nx3 array, representing the RGB values at each vertex * Nx4 array, representing the RGBA values at each vertex
Use None as an argument to remove the values data.
Set the vertex data as a Nx3 numpy array or as a 3D Pointset.