draw_mesh
- compas_rhino.utilities.draw_mesh(vertices, faces, name=None, color=None, vertex_color=None, disjoint=False, **kwargs)[source]
Draw a mesh and optionally set individual name, color, and layer properties.
- Parameters
vertices (list[[float, float, float] |
Point
]) – A list of point locations.faces (list[list[int]]) – A list of faces as lists of indices into vertices.
name (str, optional) – The name of the mesh object in Rhino.
color (tuple[[int, int, int]], optional) – The base color of the mesh.
vertex_color (dict[int, tuple[int, int, int]], optional) – A color per vertex of the mesh. Vertices without a color specification in this mapping, will receive the base color. For example:
vertex_color = {vertex: Color.from_i(random.random()).rgb255 for face in faces for vertex in face}
disjoint (bool, optional) – If True, draw the mesh with disjoint faces.
- Returns
System.Guid