<div dir="ltr"><div>Hi!<br><br></div>I want to get a subset of vtkPolyData with vtkExtractPolyDataGeometry:<br><div><pre style="font-family:Consolas;color:gainsboro;background:rgb(30,30,30) none repeat scroll 0% 0%"><span style="color:rgb(189,99,197)">VTK_CREATE</span><span style="color:rgb(180,180,180)">(</span><span style="color:rgb(78,201,176)">vtkBox</span><span style="color:rgb(180,180,180)">,</span> <span style="color:rgb(200,200,200)">box</span><span style="color:rgb(180,180,180)">);</span>
<span style="color:rgb(200,200,200)">box</span><span style="color:rgb(180,180,180)">-></span><span style="color:rgb(200,200,200)">SetBounds</span><span style="color:rgb(180,180,180)">(</span><span style="color:rgb(127,127,127)">values</span><span style="color:rgb(180,180,180)">);</span>
 
<span style="color:rgb(189,99,197)">VTK_CREATE</span><span style="color:rgb(180,180,180)">(</span><span style="color:rgb(78,201,176)">vtkExtractPolyDataGeometry</span><span style="color:rgb(180,180,180)">,</span> <span style="color:rgb(200,200,200)">extract</span><span style="color:rgb(180,180,180)">);</span>
<span style="color:rgb(200,200,200)">extract</span><span style="color:rgb(180,180,180)">-></span><span style="color:rgb(200,200,200)">SetInputConnection</span><span style="color:rgb(180,180,180)">(</span><span style="color:rgb(200,200,200)">appendFilter</span><span style="color:rgb(180,180,180)">-></span><span style="color:rgb(200,200,200)">GetOutputPort</span><span style="color:rgb(180,180,180)">());</span>
<span style="color:rgb(200,200,200)">extract</span><span style="color:rgb(180,180,180)">-></span><span style="color:rgb(200,200,200)">SetImplicitFunction</span><span style="color:rgb(180,180,180)">(</span><span style="color:rgb(200,200,200)">box</span><span style="color:rgb(180,180,180)">);</span>
<span style="color:rgb(200,200,200)">extract</span><span style="color:rgb(180,180,180)">-></span><span style="color:rgb(200,200,200)">ExtractBoundaryCellsOn</span><span style="color:rgb(180,180,180)">();</span>
<span style="color:rgb(200,200,200)">extract</span><span style="color:rgb(180,180,180)">-></span><span style="color:rgb(200,200,200)">PassPointsOn</span><span style="color:rgb(180,180,180)">();</span>
<span style="color:rgb(200,200,200)">extract</span><span style="color:rgb(180,180,180)">-></span><span style="color:rgb(200,200,200)">Update</span><span style="color:rgb(180,180,180)">();</span></pre><pre style="font-family:Consolas;color:gainsboro;background:rgb(30,30,30) none repeat scroll 0% 0%"><span style="color:rgb(78,201,176)">vtkPolyData</span><span style="color:rgb(180,180,180)">*</span> <span style="color:rgb(200,200,200)">tmp</span> <span style="color:rgb(180,180,180)">=</span> <span style="color:rgb(200,200,200)">extract</span><span style="color:rgb(180,180,180)">-></span><span style="color:rgb(200,200,200)">GetOutput</span><span style="color:rgb(180,180,180)">();</span>
</pre>The "new" vtkPolyData still has the same number of points as the original vtkPolyData, which confuses me, because the correct subset is displayed.<br><br></div><div>I guess I understand the filter wrong? How can I get a subset as new vtkPolyData?<br><br></div><div>Thank you very much!<br></div></div>