-
Notifications
You must be signed in to change notification settings - Fork 273
Open
Labels
Description
After adding the Cutter to the Plotter, first everything works normal. After removing and re-adding it, it wont work anymore (see GIF). Am I missing something? Here is my code to facilitate enabling and disabling:
def onClickSelectDumpAreas(self):
if self.cutter==None:
self.cutter = vedo.BoxCutter(self.UserMesh)
if not self.cutter.widget.enabled:
self.cutter.on()
self.cutter.add_to(self.vplt)
self.cutter.widget.GetInteractor().Render()
def onClickDeleteNonSelectedAreas(self):
if self.cutter!=None:
if self.cutter.widget.enabled:
self.cutter.off()
self.cutter.remove_from(self.vplt)
self.cutter.widget.GetInteractor().Render()
self.vplt.render()