From c1624ba8be2207a61b1b9628e4551b8186d15593 Mon Sep 17 00:00:00 2001 From: marcomusy Date: Mon, 6 May 2019 21:25:36 +0200 Subject: [PATCH] closewindow --- README.md | 2 +- examples/other/README.md | 2 +- examples/other/dolfin/README.md | 2 +- vtkplotter/dolfin.py | 3 ++- vtkplotter/vtkio.py | 4 ++-- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cbb976be..8fbb2939 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/examples/other/README.md b/examples/other/README.md index ac7f5780..94fa80b4 100644 --- a/examples/other/README.md +++ b/examples/other/README.md @@ -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)
`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)
`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)
`export_x3d.py` | Embed a 3D scene in a webpage with x3dom. | diff --git a/examples/other/dolfin/README.md b/examples/other/dolfin/README.md index ed68576b..0d191575 100644 --- a/examples/other/dolfin/README.md +++ b/examples/other/dolfin/README.md @@ -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)
`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)
`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)
`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). | diff --git a/vtkplotter/dolfin.py b/vtkplotter/dolfin.py index 7365bb2f..b97ccba3 100644 --- a/vtkplotter/dolfin.py +++ b/vtkplotter/dolfin.py @@ -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 @@ -102,6 +102,7 @@ "plotMatrix", "isolines", "exportWindow", + "closeWindow", "interactive", ] diff --git a/vtkplotter/vtkio.py b/vtkplotter/vtkio.py index 0e0171ce..20189717 100644 --- a/vtkplotter/vtkio.py +++ b/vtkplotter/vtkio.py @@ -640,9 +640,9 @@ def exportWindow(fileoutput, binary=False, speed=None, html=True): .. hint:: |export_x3d| |export_x3d.py|_ - `generated webpage `_ + `generated webpage `_ - See also: FEniCS test `webpage `_. + See also: FEniCS test `webpage `_. ''' fr = fileoutput.lower() if ".obj" in fr: