# vtkPlaneWidget vtkProbeFilter speed issue

**URL:** https://discourse.vtk.org/t/vtkplanewidget-vtkprobefilter-speed-issue/1342
**Category:** Support
**Created:** [July 15, 2019, 8:09pm UTC](https://discourse.vtk.org/t/vtkplanewidget-vtkprobefilter-speed-issue/1342 "2019-07-15T20:09:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sean](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/f0a364/32.png) [@Sean](https://discourse.vtk.org/u/Sean)
#### Post date: [July 15, 2019, 8:09pm UTC](https://discourse.vtk.org/t/vtkplanewidget-vtkprobefilter-speed-issue/1342/1 "2019-07-15T20:09:10Z")

</div>

Hi,

The following is the work flow I used to probe a dynamic vector data volume and it output the correct results. However, it is quite slow (lagging) through the rendering. If I delete the line 5 (planeWidget-\>GetPolyData(plane); ), it becomes no lagging anymore but the results are not right. Could you explain how it works and any suggestion to replace line 5 to make it faster?

Thanks a lot.

Sean

```
vtkSmartPointer<vtkPlaneWidget> planeWidget;
vtkSmartPointer<vtkProbeFilter> probe;
vtkSmartPointer<vtkPolyData> plane;

```

1 planeWidget-\>SetOrigin(newOrigin[0], newOrigin[1], newOrigin[2]);  
2 planeWidget-\>SetPoint1(newPoint1[0], newPoint1[1], newPoint1[2]);  
3 planeWidget-\>SetPoint2(newPoint2[0], newPoint2[1], newPoint2[2]);

4 planeWidget-\>UpdatePlacement();  
5 planeWidget-\>GetPolyData(plane);

6 probe-\>SetSourceConnection(reader-\>GetOutputPort());  
7 probe-\>SetInputData(plane);  
8 probe-\>Update();
