<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Thank you, but I fear that will only make my whole PolyData smaller.</div>
<div>I need the same size, but want to get rid of the cut-off part of the PolyData.</div>
<div> </div>
<div> </div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Freitag, 25. April 2014 um 02:43 Uhr<br/>
<b>Von:</b> 关红彦 <ghy@tellyes.com><br/>
<b>An:</b> "Susanne Schmalkalt" <Susanne.Schmalkalt@gmx.de><br/>
<b>Betreff:</b> Re:[vtkusers] vtkGeometryFilter</div>
<div name="quoted-content">
<div style="line-height: 1.7;color: rgb(0,0,0);font-size: 14.0px;font-family: arial;">Try this class: <span style="font-family: "Lucida Grande" , Verdana , Geneva , Arial , sans-serif;font-size: 18.0px;font-weight: bold;line-height: normal;background-color: rgb(249,250,252);">vtkShrinkPolyData </span><br/>
<br/>
Hope it will help.
<div> </div>
<div>Susan. <br/>
<br/>
At 2014-04-24 21:21:06,"Susanne Schmalkalt" <Susanne.Schmalkalt@gmx.de> wrote:
<blockquote id="isReplyContent" style="PADDING-LEFT: 1.0ex;MARGIN: 0.0px 0.0px 0.0px 0.8ex;BORDER-LEFT: rgb(204,204,204) 1.0px solid;">
<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>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div></div></body></html>