vtkExtractSelectedLocationsCopyCells performance
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
In 6.1.0 code of vtkExtractSelectedLocations.cxx:vtkExtractSelectedLocationsCopyCells : the if-statement for deciding on special handling of polyhedron cells is unnecessarily time-consuming: the safe-downcasts can be done before the loop over all cells. Holding a local ptr to the input vtkUnstructuredGrid is useful also if the test succeeds because there the same safe-downcast is done.
I include a suggested implementation of the routine.