[vtkusers] failure in vtkMapper::GetBounds()

John Platt jcplatt at dsl.pipex.com
Wed Oct 5 15:29:52 EDT 2016


Hi,

I have recently had a failure in vtkMapper::GetBounds() (VTK 5.10) where 
the vtkDataSet returned by GetInput() is deleted by Update().

This appears to happen when the input type to my vtkDataSetMapper has 
been switched from vtkPolyData to vtkUnstructuredGrid then back to 
vtkPolyData.

It can be fixed by getting the input again after Update() ...

     this->Update();

     input = this->GetInput();

If switching the input type to the mapper is not a valid operation, then 
just a comment as to why this may fail would be useful. Apologies if 
this has already been addressed in later versions.

Thanks,

John.




More information about the vtkusers mailing list