<div dir="ltr">I added a Clean filter after the Tube filter, and that seemed to do the trick. There might be a problem with the orientation of the tube filter cap end that makes the distance test fail.<div><br></div><div>See the attached modification of your example.</div><div><br></div><div>Thanks,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 25, 2016 at 10:51 PM, hengxing pan <span dir="ltr"><<a href="mailto:pmopanhx@gmail.com" target="_blank">pmopanhx@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, Cory<div>I have tried to take out the points inside a tube to lines in the same programmable filter as you, but it turns out that there are always some points outside the tube which the filter can not get rid of. I have made a small example for you. Do you have any idea about this situation ?</div><span class="HOEnZb"><font color="#888888"><div>Hengxing</div></font></span><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-02-23 22:57 GMT+08:00 Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
Please load the attached state file that shows how to find the points<br>
inside an object. In this case, I use a Point Source to generate the<br>
points and a Sphere Source to generate the object. The Programmable<br>
Filter shows how to find the signed distance of points to the nearest<br>
surface, then threshold those points to select all whose signed<br>
distance is less than 0.<br>
<br>
HTH,<br>
Cory<br>
<div><div><br>
On Tue, Feb 23, 2016 at 6:15 AM, hengxing pan <<a href="mailto:pmopanhx@gmail.com" target="_blank">pmopanhx@gmail.com</a>> wrote:<br>
> Hi,all<br>
><br>
> I wrote the lines.vtk in binary format and the points.vtk in ASCII format<br>
> according to <a href="http://www.vtk.org/VTK/img/file-formats.pdf" rel="noreferrer" target="_blank">www.vtk.org/VTK/img/file-formats.pdf</a>.<br>
> The attached pictures show the process how I get the tubes(closed surfaces<br>
> which I thought the tubes are) ,then I want to find out the points which are<br>
> inside the tubes (blue area in the view3), but I don't know how to work it<br>
> out.<br>
> Now I'm desperate for achieving my aim, so please help me if you know how to<br>
> do it !<br>
> Thank you in advance !<br>
> pan hengxing<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
><br>
<span><font color="#888888"><br>
<br>
<br>
--<br>
Cory Quammen<br>
R&D Engineer<br>
Kitware, Inc.<br>
</font></span></blockquote></div><br></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>