2020.4.0
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: VictorMonoDefault 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:
Typevedo -r fonts
to generate the above tables.
addons:
Ruler()
: create a 3D ruler to indicate the distance of two pointsbuildRulerAxes()
: 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
Plotter:
show(..., newplotter=True)
->show(..., new=True)
- added methods:
render(), resetCamera()
andbackgroundColor(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()
andcellColors()
is merged into methodcmap()
- meshes can be described by new
vignette()
andcaption()
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