Skip to content

Box Cutter not Working after being removed from plot once #1263

@natabma

Description

@natabma

Image

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()

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions