Skip to content

Commit

Permalink
closewindow
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomusy committed May 6, 2019
1 parent 4e4c334 commit c1624ba
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ for the all following functionalities:
- Draw `latex`-formatted formulas on the rending window.
- Examples using [SHTools](https://shtools.oca.eu/shtools) package for *spherical harmonics* expansion of a mesh shape.
- Integration with the *Qt5* framework.
- Export a 3D scene and embed it into a [web page](https://vtkplotter.embl.es/fenics_elasticity.html).
- Support for [FEniCS/Dolfin](https://fenicsproject.org/) platform for visualization of finite-element calculations.
- Export a 3D scene and embed it into a [web page](https://vtkplotter.embl.es/examples/fenics_elasticity.html).



Expand Down
2 changes: 1 addition & 1 deletion examples/other/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ python example.py # on mac OSX try 'pythonw' instead
| | |
| [![tf_learnvol](https://user-images.githubusercontent.com/32848391/53975600-79771500-4105-11e9-8741-4661c2f035d4.jpg)](https://github.com/marcomusy/vtkplotter/blob/master/examples/other/tf_learn_embryo.py)<br/> `tf_learn_embryo.py` | Use *TensorFlow* to learn the value of a scalar defined in a volume. |
| | |
| [![expo](https://user-images.githubusercontent.com/32848391/57160341-c6ffbd80-6de8-11e9-95ff-7215ce642bc5.jpg)](https://github.com/marcomusy/vtkplotter/blob/master/examples/other/.py)<br/> `export_x3d.py` | Embed a 3D scene in a webpage with x3dom. |
| [![expo](https://user-images.githubusercontent.com/32848391/57160341-c6ffbd80-6de8-11e9-95ff-7215ce642bc5.jpg)](https://github.com/marcomusy/vtkplotter/blob/master/examples/other/export_x3d.py)<br/> `export_x3d.py` | Embed a 3D scene in a webpage with x3dom. |
2 changes: 1 addition & 1 deletion examples/other/dolfin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ python example.py # on mac OSX try 'pythonw' instead
| | |
| [![turing_pattern](https://user-images.githubusercontent.com/32848391/56056437-77cfeb00-5d5c-11e9-9887-828e5745d547.gif)](https://github.com/marcomusy/vtkplotter/blob/master/examples/other/dolfin/turing_pattern.py)<br/> `turing_pattern.py` | Solve a reaction-diffusion problem on a 2D domain. |
| | |
| [![elasticbeam](https://user-images.githubusercontent.com/32848391/57185890-eecc4f80-6ed4-11e9-866e-ae353735d966.png)](https://github.com/marcomusy/vtkplotter/blob/master/examples/other/dolfin/elasticbeam.py)<br/> `elasticbeam.py` | A clamped beam deformed under its own weight. The whole 3D scene is exported and visualized on a [web page](https://vtkplotter.embl.es/fenics_elasticity.html). |
| [![elasticbeam](https://user-images.githubusercontent.com/32848391/57185890-eecc4f80-6ed4-11e9-866e-ae353735d966.png)](https://github.com/marcomusy/vtkplotter/blob/master/examples/other/dolfin/elasticbeam.py)<br/> `elasticbeam.py` | A clamped beam deformed under its own weight. The whole 3D scene is exported and visualized on a [web page](https://vtkplotter.embl.es/examples/fenics_elasticity.html). |

3 changes: 2 additions & 1 deletion vtkplotter/dolfin.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import vtkplotter.shapes as shapes
from vtkplotter.shapes import Text, Latex

from vtkplotter.plotter import show, clear, Plotter, plotMatrix
from vtkplotter.plotter import show, clear, Plotter, plotMatrix, closeWindow

# NB: dolfin does NOT need to be imported at module level

Expand Down Expand Up @@ -102,6 +102,7 @@
"plotMatrix",
"isolines",
"exportWindow",
"closeWindow",
"interactive",
]

Expand Down
4 changes: 2 additions & 2 deletions vtkplotter/vtkio.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,9 +640,9 @@ def exportWindow(fileoutput, binary=False, speed=None, html=True):
.. hint:: |export_x3d| |export_x3d.py|_
`generated webpage <https://vtkplotter.embl.es/embryo.html>`_
`generated webpage <https://vtkplotter.embl.es/examples/embryo.html>`_
See also: FEniCS test `webpage <https://vtkplotter.embl.es/fenics_elasticity.html>`_.
See also: FEniCS test `webpage <https://vtkplotter.embl.es/examples/fenics_elasticity.html>`_.
'''
fr = fileoutput.lower()
if ".obj" in fr:
Expand Down

0 comments on commit c1624ba

Please sign in to comment.