Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomusy committed Jan 17, 2023
1 parent eaa30cd commit 371de27
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 37 deletions.
13 changes: 4 additions & 9 deletions docs/changes.md
Original file line number Diff line number Diff line change
@@ -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


-------------------------
Expand All @@ -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



2 changes: 1 addition & 1 deletion examples/run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/simulations/airplane1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

55 changes: 30 additions & 25 deletions vedo/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -82,7 +82,7 @@ def keys(self):
return self.__slots__


########################################################################################################
##############################################################################################
def show(
*actors,
at=None,
Expand Down Expand Up @@ -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 "
Expand Down Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion vedo/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
_version='2022.4.2.dev8'
_version = '2022.4.3'

0 comments on commit 371de27

Please sign in to comment.