# Trouble Understanding VTK file node connectivities

**URL:** https://discourse.paraview.org/t/trouble-understanding-vtk-file-node-connectivities/15391
**Category:** ParaView Support
**Tags:** vtk
**Created:** [September 14, 2024, 4:42pm UTC](https://discourse.paraview.org/t/trouble-understanding-vtk-file-node-connectivities/15391 "2024-09-14T16:42:39Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![smh](https://discourse.paraview.org/user_avatar/discourse.paraview.org/smh/32/15180_2.png) [@smh](https://discourse.paraview.org/u/smh)
#### Post date: [September 14, 2024, 4:42pm UTC](https://discourse.paraview.org/t/trouble-understanding-vtk-file-node-connectivities/15391/1 "2024-09-14T16:42:39Z")

</div>

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:

```auto
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:

```auto
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](https://discourse.paraview.org/uploads/default/original/2X/e/e607537c8fb8246722a58e2b92386eb3a3499a45.png)  
 ![Screenshot 2024-09-14 at 12.41.59 PM](https://discourse.paraview.org/uploads/default/original/2X/6/6b50d2472f71c3f4e41a9c8390c04c70fed3346e.png)  
 ![Screenshot 2024-09-14 at 12.42.20 PM](https://discourse.paraview.org/uploads/default/original/2X/1/100c81c15ab1d8139d718ac4ab8c97e11d8ce552.png)

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [September 16, 2024, 1:45am UTC](https://discourse.paraview.org/t/trouble-understanding-vtk-file-node-connectivities/15391/2 "2024-09-16T01:45:01Z")

</div>

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](http://wetransfer.com) or similar service?

---

<div class="post-metadata">

### Author: ![Venke](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/6de8d8/32.png) [@Venke](https://discourse.paraview.org/u/Venke)
#### Post date: [September 16, 2024, 7:36am UTC](https://discourse.paraview.org/t/trouble-understanding-vtk-file-node-connectivities/15391/3 "2024-09-16T07:36:17Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![smh](https://discourse.paraview.org/user_avatar/discourse.paraview.org/smh/32/15180_2.png) [@smh](https://discourse.paraview.org/u/smh)
#### Post date: [September 20, 2024, 3:04pm UTC](https://discourse.paraview.org/t/trouble-understanding-vtk-file-node-connectivities/15391/4 "2024-09-20T15:04:29Z")

</div>

Hello,

Here is the file 🙂

> **[Easyupload.io - Upload Files and Share Them Easily](https://easyupload.io/n1lu4l)**
>
> Uplaod files easily and share them with your friends and colleagues. File upload solution for everyone. Upload big files and get a link to share effortlesly.

Thanks!

---

<div class="post-metadata">

### Author: ![smh](https://discourse.paraview.org/user_avatar/discourse.paraview.org/smh/32/15180_2.png) [@smh](https://discourse.paraview.org/u/smh)
#### Post date: [September 20, 2024, 3:05pm UTC](https://discourse.paraview.org/t/trouble-understanding-vtk-file-node-connectivities/15391/5 "2024-09-20T15:05:50Z")

</div>

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

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [September 20, 2024, 5:18pm UTC](https://discourse.paraview.org/t/trouble-understanding-vtk-file-node-connectivities/15391/6 "2024-09-20T17:18:07Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![smh](https://discourse.paraview.org/user_avatar/discourse.paraview.org/smh/32/15180_2.png) [@smh](https://discourse.paraview.org/u/smh)
#### Post date: [September 20, 2024, 6:19pm UTC](https://discourse.paraview.org/t/trouble-understanding-vtk-file-node-connectivities/15391/7 "2024-09-20T18:19:48Z")

</div>

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

Thank you!
