animation_from_optimisation

compas_tno.viewers.animation_from_optimisation(analysis, show_force=False, settings=None, record=False, interval=100, jump_each=1)[source]

Make a 3D animated plot with the optimisation steps.

Parameters
  • form (FormDiagram) – Form Diagram in which the animation should be based

  • file_Xform (str) – Path for the .json file with the notal position of the form diagram during iterations

  • force (ForceDiagram, optional) – Force diagram in whch the animation should be based, by default None

  • file_Xforce (str, optional) – Path for the .json file with the notal position of the form diagram during iterations, by default None

  • shape (Shape, optional) – The shape to plot in the animation, by default None

  • settings (dict, optional) – Dictionary with settings to modify the viewer, by default None

  • record (bool, optional) – Whether or not the animation should be saved as .gif, by default False

  • interval (int, optional) – Time interval (in ms) among iteration frames, by default 100

  • jump_each (int, optional) – Interval tot jump among iteration frames, by default 1, in which all frames are shown