<div dir="ltr">Hello all,<div><br></div><div>   I am trying to delete all nodes (user defined) in vtkContourWidget but the following code crashes when I call ClearAllNodes. Why is this? How to do it correctly?</div><div><br></div><div><div>vtkSmartPointer<vtkOrientedGlyphContourRepresentation> contourRepresentation = vtkSmartPointer<vtkOrientedGlyphContourRepresentation>::New();</div><div><br></div><div>drawWidget = vtkSmartPointer<vtkContourWidget>::New();</div><div>drawWidget ->SetRepresentation(contourRepresentation);</div><div>drawWidget ->SetInteractor(this->GetInteractor());</div></div><div>drawWidget->On();</div><div><br></div><div>   <span style="color:rgb(0,0,0);font-family:monospace,monospace;font-size:1em;line-height:1.2em;background-color:rgb(249,249,249)">vtkOrientedGlyphContourRepresentation *contourRepresentation = </span>   <span style="font-size:1em;color:rgb(0,0,0);font-family:monospace,monospace;line-height:1.2em;background-color:rgb(249,249,249)">vtkOrientedGlyphContourRepresentation::SafeDownCast(</span>vtkContourWidget->GetContourRepresentation()<span style="color:rgb(0,0,0);font-family:monospace,monospace;font-size:1em;line-height:1.2em;background-color:rgb(249,249,249)">);</span></div><div>   vtkContourWidget->GetContourRepresentation()->ClearAllNodes() //crash happens<br></div><div><br></div><div>Thanks,</div><div>Mengda</div></div>