[Paraview] How to determine that some points are inside some closed surfaces or not ?

Cory Quammen cory.quammen at kitware.com
Thu Mar 24 14:51:22 EDT 2016


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.

See the attached modification of your example.

Thanks,
Cory

On Thu, Feb 25, 2016 at 10:51 PM, hengxing pan <pmopanhx at gmail.com> wrote:

> Hi, Cory
> 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 ?
> Hengxing
>
> 2016-02-23 22:57 GMT+08:00 Cory Quammen <cory.quammen at kitware.com>:
>
>> Hi,
>>
>> Please load the attached state file that shows how to find the points
>> inside an object. In this case, I use a Point Source to generate the
>> points and a Sphere Source to generate the object. The Programmable
>> Filter shows how to find the signed distance of points to the nearest
>> surface, then threshold those points to select all whose signed
>> distance is less than 0.
>>
>> HTH,
>> Cory
>>
>> On Tue, Feb 23, 2016 at 6:15 AM, hengxing pan <pmopanhx at gmail.com> wrote:
>> > Hi,all
>> >
>> > I wrote the lines.vtk in binary format and the points.vtk in ASCII
>> format
>> > according to www.vtk.org/VTK/img/file-formats.pdf.
>> > The attached pictures show the process how I get the tubes(closed
>> surfaces
>> > which I thought the tubes are) ,then I want to find out the points
>> which are
>> > inside the tubes (blue area in the view3), but I don't know how to work
>> it
>> > out.
>> > Now I'm desperate for achieving my aim, so please help me if you know
>> how to
>> > do it !
>> > Thank you in advance !
>> > pan hengxing
>> >
>> >
>> >
>> > _______________________________________________
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Please keep messages on-topic and check the ParaView Wiki at:
>> > http://paraview.org/Wiki/ParaView
>> >
>> > Search the list archives at: http://markmail.org/search/?q=ParaView
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://public.kitware.com/mailman/listinfo/paraview
>> >
>>
>>
>>
>> --
>> Cory Quammen
>> R&D Engineer
>> Kitware, Inc.
>>
>
>


-- 
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160324/076e22f1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PointsInsideTubes2.pvsm
Type: application/octet-stream
Size: 475657 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160324/076e22f1/attachment-0001.obj>


More information about the ParaView mailing list