TNOPlotter

class compas_tno.plotters.TNOPlotter(form=None, shape=None, form_base=None, force=None, figsize=(8, 8), *args, **kwargs)[source]

Bases: object

TNO helper to plot forms and shapes

Parameters
  • form (FormDiagram, optional) – The form diagram to be plotted, by default None

  • shape (Shape, optional) – The shape of the masonry constraining the solution, by default None

  • form_base (FormDiagram, optional) – The base form diagram to be visualised if pattern is allowed to move, by default None

  • force (ForceDiagram, optional) – The force diagram associates with the form diagram, by default None

  • figsize (tuple, optional) – The size of the plot, by default (8, 8)

Attributes

None

Methods

add

Add an item to the plotter.

clear

Clear the plotter elements.

draw_arch_lines

Helper to draw the lines of intrados and extrados of an arch for given parameters

draw_base_form

Adds to the plot the base mesh which is the mesh before the nodes moved horizontally.

draw_constraints

Draw the constraints applied.

draw_cracks

Adds to the basic plot, the cracks which are the points of the mesh that touch intrados or extrados.

draw_edgelabels

Draw Labels to the vertices

draw_force

Draw the force diagram associated with the form diagram.

draw_form

Draw the Form Diagram with or without thicknesses of edges scaled as forces in the edges.

draw_form_independents

Draw the form diagram with highlight in the independent edges.

draw_form_sym

Draw the form diagram symmetry edges with the respective colors.

draw_form_xz

Plot the form diagram rotated 90 degrees

draw_lines

Helper to add vectors to the plotter.

draw_mesh

Initiate the Plotter with the default camera options.

draw_reactions

Add to the plots the vector of the reaction forces.

draw_shape

Adds the shape to the plot.

draw_shape_xz

Adds the shape to the plot rotated 90 degrees.

draw_supports

Add the supports as points in the mesh.

draw_vector

Helper to add vectors to the plotter.

draw_vertexlabels

Draw a specific label in the vertices

highlight_vertices

Highlight a vertex in the form diagram and in the force diagram (if they have been previously added to the plotter)

initiate_app

Initiate the Plotter with the default camera options.

make_gif

Make a gif from a list of image files

save

Save the plotter window as an image.

show

Display the plotter in the screen.

show_solution

Show the thrust network, with the shape according to the settings.

zoom_extents

Wrapper to extend the objects in the active view.