draw_mesh

compas_rhino.utilities.draw_mesh(vertices, faces, name=None, color=None, disjoint=False, **kwargs)[source]

Draw a mesh and optionally set individual name, color, and layer properties.

Parameters
  • vertices (list[[float, float, float] or compas.geometry.Point]) – A list of point locations.

  • faces (list[list[int]]) – A list of faces as lists of indices into vertices.

  • name (str, optional)

  • color (tuple[[int, int, int]], optional)

  • disjoint (bool, optional) – If True, draw the mesh with disjoint faces.

Returns

System.Guid