Thanks Amy. Is it possible to achieve this from within the code of my custom filter? So essentially, my code reads this polydata object which is a list of point ids and somehow be able to identify which point is associated with which line.
<br><br>Bikash<br><br><div><span class="gmail_quote">On 4/17/07, <b class="gmail_sendername">Amy Squillacote</b> <<a href="mailto:amy.squillacote@kitware.com">amy.squillacote@kitware.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Bikash,<br><br>Try using the Pick filter in ParaView. It allows you to pick either<br>cells or points with either a 3D coordinate ("World Point") or an id.<br>You should use the Cell pick type. On the Parameters tab, it will list
<br>the cell and the points used by this cell as well as any point-centered<br>or cell-centered data attributes.<br><br>If you are picking with a 3D coordinate, you can interactively select<br>the point by either moving the point widget in the 3D scene or by
<br>placing the mouse cursor over a particular location and pressing the 'P'<br>key.<br><br>- Amy<br><br>Bikash Agarwal wrote:<br>> Hi All,<br>><br>> My question relates to legacy VTK file formats. For a polydata .vtk
<br>> file with points and lines how can identify which points are being<br>> used by a particular line in paraview.<br>><br>> I would like to identify the points used by each line and then use<br>> them for calculations in a custom filter. I have given an example
<br>> below to demonstrate what I mean.<br>><br>> #vtk DataFile Version 2.0<br>> My data<br>> ASCII<br>> DATASET POLYDATA<br>> POINTS 6 float<br>> 0.0 0.0 0.0<br>> 1.0 1.0 1.0<br>> 2.0 2.0 2.0
<br>> 3.0 3.0 3.0<br>> 4.0 4.0 4.0<br>> 5.0 5.0 5.0<br>> LINES 3 9<br>> 2 0 1<br>> 2 2 3<br>> 2 4 5<br>><br>> In this case after this has been read into paraview, I want to be able<br>> pass this data to my filter and identify which points are being used
<br>> by which lines. I was thinking of assigning scalars to each line which<br>> might be a unique id, but am not sure how to implement that or if that<br>> is a correct approach.<br>><br>> Thanks,<br>> Bikash
<br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>> ParaView mailing list<br>> <a href="mailto:ParaView@paraview.org">
ParaView@paraview.org</a><br>> <a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br>><br><br>--<br>Amy Squillacote<br>Kitware, Inc.<br>28 Corporate Drive
<br>Clifton Park, NY 12065<br>Phone: (518) 371-3971 x106<br><br></blockquote></div><br>