# Cell values partly disappear when editing width on Mac

**URL:** https://discourse.paraview.org/t/cell-values-partly-disappear-when-editing-width-on-mac/11666
**Category:** ParaView Support
**Tags:** vtk
**Created:** [March 20, 2023, 4:45pm UTC](https://discourse.paraview.org/t/cell-values-partly-disappear-when-editing-width-on-mac/11666 "2023-03-20T16:45:38Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![JMC](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@JMC](https://discourse.paraview.org/u/JMC)
#### Post date: [March 20, 2023, 4:45pm UTC](https://discourse.paraview.org/t/cell-values-partly-disappear-when-editing-width-on-mac/11666/1 "2023-03-20T16:45:38Z")

</div>

Hi all,

I’ve noticed the following problem occurs on quite a few versions of ParaView on Mac (mine and that of colleagues). I currently run the latest version 5.11.0.

All the data shows well for the cell when the line width is set to 1:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/b/be8162bb2cae9d4079c6e3fb8e0e3cc79d6c61f6.png)

But some cells disappear when the line width is set to a value greater than 1:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/1/10a90d464df0c488ad189c1b2d325cd867f3d725.png)

My data file is a .vtk with nodes and cells (1D line elements connecting 2 nodes).  
[data\_pv\_question.vtk](https://discourse.paraview.org/uploads/short-url/xLvmBHrIXWTITd38bJfa4DeiIN7.vtk) (1.3 KB)

Does anyone have a similar issue or knows what might be causing it?

How to reproduce:

1. Install version 5.11.0 of ParaView on a Mac
2. Open the `data_pv_question.vtk` file in ParaView
3. Display the pipe\_id in the viewer
4. Make sure you are displaying the data as `surface`
5. Edit the `line width` under the `styling` options of advanced properties accessible via the cog icon in the properties window.

Screenshot showing the `line width` setting under the `styling` options

 ![image](https://discourse.paraview.org/uploads/default/original/2X/6/69bc21a0d566896f69158361ed6f4821d443f291.png)

It is fine in Windows. It is also fine when I display node data.

Thanks

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [March 20, 2023, 4:50pm UTC](https://discourse.paraview.org/t/cell-values-partly-disappear-when-editing-width-on-mac/11666/2 "2023-03-20T16:50:28Z")

</div>

Hi JMC. Welcome to the ParaView community!

Hmmm … I have never seen that. Could you post a dataset, and give very detailed directions on how to replicate? For instance, you are log scaled, and have changed color maps. I assume you are displaying using wireframe?

---

<div class="post-metadata">

### Author: ![JMC](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@JMC](https://discourse.paraview.org/u/JMC)
#### Post date: [March 20, 2023, 5:03pm UTC](https://discourse.paraview.org/t/cell-values-partly-disappear-when-editing-width-on-mac/11666/3 "2023-03-20T17:03:00Z")

</div>

Thank you for the welcome 🙂 !

I’ve edited my question so you can play with a simpler file.

As you can see - without any changes to the colormap or scale settings the issue is still apparent.

I’m not displaying in wireframe but in surface. My cell data just happens to be a 1D line.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [March 22, 2023, 10:21pm UTC](https://discourse.paraview.org/t/cell-values-partly-disappear-when-editing-width-on-mac/11666/4 "2023-03-22T22:21:37Z")

</div>

Yep, ParaView bug. Thanks.

Written up here: [https://gitlab.kitware.com/paraview/paraview/-/issues/21832](https://gitlab.kitware.com/paraview/paraview/-/issues/21832)

---

<div class="post-metadata">

### Author: ![JMC](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@JMC](https://discourse.paraview.org/u/JMC)
#### Post date: [March 23, 2023, 10:17am UTC](https://discourse.paraview.org/t/cell-values-partly-disappear-when-editing-width-on-mac/11666/5 "2023-03-23T10:17:40Z")

</div>

No problem. Thanks for looking into it. Is there a workaround I could use at the moment that you could recommend? The best I’ve found so far is to use the Cell to Point filter and then increase the line width.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [March 27, 2023, 5:17pm UTC](https://discourse.paraview.org/t/cell-values-partly-disappear-when-editing-width-on-mac/11666/6 "2023-03-27T17:17:39Z")

</div>

I don’t know of a workaround. What you are doing sounds about as good as anything else…

---

<div class="post-metadata">

### Author: ![Alexandra\_Bac](https://discourse.paraview.org/user_avatar/discourse.paraview.org/alexandra_bac/32/11279_2.png) [@Alexandra\_Bac](https://discourse.paraview.org/u/Alexandra_Bac)
#### Post date: [March 29, 2023, 1:04pm UTC](https://discourse.paraview.org/t/cell-values-partly-disappear-when-editing-width-on-mac/11666/7 "2023-03-29T13:04:12Z")

</div>

Good afternoon,  
did you find any solution? As experience the same problem but the point is I really need to render data urgently… And lines of width 1 can hardly be seen…  
Thanks a lot in advance  
Regards

---

<div class="post-metadata">

### Author: ![JMC](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@JMC](https://discourse.paraview.org/u/JMC)
#### Post date: [March 29, 2023, 1:11pm UTC](https://discourse.paraview.org/t/cell-values-partly-disappear-when-editing-width-on-mac/11666/9 "2023-03-29T13:11:15Z")

</div>

Hi Alexandra,

If it is suitable for your data try using the “Cell Data to Point Data” filter. The you should be able to get the Line Width to work. As an alternative, and if your data has no NaNs then the bug is not present on Windows, so you should be able to do your render on Windows. I use the “Cell Data to Point Data” method when I need to record a video or make a figure.

I hope that helps.

---

<div class="post-metadata">

### Author: ![Alexandra\_Bac](https://discourse.paraview.org/user_avatar/discourse.paraview.org/alexandra_bac/32/11279_2.png) [@Alexandra\_Bac](https://discourse.paraview.org/u/Alexandra_Bac)
#### Post date: [March 29, 2023, 1:40pm UTC](https://discourse.paraview.org/t/cell-values-partly-disappear-when-editing-width-on-mac/11666/10 "2023-03-29T13:40:58Z")

</div>

Hi

The point is my data are vtk files containing combos of edges, triangles, tets + scalars to handle colors of each cell (I have between 4 and 10 colors on the overall).  
And I really need to keep cells as they are (I’m working on topological issues). So do you think this solution could work?

Thanks a lot and best regards

---

<div class="post-metadata">

### Author: ![JMC](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@JMC](https://discourse.paraview.org/u/JMC)
#### Post date: [March 29, 2023, 1:51pm UTC](https://discourse.paraview.org/t/cell-values-partly-disappear-when-editing-width-on-mac/11666/11 "2023-03-29T13:51:54Z")

</div>

Hi,

Yes I think it would work.

I opened one of my files with a mix of edges and triangles and this is what I get when I’m viewing the data with wireframe and a custom Line Width after applying the filter:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/7/7d6c441ee2faa83b19e47cea2b35d028653e7b38.png)

As you can see it works even for the triangles. The only thing to be aware of is that the filter uses some form of averaging to transfer the cell values to the nodes, so some sharp transitions might be smoothed out by the process… but it is still better than the bugged alternative:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/9/9f064f99a8b006d3ff48229d2b72c1f6877047e7.png)

I hope that works for you too! (note it will also work for suface instead of wireframe.)

---

<div class="post-metadata">

### Author: ![Alexandra\_Bac](https://discourse.paraview.org/user_avatar/discourse.paraview.org/alexandra_bac/32/11279_2.png) [@Alexandra\_Bac](https://discourse.paraview.org/u/Alexandra_Bac)
#### Post date: [March 29, 2023, 1:54pm UTC](https://discourse.paraview.org/t/cell-values-partly-disappear-when-editing-width-on-mac/11666/12 "2023-03-29T13:54:07Z")

</div>

Hi again

Thanks a lot, I gonna try.  
Do you have any idea why we have this bug on Macs? As everything is ok under linux (but the only desktop I can use have hardly a GPU and the renders are just awful ☹ )

Regards

---

<div class="post-metadata">

### Author: ![JMC](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@JMC](https://discourse.paraview.org/u/JMC)
#### Post date: [March 29, 2023, 1:58pm UTC](https://discourse.paraview.org/t/cell-values-partly-disappear-when-editing-width-on-mac/11666/13 "2023-03-29T13:58:57Z")

</div>

I have no idea I’m afraid. I’ve got fairly limited datasets myself so render time isn’t much of an issue, but I have to contend with this line bug on Mac or Windows not rendering NaNs (which I have a lot of) properly. Maybe I should try Linux.

Anyway, your datasets look large so I hope you get the output you’re after with this filter.

Best

---

<div class="post-metadata">

### Author: ![Alexandra\_Bac](https://discourse.paraview.org/user_avatar/discourse.paraview.org/alexandra_bac/32/11279_2.png) [@Alexandra\_Bac](https://discourse.paraview.org/u/Alexandra_Bac)
#### Post date: [March 29, 2023, 2:01pm UTC](https://discourse.paraview.org/t/cell-values-partly-disappear-when-editing-width-on-mac/11666/14 "2023-03-29T14:01:25Z")

</div>

Actually I have both large and small data sets… For all of them I experience the same problem: impossible to widen the lines without losing their Color (and indeed getting random colors).  
Under linux it seems the problem does not exist (but I have not « correct » linux computer……. Only poor virtual machines… )

Regards

---

<div class="post-metadata">

### Author: ![JMC](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@JMC](https://discourse.paraview.org/u/JMC)
#### Post date: [March 29, 2023, 2:05pm UTC](https://discourse.paraview.org/t/cell-values-partly-disappear-when-editing-width-on-mac/11666/15 "2023-03-29T14:05:25Z")

</div>

That’s good then. You could try the Cell Data to Point Filter on a small dataset and post back here with whether or not it has worked for your data for the next person who runs into this problem.

I also tend to download the new ParaView regularly so I’ll post here if the bug gets fixed in a later release.
