Viewer
- class compas_tno.viewers.Viewer(thrust=None, shape=None, force=None, show_grid=False, **kwargs)[source]
Bases:
object
A Class for view 3D thrust networks and shapes.
- Parameters
thrust (FormDiagram, optional) – The FormDiagram you want to plot, by default None
shape (Shape, optional) – The Shape of masonry to plot, by default None
- Attributes
None
Methods
Add an item to the viewer.
Clear the viewer elements
Draw the reaction labels (force magnitude) on the supports according to the settings
Draw cracks according to the settings
Add the ForceDiagram to the viewer, if no force is given the force diagram is recomputed in place.
Alias to draw thrust network according to the settings
Draw the externally applied loadss as vectors on the applied nodes
Draw a mesh to the viewer, if no mesh is given the
self.thrust
is takenDraw the middle of the shape according to the settings
Draw points in space
Draw the reaction labels (force magnitude) on the supports according to the settings
Draw the reaction vectors on the supports according to the settings
Draw the shape (intrados + extrados) according to the settings
Draw the shape normals at intrados and extrados surfaces
Draw thrust network according to the settings
Draw a mesh to the viewer, if no mesh is given the
self.thrust
is takenHelper to add vectors to the plotter.
Initiate the App with the default camera options
Save to a path
Set the camera options (can also be set directly modifying the settings dictionary)
Display the viewer in the screen
Show the thrust network, with the shape according to the settings
Generate General objects (dicts) from the added elements in the viewer (WIP).