How to update markupsCurve info when it terminated right-click end?

Hi all,

I am using the PointModifiedEvent to update curve information when drawing a curve.

When I end the curve drawing interaction with a right-click, I noticed that information from undefined parts remains.

To address this, I tried using the PointEndInteractionEvent, but I found that it is not called when ending the curve drawing with a right-click.

What can I do to solve this issue?

(I want to update only the information defined up to the last point when ending the curve drawing with a right-click

I found solution about this, through simply added ‘vtk.vtkCommand.ModifiedEvent’

self.addObserver(self.node, vtk.vtkCommand.ModifiedEvent, self.function)

1 Like