[vtkusers] Parsing CSV Polygonal Mesh
Preet
preet.desai at gmail.com
Fri Mar 20 14:32:35 EDT 2009
Hey all,
I'm having a bit of trouble parsing a VTK Polygonal Mesh that's been
exported (using ParaView). The headings of the exported file are as follows:
"X::Point","Y::Point","Z::Point","MaximumInscribedSphereRadius::PointData","EdgeArray::PointData","EdgeArray::PointData","EdgePCoordArray::PointData","original_coordinates::PointData","original_coordinates::PointData","original_coordinates::PointData","arc_length::PointData"
The X::Point column seems to display the Index of the point. the Y and
Z::Point values are zero. MaximumInscribedRadius is a data value associated
to each point. The actual coordinates for X Y and Z are under the
"original_coordinates::PointData" columns. This seems wrong... but I can at
least understand this data.
I am having trouble understanding the edge connectivity columns:
"EdgeArray::PointData" and "EdgePCoordArray::PointData". I was hoping some
one could help me parse these columns. The two EdgeArray::PointData columns
list several large numbers which seem like point indices, but they do not
correspond to any other values in the file. EdgePCoordArray::PointData has a
bunch of floating point vales and I have no idea what they correspond to.
I've pasted a bit of the file in the hopes some one can help me interpret
it.
X::Point Y::Point Z::Point MaximumInscribedSphereRadius::PointData
EdgeArray::PointData EdgeArray::PointData EdgePCoordArray::PointData
original_coordinates::PointData original_coordinates::PointData
original_coordinates::PointData 0 0 0 1.00072 45795 45795 0 149.348 152.153
70.2976 1 0 0 1.17639 45816 45816 0 149.402 152.234 70.0807 2 0 0 1.25644
45787 45787 0 149.392 152.265 69.9549 3 0 0 1.38168 45034 45035 0.708
149.532 152.42 69.6766 4 0 0 1.39789 42279 44946 0.808 149.605 152.436
69.6001 5 0 0 1.40398 44955 44955 0 149.634 152.445 69.5657 6 0 0 1.4297
44987 44884 0.1 149.776 152.538 69.4394 7 0 0 1.43997 44084 44084 0 149.842
152.601 69.3622
TiA!
-Preet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090320/f5632513/attachment.htm>
More information about the vtkusers
mailing list