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 an item to the plotter.
Clear the plotter elements.
Helper to draw the lines of intrados and extrados of an arch for given parameters
Adds to the plot the base mesh which is the mesh before the nodes moved horizontally.
Draw the constraints applied.
Adds to the basic plot, the cracks which are the points of the mesh that touch intrados or extrados.
Draw Labels to the vertices
Draw the force diagram associated with the form diagram.
Draw the Form Diagram with or without thicknesses of edges scaled as forces in the edges.
Draw the form diagram with highlight in the independent edges.
Draw the form diagram symmetry edges with the respective colors.
Plot the form diagram rotated 90 degrees
Helper to add vectors to the plotter.
Initiate the Plotter with the default camera options.
Add to the plots the vector of the reaction forces.
Adds the shape to the plot.
Adds the shape to the plot rotated 90 degrees.
Add the supports as points in the mesh.
Helper to add vectors to the plotter.
Draw a specific label in the vertices
Highlight a vertex in the form diagram and in the force diagram (if they have been previously added to the plotter)
Initiate the Plotter with the default camera options.
Make a gif from a list of image files
Save the plotter window as an image.
Display the plotter in the screen.
Show the thrust network, with the shape according to the settings.
Wrapper to extend the objects in the active view.