diff --git a/docs/changes.md b/docs/changes.md index de480ce1..db9ed790 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -1,14 +1,15 @@ ## Main changes +- Important fixes for numpy 1.24 - 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. -- fix on OSX window focusing -- fixes for numpy 1.24 +- `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 ------------------------- @@ -20,10 +21,4 @@ examples/other/pymeshlab1.py examples/other/pymeshlab2.py -### Still Broken -examples/simulations/lorenz.py -examples/simulations/orbitals.py -examples/other/meshio_read.py - - diff --git a/examples/run_all.sh b/examples/run_all.sh index 50666fee..87baeca5 100755 --- a/examples/run_all.sh +++ b/examples/run_all.sh @@ -34,7 +34,7 @@ vedo ../data/2*.vtk echo '----------------------------' echo vedo ../data/2*.vtk -vedo -ni -k glossy data/2*.vtk +vedo -ni -k glossy ../data/2*.vtk echo '----------------------------' echo vedo -s "../data/2??.vtk" diff --git a/examples/simulations/airplane1.py b/examples/simulations/airplane1.py index e1bf16d8..51387c8e 100644 --- a/examples/simulations/airplane1.py +++ b/examples/simulations/airplane1.py @@ -14,7 +14,7 @@ if t==0: airplane.add_trail(n=200).add_shadow('z', -4) plt.show(world, airplane, __doc__, viewup="z", resetcam=False) - #plt.process_events() + # plt.process_events() plt.interactive().close() diff --git a/vedo/plotter.py b/vedo/plotter.py index 920193f7..0de11d47 100644 --- a/vedo/plotter.py +++ b/vedo/plotter.py @@ -29,33 +29,33 @@ "close", ] -######################################################################################################## +######################################################################################## class Event: """Event class""" # this class holds the info from an event in the window, works as dictionary too __slots__ = [ - "name", - "title", - "id", - "time", - "priority", - "at", - "actor", - "picked3d", - "keyPressed", # obsolete, will disappear. Use "keypress" - "keypress", - "picked2d", - "delta2d", - "angle2d", - "speed2d", - "delta3d", - "speed3d", - "isPoints", - "isMesh", - "isAssembly", - "isVolume", - "isPicture", - "isActor2D", + "name", + "title", + "id", + "time", + "priority", + "at", + "actor", + "picked3d", + "keyPressed", # obsolete, will disappear. Use "keypress" + "keypress", + "picked2d", + "delta2d", + "angle2d", + "speed2d", + "delta3d", + "speed3d", + "isPoints", + "isMesh", + "isAssembly", + "isVolume", + "isPicture", + "isActor2D", ] def __init__(self): @@ -82,7 +82,7 @@ def keys(self): return self.__slots__ -######################################################################################################## +############################################################################################## def show( *actors, at=None, @@ -2057,7 +2057,7 @@ def _legfunc(evt): tp = "Mesh " elif evt.isPoints: tp = "Points " - # elif evt.isVolume: # todo -not working + # elif evt.isVolume: # tp = "Volume " elif evt.isPicture: tp = "Pict " @@ -2951,6 +2951,11 @@ def show( if not ia: continue + + # if hasattr(ia, "shadows"): + # for ias in ia.shadows: + # # print([ias.name]) + # self.renderer.RemoveActor(ias) self.renderer.AddActor(ia) diff --git a/vedo/version.py b/vedo/version.py index 04adf0d1..acca6516 100644 --- a/vedo/version.py +++ b/vedo/version.py @@ -1 +1 @@ -_version='2022.4.2.dev8' +_version = '2022.4.3'