[Paraview] Scalars in Polydata

Bikash Agarwal agarwa4 at gmail.com
Tue Apr 17 14:53:43 EDT 2007


Hi All,

My question relates to legacy VTK file formats. For a polydata .vtk file
with points and lines how can identify which points are being used by a
particular line in paraview.

I would like to identify the points used by each line and then use them for
calculations in a custom filter. I have given an example below to
demonstrate what I mean.

#vtk DataFile Version 2.0
My data
ASCII
DATASET POLYDATA
POINTS 6 float
0.0 0.0 0.0
1.0 1.0 1.0
2.0 2.0 2.0
3.0 3.0 3.0
4.0 4.0 4.0
5.0 5.0 5.0
LINES 3 9
2 0 1
2 2 3
2 4 5

In this case after this has been read into paraview, I want to be able pass
this data to my filter and identify which points are being used by which
lines. I was thinking of assigning scalars to each line which might be a
unique id, but am not sure how to implement that or if that is a correct
approach.

Thanks,
Bikash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/paraview/attachments/20070417/3231d288/attachment.htm


More information about the ParaView mailing list