Skip to content

Commit

Permalink
small fixes to FreeHandCutPlotter
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomusy committed Jun 21, 2023
1 parent 91bf40c commit 851fb72
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vedo/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,7 @@ def _on_right_click(self, evt):
self.spline = Line(self.cpoints, closed=True)
self.spline.lw(self.linewidth).c(self.linecolor).pickable(False)
self.add(self.spline)
self.render()

def _on_mouse_move(self, evt):
if self.drawmode:
Expand Down Expand Up @@ -1016,7 +1017,7 @@ def _on_keypress(self, evt):
mcut.info = self.mesh.info
self.mesh = mcut # discard old mesh by overwriting it
self.txt2d.text(self.msg).background(self.color) # put back original message
self.add(mcut)
self.add(mcut).render()

elif evt.keypress == 'u': # Undo last action
if self.drawmode:
Expand All @@ -1039,9 +1040,9 @@ def _on_keypress(self, evt):
try:
self.remove(self.axes_instances[0])
self.axes_instances[0] = None
self.add_global_axes(axtype=1, c=None)
self.add_global_axes(axtype=1, c=None, bounds=self.mesh.bounds())
self.renderer.ResetCamera()
self.interactor.Render()
self.render()
except:
pass

Expand Down

0 comments on commit 851fb72

Please sign in to comment.