Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
arpastrana committed Jun 3, 2022
1 parent be63a21 commit 5e1611a
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 7 deletions.
Binary file modified docs/_images/01_quick_start.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/02_braced_tower_2d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/03_bridge_2d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/04_tree_2d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/05_tensegrity_wheel_2d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/api/compas_cem.viewers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. automodule:: compas_cem.viewers
2 changes: 1 addition & 1 deletion examples/01_quick_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

# add shifted form diagram to the scene
form = form.transformed(Translation.from_vector([0.0, -1.0, 0.0]))
plotter.add(form, nodesize=0.2)
plotter.add(form, nodesize=0.2, show_edgetext=True, edgetext="force")

# show plotter contents
plotter.zoom_extents()
Expand Down
1 change: 1 addition & 0 deletions src/compas_cem/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
compas_cem.equilibrium
compas_cem.optimization
compas_cem.plotters
compas_cem.viewers
"""

from __future__ import print_function
Expand Down
11 changes: 10 additions & 1 deletion src/compas_cem/plotters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.. currentmodule:: compas_cem.plotters
Classes
Artists
=======
.. autosummary::
Expand All @@ -14,6 +14,15 @@
FormArtist
TopologyArtist
Plotters
========
.. autosummary::
:toctree: generated/
:nosignatures:
Plotter
"""

from __future__ import absolute_import
Expand Down
14 changes: 11 additions & 3 deletions src/compas_cem/viewers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
.. currentmodule:: compas_cem.viewers
Classes
=======
Visualization objects
=====================
.. autosummary::
:toctree: generated/
Expand All @@ -15,6 +15,15 @@
DiagramObject
FormDiagramObject
TopologyDiagramObject
Viewers
=======
.. autosummary::
:toctree: generated/
:nosignatures:
Viewer
"""

from __future__ import absolute_import
Expand All @@ -25,7 +34,6 @@
def is_compasviewers_installed():
try:
import compas_view2 # noqa F401

except ImportError:
return False
return True
Expand Down
2 changes: 1 addition & 1 deletion src/compas_cem/viewers/formobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class FormDiagramObject(DiagramObject):
"""
An object to display a form diagram.
Parameter
Parameters
----------
form_diagram : :class:`~compas_cem.diagrams.FormDiagram`
The form diagram to plot.
Expand Down
2 changes: 1 addition & 1 deletion src/compas_cem/viewers/topologyobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TopologyDiagramObject(DiagramObject):
"""
An object to display a topology diagram.
Parameter
Parameters
----------
form_diagram : :class:`~compas_cem.diagrams.TopologyDiagram`
The form diagram to plot.
Expand Down

0 comments on commit 5e1611a

Please sign in to comment.