Trouble Understanding VTK file node connectivities

Hello,

I’m working with a VTK file and have noticed a discrepancy between what I see in my preview software and what’s actually in the file. I’m hoping someone can help me understand why this is happening.

What I’m seeing:

  1. In my preview software, using the “Hover points on” feature, I can see that node 32781 is connected to two other nodes: 27900 and 32780.
  2. However, when I search the VTK file, I only find one connection for node 32781:
2 32780 32781
  1. I’ve searched the entire file for “32781”, and this is the only instance I can find.
  2. For context, here’s another line from the file showing a similar pattern:
2 32782 32783

My question:

Why does the VTK file only show node 32781 connected to 32780, when my preview software clearly shows it connected to both 32780 and 27900? Am I missing something about how VTK files store connectivity information?

Please see the attached images for more context.
Screenshot 2024-09-14 at 12.41.40 PM
Screenshot 2024-09-14 at 12.41.59 PM
Screenshot 2024-09-14 at 12.42.20 PM

Hi @smh, welcome to the ParaView community!

It’s a little hard to say more about the discrepancy you are seeing without seeing more of the file. Are you able to share it via wetransfer.com or similar service?

Just a thought: have you checked the connectivity to point 27900 in your file and the according coordinates of the points? Maybe there are two points at the coordinates of point 32781 and while the hover shows only one of them, 27900 is actually connected to the other one?

1 Like

Hello,

Here is the file :slight_smile:

Thanks!

1 Like

The only connectivity with point 27900 is 27901. Should’ve made that clear in my main thread!

You have line segment “soup” in your file. Let’s look at the positions of different nodes in question here:

27900 is at (980.701, 917.531, 18.28)
27901 is at (984.053, 915.391, 17.1658)
32781 is at (984.053, 915.391, 17.1658)
32780 is at (993.063, 909.528, 14.2788)

Node 32781 is a duplicate position of 27901, and 27900 is connected to 27901, but there is no connectivity between 32781 and 27900. It just appears that way in the 3D view.

Oh no! Thank you for pointing that out. It might be the way those files are written then.

Thank you!