Hi David,<br>
<br>
I tested this filter, and it seems very nice.  Thanks for adding this.<br>
<br>
In my test, I also ran into the problem with not getting
watertight outputs despite having watertight inputs.  I was able to fix
this, at least for my cases, by setting the tolerance to zero in the point locator on line 309.  I think because I have very narrow triangles near the clipping surface some points are getting merged by the point locator and the resulting cap polygon ends up with a small hole.<br>

<br>Any reason
I should not be doing that?  Should the locator have a zero tolerance, or could we set a user controllable tolerance to the class?<br>
<br>
Thanks<br><br>Casey Goodlett<br><br><div class="gmail_quote">On Tue, Mar 30, 2010 at 9:16 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Will,<br>
<br>
The vtkClipClosedSurface filter is in VTK cvs now. I've put together a<br>
wiki page here:<br>
<a href="http://www.vtk.org/Wiki/VTK/Closed_Surface_Clipping" target="_blank">http://www.vtk.org/Wiki/VTK/Closed_Surface_Clipping</a><br>
The test is Graphics/Testing/Tcl/TestClipClosedSurface.tcl<br>
<br>
  David<br>
<br>
<br>
On Wed, Mar 24, 2010 at 1:20 PM, Will Schroeder<br>
<div><<a href="mailto:will.schroeder@kitware.com" target="_blank">will.schroeder@kitware.com</a>> wrote:<br>
</div><div>> David-<br>
> This is good timing. Hua has been looking into the problem too. We came up<br>
> with an initial, very limited solution and it will be good to have a more<br>
> thorough approach. We are looking forward to seeing what you did.<br>
> I'm curious, did you create a filter to do this? How did you implement it in<br>
> VTK....<br>
> Will<br>
><br>
> On Wed, Mar 24, 2010 at 2:39 PM, David Gobbi <<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>> wrote:<br>
>><br>
>> Hi Will,<br>
>><br>
>> I've finally completed my code for clipping closed polydata shapes and<br>
>> creating new "cap" polygons so that the result is also a closed<br>
>> polydata.  The solution was more complicated than I originally<br>
>> thought.  After the branch I'll commit it to VTK.<br>
>><br>
>>   David<br>
</div><div><div></div><div>_______________________________________________<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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</div></div></blockquote></div><br><br>