MeshArtist
- class compas_rhino.artists.MeshArtist(*args, **kwargs)[source]
Bases:
RhinoArtist
,MeshArtist
Artists for drawing mesh data structures.
- Parameters
mesh (
compas.datastructures.Mesh
) – A COMPAS mesh.layer (str, optional) – The name of the layer that will contain the mesh.
vertices (list[int], optional) – Selection of vertices to draw.
edges (list[tuple[int, int]], optional) – Selection of edges to draw.
faces (list[int], optional) – Selection of faces to draw.
vertexcolor (tuple[int, int, int] or dict[int, tuple[int, int, int]], optional) – Color of the vertices. Default color is
MeshArtists.default_vertexcolor
.edgecolor (tuple[int, int, int] or dict[tuple[int, int], tuple[int, int, int]], optional) – Color of the edges. Default color is
MeshArtists.default_edgecolor
.facecolor (tuple[int, int, int] or dict[int, tuple[int, int, int]], optional) – Color of the faces. Default color is
MeshArtists.default_facecolor
.show_vertices (bool, optional) – If True, draw the vertices.
show_edges (bool, optional) – If True, draw the edges.
show_faces (bool, optional) – If True, draw the faces.
**kwargs (dict, optional) – Additional keyword arguments. For more info, see
RhinoArtist
andMeshArtist
.
- Class Attributes
default_color (tuple[int, int, int]) – Default base color of the mesh.
default_vertexcolor (tuple[int, int, int]) – Default color for vertices.
default_edgecolor (tuple[int, int, int]) – Default color for edges.
default_facecolor (tuple[int, int, int]) – Default color for faces.
Methods
Delete all objects drawn by this artist.
Delete all edge labels drawn by this artist.
Delete all edges drawn by this artist.
Delete all face labels drawn by this artist.
Delete all face normals drawn by this artist.
Delete all faces drawn by this artist.
Delete the mesh drawn by this artist.
Delete all vertex labels drawn by this artist.
Delete all vertex normals drawn by this artist.
Delete all vertices drawn by this artist.
Draw the mesh using the chosen visualization settings.
Draw labels for a selection of edges.
Draw a selection of edges.
Draw labels for a selection of faces.
Draw the normals of the faces.
Draw a selection of faces.
Draw the mesh as a consolidated RhinoMesh.
Draw labels for a selection vertices.
Draw the normals at the vertices of the mesh.
Draw a selection of vertices.
Inherited Methods
Build an artist corresponding to the item type.
Build an artist with the given type.
Clear the layer of the artist.
Drawing method for drawing an entire collection of objects.
Redraw the view.
Register an artist type to a data type.