MeshArtist.draw
- MeshArtist.draw(vertices=None, edges=None, faces=None, vertexcolor=None, edgecolor=None, facecolor=None, color=None, join_faces=False)[source]
Draw the mesh using the chosen visualization settings.
- Parameters
vertices (list[int], optional) – A list of vertices to draw. Default is None, in which case all vertices are drawn.
edges (list[tuple[int, int]], optional) – A list of edges to draw. The default is None, in which case all edges are drawn.
faces (list[int], optional) – A selection of faces to draw. The default is None, in which case all faces are drawn.
vertexcolor (tuple[int, int, int] or dict[int, tuple[int, int, int]], optional) – The color specification for the vertices. The default color is the value of
MeshArtist.default_vertexcolor
.edgecolor (tuple[int, int, int] or dict[tuple[int, int], tuple[int, int, int]], optional) – The color specification for the edges. The default color is the value of
MeshArtist.default_edgecolor
.facecolor (tuple[int, int, int] or dict[int, tuple[int, int, int]], optional) – The color specification for the faces. The default color is the value of
MeshArtist.default_facecolor
.color (tuple[int, int, int], optional) – The color of the mesh. Default is the value of
MeshArtist.default_color
.join_faces (bool, optional) – If True, join the individual faces into one mesh.
- Returns
list[Rhino.Geometry.Mesh, Rhino.Geometry.Point3d, Rhino.Geometry.Line]