<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hallo vtkUsers,</div>
<div> </div>
<div>I have a general question regarding the vtkGeometryFilter.</div>
<div>I use this filter to make my vtkPolyData smaller.</div>
<div>But it seems that it only disables the clipped points, but keeps them in the polydata set.</div>
<div>I'll try to give an example here:</div>
<div> </div>
<div>
<div> vtkSmartPointer<vtkSphereSource> sphereSource =<br/>
vtkSmartPointer<vtkSphereSource>::New();<br/>
sphereSource->SetCenter(0.0, 0.0, 0.0);<br/>
sphereSource->SetRadius(5.0);<br/>
vtkSmartPointer<vtkPolyData> sphereSourcePD = vtkSmartPointer<vtkPolyData>::New();<br/>
sphereSourcePD = sphereSource->GetOutput();<br/>
vtkSmartPointer<vtkGeometryFilter> geometryFilter =<br/>
vtkSmartPointer<vtkGeometryFilter>::New();<br/>
geometryFilter->SetInput(sphereSourcePD);<br/>
geometryFilter->SetExtent(-5.0, 0.0, -5.0,0.0,-5.0,0.0);<br/>
geometryFilter->ExtentClippingOn();<br/>
geometryFilter->Update();</div>
<div> vtkSmartPointer<vtkPolyData> sphereSourceClipped = vtkSmartPointer<vtkPolyData>::New();<br/>
sphereSourceClipped = geometryFilter->GetOutput();</div>
<div> </div>
<div>cout << " NUmber of points in spheresource: " << sphereSourcePD->GetNumberOfPoints() << endl;<br/>
cout << " NUmber of points in clipped Polydata: " << sphereSourceClipped->GetNumberOfPoints() << endl;</div>
<div> </div>
</div>
<div> </div>
<div> </div>
<div>Output is:</div>
<div>NUmber of points in spheresource: 50</div>
<div>NUmber of points in clipped Polydata: 50</div>
<div> </div>
<div>Is there a way that I can use this filter (or any other one) to really clip my polydata and make it smaller?</div>
<div> </div>
<div>Any help would be much appreciated!</div>
<div>Best,</div>
<div>Susi</div></div></body></html>