Hi David,<br>
<br>
In further tests, I noticed that scalar point data is not passed through on the
clipped poly data. This seems to be fixed by uncommenting lines around 311-320 of vtkClipClosedSurface.cxx in the latest version.<br>
<br>
Any reason this support is disabled?<br>
<br>
Thanks<br>
<br>Casey<br><br><div class="gmail_quote">On Thu, Apr 8, 2010 at 9:19 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com">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 Casey,<br>
<br>
Try out the vtkClipClosedSurface that I just committed this morning.<br>
I've made some changes to the code so that works with zero tolerance<br>
now.<br>
<div class="im"><br>
David<br>
<br>
<br>
On Wed, Apr 7, 2010 at 12:38 PM, Casey Goodlett<br>
<<a href="mailto:casey.goodlett@kitware.com">casey.goodlett@kitware.com</a>> wrote:<br>
</div><div><div></div><div class="h5">> 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<br>
> despite having watertight inputs. I was able to fix this, at least for my<br>
> cases, by setting the tolerance to zero in the point locator on line 309. I<br>
> think because I have very narrow triangles near the clipping surface some<br>
> points are getting merged by the point locator and the resulting cap polygon<br>
> ends up with a small hole.<br>
><br>
> Any reason I should not be doing that? Should the locator have a zero<br>
> tolerance, or could we set a user controllable tolerance to the class?<br>
><br>
> Thanks<br>
><br>
> Casey Goodlett<br>
><br>
> On Tue, Mar 30, 2010 at 9:16 AM, David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> wrote:<br>
>><br>
>> 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>
>> <<a href="mailto:will.schroeder@kitware.com">will.schroeder@kitware.com</a>> wrote:<br>
>> > David-<br>
>> > This is good timing. Hua has been looking into the problem too. We came<br>
>> > up<br>
>> > with an initial, very limited solution and it will be good to have a<br>
>> > 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<br>
>> > 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">david.gobbi@gmail.com</a>><br>
>> > 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>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <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>
><br>
><br>
><br>
</div></div></blockquote></div><br>