<div dir="ltr">Hi Fabian,<div><br></div><div>Try this method:</div><div><br></div><div><div>  vtkPoints selectionPoints</div><div>    selectionPoints InsertNextPoint 1.0 1.0 1.0</div><div># etc...</div><div><br></div><div>
  vtkSelectPolyData select</div><div>    select SetLoop selectionPoints</div><div># connect your data here</div><div>    select SetInputConnection [mydataFilter GetOutputPort]</div><div>    select GenerateSelectionScalarsOn</div>
<div>    select SetSelectionModeToLargestRegion;</div><div><br></div><div>  vtkClipPolyData selectclip</div><div>    selectclip SetInputConnection [select GetOutputPort]</div><div>    selectclip SetValue 0.0</div><div><br>
</div><div>__________________</div><div><br></div><div>Define a loop (your &quot;window&quot;) by inserting points into selectionPoints.</div><div><br></div><div>Connect your data (&quot;wall&quot;) to the input of vtkSelectPolyData.</div>
<div><br></div><div><div>You can use vtkClipPolyData::InsideOutOn() to change the output from the &quot;window&quot; to &quot;wall&quot;</div><div><br></div><div>hth</div><div><br></div><div>Goodwin</div><br class="Apple-interchange-newline">
</div><br><div class="gmail_quote">On Thu, Mar 15, 2012 at 12:26 PM, Fabian <span dir="ltr">&lt;<a href="mailto:fabian-richter@gmx.de">fabian-richter@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello advanced vtkusers,<br>
<br>
I have some polydata (lets say a plane surface) and would like to cut a<br>
rectangular hole in it.<br>
I have read quite a bit about implicit functions and the vtkCutter; but I<br>
simply don&#39;t understand how to use it.<br>
<br>
Could You please give me a clue if I am searching in the right direction?<br>
Do You have better ideas how to cut my polydata? (I dont&#39; mean clipping...it<br>
is more like having a wall and cutting a window-opening).<br>
<br>
THANKS IN ADVANCED,<br>
Fabian<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-to-cut-a-hole-in-polydata-tp5567306p5567306.html" target="_blank">http://vtk.1045678.n5.nabble.com/How-to-cut-a-hole-in-polydata-tp5567306p5567306.html</a><br>

Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div></div>