Skip to content
Branch: master
Find file History
Latest commit 164008e Aug 19, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
dolfin 4.3 Aug 19, 2019
trimesh 4.3 Aug 19, 2019
README.md closewindow May 6, 2019
colorpalette.py vers bump Mar 11, 2019
create_logo.py notebooks Jun 3, 2019
downloading.py fixes Jun 22, 2019
export_numpy.py 4.0 Jul 17, 2019
export_x3d.py 4.3 Aug 19, 2019
icon.py jupiter support May 28, 2019
inset.py 3.0 May 16, 2019
makeVideo.py jupiter support May 28, 2019
menger_fractal.ipynb 4.3 Aug 19, 2019
menger_fractal.py 4.1 Aug 4, 2019
printc.ipynb 4.2 Aug 13, 2019
printc.py dolfin Mar 25, 2019
qt_window.py 3.4 Jun 24, 2019
qt_window_split.py 4.1 Aug 4, 2019
remesh_ACVD.py 3.5 Jul 3, 2019
remesh_meshfix.py 3.5 Jul 3, 2019
save_as_numpy.py 4.0 Jul 17, 2019
self_org_maps2d.py 4.3 Aug 19, 2019
self_org_maps3d.py dolfin Mar 25, 2019
sierpinski.ipynb 4.3 Aug 19, 2019
sierpinski.py notebooks Jun 3, 2019
spherical_harmonics1.py jupyter support May 28, 2019
spherical_harmonics2.py 2.0 May 6, 2019
tf_learn_embryo.py 4.0 Jul 17, 2019
tf_learn_volume.py 4.1 Aug 4, 2019
value-iteration.ipynb 4.2 Aug 13, 2019
value-iteration.py 4.2 Aug 13, 2019
voronoi3d.py 4.3 Aug 19, 2019

README.md

Other examples

In this directory you will find other special examples, or examples that might need other external modules.

git clone https://github.com/marcomusy/vtkplotter.git
cd vtkplotter/examples/other
python example.py  # on mac OSX try 'pythonw' instead

(click thumbnail image to get to the python script)

colorpalette
colorpalette.py
Generate a list of N colors starting from color1 to color2 in RGB or HSV space.
icon
icon.py
Make an icon image and place it in one of the 4 corners.
inset
inset.py
Generate a draggable inset rendering of a set of actors.
logosh
spherical_harmonics1.py
First part of the example:
intersect an actor with lines from the origin with intersectWithLine() method and draw the intersection points in blue.
Second part of the example:
expand an arbitrary closed shape in spherical harmonics using package SHTOOLS and then truncate the expansion to a specific lmax and reconstruct the projected points in red.
logosh
spherical_harmonics2.py
Morph one shape into another using spherical harmonics package SHTOOLS. In this example we morph a sphere into a octahedron and viceversa.
makevideo
makeVideo.py
Make a video of a rotating spider (needs linux ffmpeg).
Set offscreen=True to only produce the video without any graphical window showing.
printc
printc.py
Printing in colors to the terminal.
Available colors:
0-black, 1-red, 2-green, 3-yellow, 4-blue, 5-magenta, 6-cyan, 7-white
Available modifiers:
c (foreground color), bc (background color), hidden, bold, blink, underline, dim, invert, box
som2d
self_org_maps2d.py
Self organizing maps (by N. Rougier).
maze
value-iteration.py
Solve a random maze with Markovian Decision Process (by N. Rougier).
tf_learnvol
tf_learn_embryo.py
Use TensorFlow to learn the value of a scalar defined in a volume.
expo
export_x3d.py
Embed a 3D scene in a webpage with x3dom.
You can’t perform that action at this time.