VolMeshArtist
- class compas.artists.VolMeshArtist(item, **kwargs)[source]
Bases:
Artist
Artist for drawing volmesh data structures.
- Parameters
volmesh (
VolMesh
) – A COMPAS volmesh.- Attributes
volmesh (
VolMesh
) – The COMPAS volmesh associated with the artist.vertices (list[int]) – The list of vertices to draw. Default is a list of all vertices of the volmesh.
edges (list[tuple[int, int]]) – The list of edges to draw. Default is a list of all edges of the volmesh.
faces (list[int]) – The list of faces to draw. Default is a list of all faces of the volmesh.
cells (list[int]) – The list of cells to draw. Default is a list of all cells of the volmesh.
vertex_xyz (dict[int, list[float]]) – The view coordinates of the vertices. By default, the actual vertex coordinates are used.
vertex_color (dict[int,
Color
]) – Mapping between vertices and colors. Missing vertices get the default vertex color:default_vertexcolor
.edge_color (dict[tuple[int, int],
Color
]) – Mapping between edges and colors. Missing edges get the default edge color:default_edgecolor
.face_color (dict[int,
Color
]) – Mapping between faces and colors. Missing faces get the default face color:default_facecolor
.cell_color (dict[int,
Color
]) – Mapping between cells and colors. Missing cells get the default cell color:default_facecolor
.vertex_text (dict[int, str]) – Mapping between vertices and text labels.
edge_text (dict[tuple[int, int], str]) – Mapping between edges and text labels.
face_text (dict[int, str]) – Mapping between faces and text lables.
cell_text (dict[int, str]) – Mapping between cells and text lables.
- Class Attributes
default_vertexcolor (
Color
) – The default color of the vertices of the mesh that don’t have a specified color.default_edgecolor (
Color
) – The default color of the edges of the mesh that don’t have a specified color.default_facecolor (
Color
) – The default color of the faces of the mesh that don’t have a specified color.default_cellcolor (
Color
) – The default color of the cells of the mesh that don’t have a specified color.
Methods
Clear the cells of the mesh.
Clear the edges of the mesh.
Clear the faces of the mesh.
Clear the vertices of the mesh.
Draw the cells of the mesh.
Draw the edges of the mesh.
Draw the faces of the mesh.
Draw the vertices of the mesh.
Inherited Methods
Build an artist corresponding to the item type.
Build an artist with the given type.
Clear all objects from the view.
The main drawing method.
Drawing method for drawing an entire collection of objects.
Redraw the view.
Register an artist type to a data type.