FormArtist
- class compas_tna.rhino.FormArtist(item, **kwargs)[source]
Bases:
MeshArtistArtist for form diagrams.
- Parameters:
form (
compas_tna.diagrams.FormDiagram) – A form 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 FormArtist artist = FormArtist(form, layer='TNA::FormDiagram') artist.draw()Attributes
formInherited 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 form diagram.
draw_angles([tol])Draw the angle deviations.
draw_forces([scale, color])Draw the forces.
draw_loads([scale, color])Draw the loads.
draw_reactions([scale, color])Draw the reactions.
draw_residuals([scale, color])Draw the residual forces.
draw_selfweight([scale, color])Draw the selfweight.
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.