MeshArtist

class compas_ghpython.artists.MeshArtist(*args, **kwargs)[source]

Bases: compas_ghpython.artists.artist.GHArtist, compas.artists.meshartist.MeshArtist

Artist for drawing mesh data structures.

Parameters

mesh (compas.datastructures.Mesh) – A COMPAS mesh.

Attributes

default_color

default_edgecolor

default_facecolor

default_vertexcolor

Inherited Attributes

AVAILABLE_CONTEXTS

CONTEXT

ITEM_ARTIST

color

default_edgewidth

default_vertexsize

edge_color

edge_text

edge_width

edges

face_color

face_text

faces

mesh

vertex_color

vertex_size

vertex_text

vertex_xyz

vertices

Methods

clear_edges

GH Artists are state-less.

clear_faces

GH Artists are state-less.

clear_vertices

GH Artists are state-less.

draw

Draw the mesh using the chosen visualization settings.

draw_edges

Draw a selection of edges.

draw_faces

Draw a selection of faces.

draw_mesh

Draw the mesh as a RhinoMesh.

draw_vertices

Draw a selection of vertices.

Inherited Methods

build

Build an artist corresponding to the item type.

build_as

clear

draw_collection

redraw

register