Changelogs » Vedo

PyUp Safety actively tracks 267,799 Python packages for vulnerabilities and notifies you when to upgrade.

Vedo

2020.4.0

**Main changes**
  - mesh and volume data is moved from the package to vedo.embl.es/examples/data
  https://vedo.embl.es/examples/data/
  they are downloaded on the fly and cached
  - 14 new polygonized 3D fonts are available, making the old vtk default obsolete
  Font:  Bongas
  Font:  Calco
  Font:  Comae
  Font:  Glasgo
  Font:  Inversionz
  Font:  Kanopus
  Font:  LionelOfParis
  Font:  LogoType (supports Russian, Japanese and Chinese chars)
  Font:  Normografo
  Font:  Quikhand
  Font:  SmartCouric
  Font:  Theemim
  Font:  VictorMono
  
  Default font is *Normografo*, can be changed with e.g.
  `settings.useDefaultFont = "Theemim"`
  
  ![](https://user-images.githubusercontent.com/32848391/90966829-9bba4980-e4d7-11ea-9ec8-23bac4b7448e.png)
  
  ![](https://user-images.githubusercontent.com/32848391/90437540-dd5f8480-e0d2-11ea-8ddc-8839688979d0.png)
  
  Latex-like syntax is supported in `Text()` allowing to use Greek and math symbols in axes and plot titles:
  Type `vedo -r fonts` to generate the above tables.
  
  **addons**:
  - `Ruler()`: create a 3D ruler to indicate the distance of two points
  - `buildRulerAxes()`: a new axis style (7) formed by 3 rulers
  ![](https://user-images.githubusercontent.com/32848391/90437544-dd5f8480-e0d2-11ea-8321-b52d073444c4.png)
  - many improvements to default axis style 1
  - New axis style 11: generates a thin lined square floor
  
  **Plotter**:
  - `show(..., newplotter=True)` -> `show(..., new=True)`
  - added methods: `render(), resetCamera()` and `backgroundColor(c1, c2, at)`
  - can now change transparency using arrow keys instead of "m,./"
  Pressing -+ cycles through available axes styles.
  
  **utils**:
  - added `resampleArrays()`
  - `systemReport()`
  - class dotdict: A dictionary supporting dot notation.
  - `trimesh2vtk()` -> `trimesh2vedo()`  (check YimingXu1213)
  - `vtk2trimesh()` -> `vedo2trimesh()`
  
  **io**:
  - can now save and load object transformation to .mat file
  
  **mesh** and **pointclouds**:
  - coloring with `pointColors()` and `cellColors()` is merged into method `cmap()`
  - meshes can be described by new `vignette()` and `caption()`
  ![](https://user-images.githubusercontent.com/32848391/90437536-dc2e5780-e0d2-11ea-8951-f905ffb54f54.png)
  - `useBounds()` tells the camera to keep inot account mesh when resetting
  - added `gradient()` to return the gradient of the input scalar as numpy array
  
  **shapes**:
  - `convexHull()` -> `ConvexHull()`
  - added `VedoLogo()` to generate the 3D logo of the package
  - major improvements to `Text()`
  
  **examples**:
  - new or updated examples are:
  `vedo -r isolines`
  `vedo -r silhouette2`    (thanks to zhouzq-thu )
  `vedo -r meshquality `
  `vedo -r mesh_smoother2`
  `vedo -r vpolyscope`   (needs pip install polyscope)
  `vedo -r flag_labels`
  `vedo -r customAxes`
  `vedo -r fonts3d`
  `vedo -r scatter2`
  `vedo -r scatter3`
  `vedo -r covid19`
  `vedo -r caption`

2020.3.4

Various improvements
  - new examples:
  `vedo -r multi_viewer`
  `vedo -r clone2d`
  `vedo -r plot_density`
  - read files and scenes from dropbox and/or web links
  - `vtkio.py` moved to `io.py`
  - fixed bug jsanchez679 in `cutWithMesh()`
  - `mesh.normalize()` does not shift to origin the mesh anymore
  - improved axes=10 and axes=5 customization
  - requires vtk<=8.1.2 as vtk-9 seems to have a lot of issues

2020.3.3

- fixed bug for `obj` format writing by FedeClaudi
  - fixed bug on Text2D justification

2020.3.1

- Various improvements and fixes
  - better support for tetrahedral meshes
  - non-blocking example added
  - 3d text supports super/subscripts
  - automatically detect spyder environment

2020.3.0

General changes:
  - addPointScalars and addPointVectors now are merged into new `addPointArray()` method.
  - addCellScalars and addCellVectors now are merged into new `addCellArray()` method.
  - added `mesh.isobands()` to produce color bands for scalars in a mesh, analogous to `isolines()`
  - completely revised `addScalarbar` and `addScalarBar3D` which now works also for volumes.
  - can export a full html page with `k3d` with `exportWindow("page.html")`
  
  New `application` module contains more elaborated and high level functionalities:
  - `Slicer()` to generate a ``Plotter`` window with slicing planes for the input Volume.
  - `Slicer2d()` creates a 2D window with a single balck and white slice of a Volume, which can be oriented arbitrarily in space.
  - `RayCaster()`  generates a ``Plotter`` window for volume rendering using ray casting.
  - `IsosurfaceBrowser()` generates a ``Plotter`` window for Volume isosurfacing using a slider.
  - `Browser()` generates a ``Plotter`` window to browse a list of objects using a slider.
  
  In `backends` module for jupyter notebooks:
  - Updated `k3d`  interface to add mesh and volumes names in the rendering menu
  - Improved rendering for lines.
  
  In `volume` module:
  - added `slicePlane()` to slice a volume in arbitrary orientation

2020.2.4

- Minor improvements.
  - API change in `smoothMLS2D()` and `smoothMLS1D()`
  - all examples can be run from command line e.g.
  `vtkplotter -ir covid19`
  or listed with
  `vtkplotter --list`

2020.2.3

various fixes

2020.2.1

- various bug fixes

2020.2.0

- improved `vtkplotter.pyplot` submodule
  - background color now defaults to white
  - added `Mesh.idLabels()` to generate cells and point ID labels
  - methods like `rotateX().pos()` now operate in left-to-right order  (as it should be)
  - Text is split into Text2D and Text (for 3D)

2020.1.0

- revised plotting
  - added matplotlib-like syntax as in `plot()`
  - spherical histograms
  - background color now defaults to white
  - added `Mesh.idLabels()` to generate cells and point ID labels
  - added new examples and general cleanup
  - circleCI now works for the stable fenics release

2020.0.2

- Added shapes Arrow2D and Arrows2D, SphericGrid, CubicGrid
  - completely revised customizable axes=1 type
  - axes can be created for each object independently
  - quiver plots, scatter plots, error bands plots
  - plotting in spherical coordinates
  - Added type '2d' backend to plot static images in notebooks.
  Available backends:
  python
  from vtkplotter import *
  embedWindow('2d')
  embedWindow('k3d')
  embedWindow('itk')
  embedWindow('panel')
  embedWindow(False)
  
  - Added wavefront format .OBJ writer

2020.0.1

- added type axes=11 (horizontal grid)
  - fix bug by m-albert on ``Volume`` from numpy object
  - fix typos in docs
  - change old fashioned list(zip()) to np.stack()
  - change [0]*len(z) to np.zeros_like(z)
  - add testing directory with circleCI
  - examples and package are now split into two separate repos
  - added possibility to run any example from CLI
  `vtkplotter --run shrink.py`
  or list them all with
  `vtkplotter --list`
  - reshuffled methods by splitting actors.py module
  - general improvements and stability
  - some methods are now deprecated: getPoints becomes points() etc.
  - Actor() becomes Mesh()
  - added advanced/centerline.py examples

2019.4.10

- added PDV paraview file reading.
  - PDB protein data bank file reader
  - added error bars in plotxy()
  - fast fitting of 2d circles with utils.fitCircle2D()
  - added flag-style pop-up labels for meshes and volumes
  - added settings for resolving polygonal clashes with mesh edges
  - built in set of parametric surfaces in shapes.py module
  - improved plotting2d with error bars
  - added warpMeshToPoint() method
  - improved texture control, can pass texture coords explicitly
  - fix trimesh problem with coloring vertices
  - can use "panel" backend in notebooks

2019.4.9

- various fixes
  - polar axes type `axes=11` added in `show()`

2019.4.6

- added new window shape descriptor (in examples/basic/multiwindows.py)
  - Kochanek-Bartel splining
  - polygon extrusion
  - select cells within input bounds

2019.4.5

- improved histogramming
  - minor bug fixes

2019.4.4

- added animation module
  - compatible with dolfin 2019, added new examples
  - pygmsh example
  - fixing of qt window opening in notebooks

2019.4.3

- added new itkwidgets as notebook backend (still incomplete)
  - fixed dangerous bug in utils.cart2spher(x, y, z), which can seriously affect analyses using it.
  - GUI for windows users, including a drag&drop icon
  - new keypress options (lighting/shading), improved response

2019.4.1

- improved support for trimesh
  - bug fixes
  - export dolfin xml format
  - k3d camera manipulation via vtkCamera obj

2019.4.0

- many small improvements and bug fixes
  - export objects and whole rendering scenes to numpy files.
  - visualization of tetrahedral meshes with examples

2019.3.5

- trimesh support
  - more volumetric examples and functions
  - i/o revised

2019.3.4

- qt fixes
  - tensors visulization
  - minor improvements

2019.3.3

- various fixes

2019.3.1

- support for jupyter notebooks via K3D
  - full axes customization
  - added new examples and notebooks

2019.3.0

- i/o semplification

2019.2.2

- added new examples for dolfin
  - various fixes
  - better lighting options

2019.2.1

- simple shadowing
  - python2 fix
  - 4 new examples
  - added new volumetric functions

2019.2.0

- x3dom for embeeding into web pages
  - closing windows

2019.1.6

- streamlines for dolfin
  - inset rendering
  - new examples added
  - small bug fixes

2019.1.5

- various fixes
  - extended dolfin examples
  - colored glyphs revised
  - mapping point scalars to cells and viceversa
  - automatic versioning via version.py