# Option to disable point and cell renumbering

**URL:** https://discourse.paraview.org/t/option-to-disable-point-and-cell-renumbering/11792
**Category:** ParaView Support
**Created:** [April 3, 2023, 6:12am UTC](https://discourse.paraview.org/t/option-to-disable-point-and-cell-renumbering/11792 "2023-04-03T06:12:57Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![FEngineer](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@FEngineer](https://discourse.paraview.org/u/FEngineer)
#### Post date: [April 3, 2023, 6:12am UTC](https://discourse.paraview.org/t/option-to-disable-point-and-cell-renumbering/11792/1 "2023-04-03T06:12:57Z")

</div>

Hi,

I’ve noticed that ParaView renumbers points and cells from imported data in such a way that they start from 0. So, for example, it shows cells 0 and 1 when my elements are originally named 1 and 2. This can be quite troublesome when exporting data together with IDs for further use. Thus, it would be great if you could add an option to disable this renumbering and use original numbers for imported data.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 3, 2023, 6:13am UTC](https://discourse.paraview.org/t/option-to-disable-point-and-cell-renumbering/11792/2 "2023-04-03T06:13:53Z")

</div>

This cannot ba a global option, however when origin Id matter, the reader could provide the original ids as a field on the data. Which file format are you looking at @FEngineer ?

---

<div class="post-metadata">

### Author: ![FEngineer](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@FEngineer](https://discourse.paraview.org/u/FEngineer)
#### Post date: [April 3, 2023, 9:16am UTC](https://discourse.paraview.org/t/option-to-disable-point-and-cell-renumbering/11792/3 "2023-04-03T09:16:47Z")

</div>

> [@mwestphal](#):
>
> Which file format are you looking at @FEngineer ?

I’m using CalculiX results files (.frd) converted to .vtk. I also have input files for that solver and nodes are defined there in order using the following syntax:

```auto
*Node
      number, x_coordinate, y_coordinate, z_coordinate

```

But I don’t know if those could be used to create fields with proper names (starting from 1). It would be best to take the numbering from .frd if possible.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 3, 2023, 10:02am UTC](https://discourse.paraview.org/t/option-to-disable-point-and-cell-renumbering/11792/4 "2023-04-03T10:02:36Z")

</div>

> CalculiX results files (.frd) converted to .vtk.

Then ths issue is in your converter

---

<div class="post-metadata">

### Author: ![FEngineer](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@FEngineer](https://discourse.paraview.org/u/FEngineer)
#### Post date: [April 3, 2023, 10:06am UTC](https://discourse.paraview.org/t/option-to-disable-point-and-cell-renumbering/11792/5 "2023-04-03T10:06:46Z")

</div>

All right, I’ll contact its provider. I thought that ParaView renumbers the nodes so that they always start from 0. Is there a workaround for that in ParaView ?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 3, 2023, 10:11am UTC](https://discourse.paraview.org/t/option-to-disable-point-and-cell-renumbering/11792/6 "2023-04-03T10:11:36Z")

</div>

It doesn’t “renumber”, this is just how nodes are defined in your .vtk file.

---

<div class="post-metadata">

### Author: ![FEngineer](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@FEngineer](https://discourse.paraview.org/u/FEngineer)
#### Post date: [April 3, 2023, 10:16am UTC](https://discourse.paraview.org/t/option-to-disable-point-and-cell-renumbering/11792/7 "2023-04-03T10:16:34Z")

</div>

I see. But I don’t know if and when this will be changed in the converter so it would be good to have an option to create a field with IDs starting from 1 if possible.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 3, 2023, 10:17am UTC](https://discourse.paraview.org/t/option-to-disable-point-and-cell-renumbering/11792/8 "2023-04-03T10:17:55Z")

</div>

There is no reason to have such an option for all reader. Anyway, it is trivial to create using Calculator filter.

---

<div class="post-metadata">

### Author: ![FEngineer](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@FEngineer](https://discourse.paraview.org/u/FEngineer)
#### Post date: [April 3, 2023, 10:47am UTC](https://discourse.paraview.org/t/option-to-disable-point-and-cell-renumbering/11792/9 "2023-04-03T10:47:03Z")

</div>

> [@mwestphal](#):
>
> Anyway, it is trivial to create using Calculator filter.

I tried using _Generate Ids_ and then _Calculator_ with PointIds+1 formula but it didn’t work. How should I do it ?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 3, 2023, 11:45am UTC](https://discourse.paraview.org/t/option-to-disable-point-and-cell-renumbering/11792/10 "2023-04-03T11:45:08Z")

</div>

> I tried using Generate Ids and then Calculator with PointIds+1 formula but it didn’t work.

Do you have an error to share ?

---

<div class="post-metadata">

### Author: ![FEngineer](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@FEngineer](https://discourse.paraview.org/u/FEngineer)
#### Post date: [April 3, 2023, 12:19pm UTC](https://discourse.paraview.org/t/option-to-disable-point-and-cell-renumbering/11792/11 "2023-04-03T12:19:06Z")

</div>

It’s working now, I probably selected PointIds instead of Result as Point Labels in Find Data.

---

<div class="post-metadata">

### Author: ![FEngineer](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@FEngineer](https://discourse.paraview.org/u/FEngineer)
#### Post date: [April 3, 2023, 7:05pm UTC](https://discourse.paraview.org/t/option-to-disable-point-and-cell-renumbering/11792/12 "2023-04-03T19:05:12Z")

</div>

@mwestphal I got the reply from the developer of this .frd to .vtk converter. He said that, according to VTK User’s Guide (_19.3 VTK File Formats_ chapter), IDs have to start from 0 in vtk files. And indeed there’s such information in that document:

`Indices are 0-offset. Thus the first point is point id 0.`

Does it mean that converters to .vtk have to obey this rule (also for cells) and that’s why IDs in ParaView always start from 0 ?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 4, 2023, 6:19am UTC](https://discourse.paraview.org/t/option-to-disable-point-and-cell-renumbering/11792/13 "2023-04-04T06:19:06Z")

</div>

As I stated earlier:

> the reader could provide the original ids as a field on the data.

So you can add a point data containing the original Id.
