Vedo

Latest version: v2024.5.2

Safety actively analyzes 682244 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 10

2023.4.3

Main changes

- Important fixes for `numpy 1.24` jo-mueller (also relevant to https://github.com/brainglobe/brainrender/issues/226#issue-1536800285 by FedeClaudi johnmbarrett )
- fixed interface to `pymeshlab==2022.2.post2`
- fixed 774 `intersect_with_line()`
- fixed exporting to x3d for assemblies
- added support to calarbars into assemblies, thanks to j042 in 779
- fix typos 780
- `settings.allow_interaction` is now (temporarily) disabled.
- added example `basic/shadow3.py` (thanks to paul0noah in 767)
- fix on OSX window focusing
- various fixes for windows OS

* add VTK_HEXAHEDRON to vedo.vtkclasses by j042 in https://github.com/marcomusy/vedo/pull/762
* minor typo fix by j042 in https://github.com/marcomusy/vedo/pull/780
* Keep scalarbar(s) in Assembly by j042 in https://github.com/marcomusy/vedo/pull/779

New Contributors
* j042 made their first contribution in https://github.com/marcomusy/vedo/pull/762

New/Revised examples

examples/basic/shadow3.py
examples/other/pymeshlab1.py
examples/other/pymeshlab2.py


**Full Changelog**: https://github.com/marcomusy/vedo/compare/v2022.4.2...v2023.4.3

2022.4.2

Main changes

---
`base.py`
- added `basegrid.extract_cells_on_plane()`
- added `basegrid.extract_cells_on_sphere()`
- added `basegrid.extract_cells_on_cylinder()`
- added `count_vertices()` method
- added `copy_data_from()` method to transfer all cell and point data from an object to another.
- fixed `metadata` association

---
`pointcloud.py`
- added `cut_with_planes()` to cut at once with multiple planes
- added `generate_random_data()` for testing purposes
- renamed `vignette()` to `flagpole()`
- added new `flagpost()` similar to the above
- added new property `pointcloud.cellcolors`and `pointcolors`
to access and modify colors by RGBA assignment.
- added `compute_camera_distance()` to calculate the distance from points to the camera.
A pointdata array is created with name 'DistanceToCamera'.
- added `cut_with_scalars()` to cut polygonal data with some input scalar data.


---
`mesh.py`
- improved `binarize()` method thanks to vfmatzkin
- added `collide_with()` to fix crashing of `intersect_with()` in special cases
- added `check_validity()`
- added `method=4` for `subdivide()`
- added `intersect_with_plane()`
- added `boolean(..., method=1)`
- added `intersect_with_multiplanes()` to generate a set of lines from cutting a mesh in n intervals
between a minimum and maximum distance from a plane of given origin and normal.

---
`plotter.py`
- fixed key bindings for uppercase hits.
- added method `add_hint()` to generate a pop-up message on hovering an object
- fix output of template camera when pressing "C"
- improved `move_camera()`
- added key-press `R` to reset camera viewup to closest orthogonal viewup
added corresponding method `plotter.reset_viewup()`
- added press `.` to fly to last clicked point and zoom in

---
`picture.py`
- generate false colors for an image with `Picture().cmap()`

---
`pyplot.py`
- clicking on a histogram shows the bin value
- add `as2d()` method to freeze a plot in 2d canvas, without mouse interaction (experimental)

---
`shapes.py`
- Added support for chinese and japanese chars
- Added font "ComicMono"
- added possibility to create a disc sector in `Disc(angle_range=...)`

---
`tetmesh.py`
- added `compute_tets_volume()`
- added `check_validity()`

---
`volume.py`
- added `vtkFlyingEdges3D` instead of contouring, which is faster.


-------------------------
Examples

New/Revised

examples/basic/color_mesh_cells1.py
examples/basic/color_mesh_cells2.py
examples/pyplot/fit_curve.py
examples/pyplot/histo_2d_a.py
examples/pyplot/histo_2d_b.py
examples/other/flag_labels2.py
examples/volumetric/image_false_colors.py

2022.4.1

python
mesh = Mesh("bunny.obj")
mesh.cut_with_plane() <----

Check out the docs in case of doubts.


See discussion 705
jkissi zhang-qiang-github XushanLu Gjacquenot FedeClaudi ManuGraiph infinity77 lukablagoje LogWell Amin-Fakia nantille



---
`addons.py`
- improved slider callback interface


---
`mesh.py`
- fixed issue 593

---
`volume.py`
- can warp scalars in a volumetric dataset with `warp()`


New/Revised Examples

examples/pyplot/fill_gap.py
examples/basic/sliders_hsv.py
examples/volumetric/slicer2.py
examples/volumetric/warp_scalars.py
examples/other/qt_window3.py

2022.3.1

python
mesh = Mesh("bunny.obj")
mesh.cutWithPlane()

2022.3.0

Main changes

- `pep8` parsing with pylint and general cleanup of the code.
- `Volume(np_array)` does not need array to be transposed anymore. **Warning: this may cause flipping of the x-z axes!**

---
`applications.py`
- added `SplinePlotter` object

---
`pointcloud.py`
- bug fix in `clone()`
- added `labels2D()`
- added logscale for colormapping in method `cmap(..., logscale=True)`
- added explicit label formatting for scalarbars, XushanLu

---
`plotter.py`
- added `breakInteraction()` to break window interaction and return to the python execution flow

---
`picture.py`
- added class `MatplotlibPicture` to embed matplotlib figures as 2d objects in the scene.

---
`shapes.py`

- Added `text()` method to update 3d text on the fly, by mkerrin
- Added `pcaEllipse()` analogous to `pcaEllipsoid()` for 2D problems.

---
`utils.py`
- added `getUV()` method to get the texture coordinates of a 3D point

---
`volume.py`
- `Volume(np_array)` does not need array to be transposed anymore. **Warning: this may cause flipping of the x-z axes!**
- added `slicePlane(autocrop=False)`

-------------------------
Examples

New/Revised

examples/basic/input_box.py
examples/basic/pca_ellipse.py
examples/advanced/capping_mesh.py
examples/volumetric/numpy2volume2.py
examples/volumetric/numpy2volume1.py
examples/pyplot/fourier_epicycles.py
examples/pyplot/histo_pca.py
examples/pyplot/histo_1d_b.py
examples/other/flag_labels.py
examples/other/remesh_tetgen.py
examples/other/pymeshlab2.py

2022.2.3

This release includes various improvements and bug fixes


---
`base.py`
- `alignToBoundingBox()` change the default behavior to match exactly the target (affine transform) jsaintauret
- added `getRGBA()` to obtain the actual colors from an object as rendered

---
`pointcloud.py`
- `addTrail()` simplified.

---
`mesh.py`
- `isInside(..., returnIds=True)` fixed bug

---
`plotter.py`
- added `lookAt(plane='xy')` to move the camera to face one of the cartesian planes
- removed `plotter.load()` as not really necessary and potentially confusing

---
`pyplot.py`
- add legends to Figures thanks to new method `addLegend()`

---
`shapes.py`
- moved `volume.streamLines` to `shapes.StreamLines`

---
`volume.py`
- added `mask(vol)` to mask the visualization of a volume


-------------------------
Examples

New/Revised

examples/basic/shadow2.py
examples/basic/deleteMeshPoints.py
examples/basic/ssao.py
examples/basic/align6.py
examples/basic/pca_ellipsoid.py
examples/advanced/gyroid.py
examples/volumetric/volumeOperations.py
examples/volumetric/streamlines1.py

examples/simulations/orbitals.py
examples/simulations/mag_field1.py
examples/simulations/mag_field2.py
examples/simulations/pendulum_3d.py

examples/pyplot/histo_1d_b.py
examples/pyplot/fitPolynomial1.py
examples/pyplot/plot_extra_yaxis.py

examples/other/pygeodesic1.py
examples/other/qt_cutter.py


Deleted

examples/other/animation1.py
examples/other/animation2.py
examples/simulations/alien_life.py
examples/simulations/cell_colony.py

Page 2 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.