Changelogs » Vedo

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



**Main changes**
  - mesh and volume data is moved from the package to
  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"`
  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.
  - `Ruler()`: create a 3D ruler to indicate the distance of two points
  - `buildRulerAxes()`: a new axis style (7) formed by 3 rulers
  - many improvements to default axis style 1
  - New axis style 11: generates a thin lined square floor
  - `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.
  - added `resampleArrays()`
  - `systemReport()`
  - class dotdict: A dictionary supporting dot notation.
  - `trimesh2vtk()` -> `trimesh2vedo()`  (check YimingXu1213)
  - `vtk2trimesh()` -> `vedo2trimesh()`
  - 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()`
  - `useBounds()` tells the camera to keep inot account mesh when resetting
  - added `gradient()` to return the gradient of the input scalar as numpy array
  - `convexHull()` -> `ConvexHull()`
  - added `VedoLogo()` to generate the 3D logo of the package
  - major improvements to `Text()`
  - 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`


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
  - `` moved to ``
  - 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


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


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


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


- 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`


various fixes


- various bug fixes


- 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)


- 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


- 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:
  from vtkplotter import *
  - Added wavefront format .OBJ writer


- 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`
  or list them all with
  `vtkplotter --list`
  - reshuffled methods by splitting module
  - general improvements and stability
  - some methods are now deprecated: getPoints becomes points() etc.
  - Actor() becomes Mesh()
  - added advanced/ examples


- 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 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


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


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


- improved histogramming
  - minor bug fixes


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


- 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


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


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


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


- qt fixes
  - tensors visulization
  - minor improvements


- various fixes


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


- i/o semplification


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


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


- x3dom for embeeding into web pages
  - closing windows


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


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