ForceArtist
- class compas_tna.rhino.ForceArtist(item, **kwargs)[source]
 Bases:
MeshArtistArtist for force diagrams.
- Parameters:
 force (
compas_tna.diagrams.ForceDiagram) – A force diagram.layer (str, optional) – The layer in which the artist should draw.
settings (dict, optional) – Visualisation settings.
- Attributes:
 settings (dict) – Visualisation settings.
Examples
from compas_tna.rhino import ForceArtist artist = ForceArtist(force, layer='TNA::ForceDiagram') artist.draw()Attributes
forceInherited Attributes
AVAILABLE_CONTEXTSCONTEXTITEM_ARTISTcolorClass for working with colors.
default_edgecolorClass for working with colors.
default_edgewidthdefault_facecolorClass for working with colors.
default_vertexcolorClass for working with colors.
default_vertexsizeedge_textedge_widthedgesface_textfacesmeshvertex_sizevertex_textvertex_xyzverticesMethods
clear()Delete all objects drawn by this artist.
draw()Draw the force diagram.
Inherited Methods
build(item, **kwargs)Build an artist corresponding to the item type.
build_as(item, artist_type, **kwargs)Build an artist with the given type.
Delete all edge labels drawn by this artist.
Delete all edges drawn by this artist.
Delete all face labels drawn by this artist.
Delete all face normals drawn by this artist.
Delete all faces drawn by this artist.
Clear the layer of the artist.
Delete all vertex labels drawn by this artist.
Delete all vertex normals drawn by this artist.
Delete all vertices drawn by this artist.
draw_collection(collection)Drawing method for drawing an entire collection of objects.
draw_edgelabels([text])Draw labels for a selection of edges.
draw_edges([edges, color])Draw a selection of edges.
draw_facelabels([text])Draw labels for a selection of faces.
draw_facenormals([faces, color, scale])Draw the normals of the faces.
draw_faces([faces, color, join_faces])Draw a selection of faces.
draw_mesh(*args, **kwargs)Draw the mesh of the mesh.
draw_vertexlabels([text])Draw labels for a selection vertices.
draw_vertexnormals([vertices, color, scale])Draw the normals at the vertices of the mesh.
draw_vertices([vertices, color])Draw a selection of vertices.
redraw()Redraw the view.
register(item_type, artist_type[, context])Register an artist type to a data type.