@@ -27,29 +27,6 @@ class MeshArtist(BlenderArtist, MeshArtist):
2727 A COMPAS mesh.
2828 collection : str | :blender:`bpy.types.Collection`
2929 The Blender scene collection the object(s) created by this artist belong to.
30- vertices : list[int], optional
31- A list of vertex identifiers.
32- Default is None, in which case all vertices are drawn.
33- edges : list[tuple[int, int]], optional
34- A list of edge keys (as uv pairs) identifying which edges to draw.
35- The default is None, in which case all edges are drawn.
36- faces : list[int], optional
37- A list of face identifiers.
38- The default is None, in which case all faces are drawn.
39- vertexcolor : :class:`~compas.colors.Color` | dict[int, :class:`~compas.colors.Color`], optional
40- The color specification for the vertices.
41- edgecolor : :class:`~compas.colors.Color` | dict[tuple[int, int], :class:`~compas.colors.Color`], optional
42- The color specification for the edges.
43- facecolor : :class:`~compas.colors.Color` | dict[int, :class:`~compas.colors.Color`], optional
44- The color specification for the faces.
45- show_mesh : bool, optional
46- If True, draw the mesh.
47- show_vertices : bool, optional
48- If True, draw the individual vertices.
49- show_edges : bool, optional
50- If True, draw the individual edges.
51- show_faces : bool, optional
52- If True, draw the individual faces.
5330
5431 Attributes
5532 ----------
@@ -97,31 +74,10 @@ class MeshArtist(BlenderArtist, MeshArtist):
9774 def __init__ (self ,
9875 mesh : Mesh ,
9976 collection : Optional [Union [str , bpy .types .Collection ]] = None ,
100- vertices : Optional [List [int ]] = None ,
101- edges : Optional [List [int ]] = None ,
102- faces : Optional [List [int ]] = None ,
103- vertexcolor : Optional [Color ] = None ,
104- edgecolor : Optional [Color ] = None ,
105- facecolor : Optional [Color ] = None ,
106- show_mesh : bool = False ,
107- show_vertices : bool = True ,
108- show_edges : bool = True ,
109- show_faces : bool = True ,
11077 ** kwargs : Any ):
11178
11279 super ().__init__ (mesh = mesh , collection = collection or mesh .name , ** kwargs )
11380
114- self .vertices = vertices
115- self .edges = edges
116- self .faces = faces
117- self .vertex_color = vertexcolor
118- self .edge_color = edgecolor
119- self .face_color = facecolor
120- self .show_mesh = show_mesh
121- self .show_vertices = show_vertices
122- self .show_edges = show_edges
123- self .show_faces = show_faces
124-
12581 @property
12682 def vertexcollection (self ) -> bpy .types .Collection :
12783 if not self ._vertexcollection :
0 commit comments