# Paraview started showing surface roughness, not sure how it happened or what metric is being used

**URL:** https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175
**Category:** ParaView Support
**Created:** [March 14, 2022, 3:13pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175 "2022-03-14T15:13:38Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![ZhangxiFeng](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@ZhangxiFeng](https://discourse.paraview.org/u/ZhangxiFeng)
#### Post date: [March 14, 2022, 3:13pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/1 "2022-03-14T15:13:39Z")

</div>

This has never happened before in my many years of using Paraview, but suddenly when I launch the program and opened a VTK file, it showed a model with surface roughness. I checked the initial state of the model and Paraview is showing smooth surfaces as it should. That means to me the program is functioning normally, except I have no idea how I enabled this and also don’t know what is the metric used to show this roughness. I couldn’t find any resources online (most likely not searching the right keywords), so I turned to here to seek some assistance. Thanks!

 ![Surface roughness](https://discourse.paraview.org/uploads/default/original/2X/8/85ee31e55c21de334c2b8a0e3dfb6e92033b8fba.jpeg)

---

<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: [March 14, 2022, 3:17pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/2 "2022-03-14T15:17:02Z")

</div>

please share your data and versions of paraview tested

---

<div class="post-metadata">

### Author: ![ZhangxiFeng](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@ZhangxiFeng](https://discourse.paraview.org/u/ZhangxiFeng)
#### Post date: [March 14, 2022, 3:21pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/3 "2022-03-14T15:21:05Z")

</div>

The data that generated the original figure is way too large. Here is another data. The data can be found at:  
[microstr\_cell\_fields\_stp\_05800.vtk](https://discourse.paraview.org/uploads/short-url/A3CQgt1NlI34X8Uq67WnWub231I.vtk) (218.6 KB)

The solid color figure looks like:

 ![deformed surface](https://discourse.paraview.org/uploads/default/original/2X/6/6d7d762cc0af4cfc92f2a54b8cfdd3dc3e3ebd9c.png)

The ParaView version on the window says: 5.7.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: [March 14, 2022, 3:22pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/4 "2022-03-14T15:22:29Z")

</div>

I do not see anything special on this dataset.

---

<div class="post-metadata">

### Author: ![ZhangxiFeng](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@ZhangxiFeng](https://discourse.paraview.org/u/ZhangxiFeng)
#### Post date: [March 14, 2022, 3:23pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/5 "2022-03-14T15:23:41Z")

</div>

Which is why I said I am not sure what I did that made Paraview show this… It has never happened before. It is sensitive to grains as the large model roughness match exactly with grain boundaries.

---

<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: [March 14, 2022, 3:25pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/6 "2022-03-14T15:25:22Z")

</div>

Unless you can share a data that show the wrong behavior, I can’t really help you.

---

<div class="post-metadata">

### Author: ![ZhangxiFeng](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@ZhangxiFeng](https://discourse.paraview.org/u/ZhangxiFeng)
#### Post date: [March 14, 2022, 3:26pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/7 "2022-03-14T15:26:39Z")

</div>

I showed you the data and the figure it creates in Paraview 5.7.0 on Ubuntu… I don’t know what else I can provide you. It is also not a wrong behavior, in fact I think this feature is great. I just need to know how to enable/disable it and what is it actually plotting. Is it plotting points? Coordinates? The plastic equivalent strain (epvm) in the cell 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: [March 14, 2022, 3:28pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/8 "2022-03-14T15:28:54Z")

</div>

I have no idea what you mean. Which roughness are you talking about ? Can you at least share a before/after screenshot ?

---

<div class="post-metadata">

### Author: ![ZhangxiFeng](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@ZhangxiFeng](https://discourse.paraview.org/u/ZhangxiFeng)
#### Post date: [March 14, 2022, 3:30pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/9 "2022-03-14T15:30:24Z")

</div>

Every time before, regardless of how deformed the sample should be, when I open the VTK file, it always look smooth like this:

 ![expected undeformed surface](https://discourse.paraview.org/uploads/default/original/2X/8/83d40c0ae5a74cc801d59e142b2c08a3c6a92c94.png)

But today when I open Paraview, suddenly I see roughness like the figure in my first post.

---

<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: [March 14, 2022, 3:31pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/10 "2022-03-14T15:31:36Z")

</div>

This looks like a bug, please share a dataset that shows this behavior.

---

<div class="post-metadata">

### Author: ![ZhangxiFeng](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@ZhangxiFeng](https://discourse.paraview.org/u/ZhangxiFeng)
#### Post date: [March 14, 2022, 3:33pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/11 "2022-03-14T15:33:09Z")

</div>

I shared the data set that you said nothing looked wrong, and the clearly distorted stick-like model above. I can try to upload this 316 MB data if you really want 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: [March 14, 2022, 3:33pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/12 "2022-03-14T15:33:54Z")

</div>

The data you shared before shows the same behavior ? It does not look rough to me.

---

<div class="post-metadata">

### Author: ![ZhangxiFeng](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@ZhangxiFeng](https://discourse.paraview.org/u/ZhangxiFeng)
#### Post date: [March 14, 2022, 3:36pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/13 "2022-03-14T15:36:19Z")

</div>

I am sorry but there must be some miscommunication here.

The stick model and data I showed above looks like left side in my Paraview, when it normally looks like the right:

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

It clearly looks not smooth. If you are saying it doesn’t look that way in your Paraview on your computer… Well that’s why I am here to find out what changed since Friday when I last used it.

To make it complicated, as I said, it is consistent with some sort of data in the model, maybe the points data because the simulation that created this will evolve the points and cells and etc if needed. But the inconsistent thing is this has never happened before.

---

<div class="post-metadata">

### Author: ![ZhangxiFeng](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@ZhangxiFeng](https://discourse.paraview.org/u/ZhangxiFeng)
#### Post date: [March 14, 2022, 3:42pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/14 "2022-03-14T15:42:49Z")

</div>

Here is another side-by-side to illustrate that the roughness matches with grains.

 ![GrainIDSidebySide](https://discourse.paraview.org/uploads/default/original/2X/b/b755222b3c5cacb125c917ab0fe0897ede93b3ca.jpeg)

Let me know if there is any specific files that you would like me to upload for you to look at. As i said, if you want, I can upload this 316 MB data if needed. But I am observing the same behavior for the data I shared above so I hope that would be enough.

---

<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: [March 14, 2022, 3:45pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/15 "2022-03-14T15:45:52Z")

</div>

In my ParaView, it looks like on the left, but to me it looks like this is what is expected according to the coordinates of the points:

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

I’ve no idea why it would not looks like this before.

---

<div class="post-metadata">

### Author: ![ZhangxiFeng](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@ZhangxiFeng](https://discourse.paraview.org/u/ZhangxiFeng)
#### Post date: [March 14, 2022, 3:47pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/16 "2022-03-14T15:47:36Z")

</div>

Ok, so at least this is now the expected behavior. I do like it. I think there is not much merit in finding out why it wasn’t doing this before… But I would like to know if there is a way to not show this deformed coordinates for better visualization of cell 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: [March 14, 2022, 3:59pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/17 "2022-03-14T15:59:46Z")

</div>

> [@ZhangxiFeng](#):
>
> this deformed coordinates for better visualization of cell data

But it is not deformed. This is where the data is in your file itself.

I cant test old version of ParaView rn, so you will have to test that on your side.

---

<div class="post-metadata">

### Author: ![ZhangxiFeng](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@ZhangxiFeng](https://discourse.paraview.org/u/ZhangxiFeng)
#### Post date: [March 14, 2022, 4:19pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/18 "2022-03-14T16:19:08Z")

</div>

When I say deformed, I mean in comparison with undeformed, smooth surface state, this is deformed. I don’t mean deformed as in bug. Are you saying given what data is available in the VTK file, there is no way Paraview would visualize this any differently because the coordinates of the points are deformed?

But this will make selecting cell data for plotting difficult. From our discussion, I found this thread: [Create Undeformed Geometry Coordinates for use in Selecting Deformed Geometry (Exodus example)](https://discourse.paraview.org/t/create-undeformed-geometry-coordinates-for-use-in-selecting-deformed-geometry-exodus-example/693)

But I cannot find this “apply displacement” option. To be fair, I am also not working with a .e file, whatever that file is supposed to be. I believe the reason this deformed state shows up so clearly is because in this simulation, the model is extremely deformed. In my previous attempts, I have not gone this far. If I were to output the initial coordinates of the points as well, is there a way to have the model not show deformed points, and show the initial point coordinates while plotting cell data over it?

---

<div class="post-metadata">

### Author: ![aron.helser](https://discourse.paraview.org/user_avatar/discourse.paraview.org/aron.helser/32/13_2.png) [@aron.helser](https://discourse.paraview.org/u/aron.helser)
#### Post date: [March 14, 2022, 5:06pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/19 "2022-03-14T17:06:05Z")

</div>

I think you might be referring to flat shading?  
 ![flat](https://discourse.paraview.org/uploads/default/original/2X/6/68009c0e248df773e3ba1e8334f4e6c863dd5cfa.png)  
 ![smooth](https://discourse.paraview.org/uploads/default/original/2X/2/20551effd535224c49e708281401e58b34714652.png)

This is controlled in the Properties panel under Lighting, Interpolation, which is an advanced parameter, so you have to click the little gear icon at the top.

---

<div class="post-metadata">

### Author: ![ZhangxiFeng](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@ZhangxiFeng](https://discourse.paraview.org/u/ZhangxiFeng)
#### Post date: [March 14, 2022, 5:24pm UTC](https://discourse.paraview.org/t/paraview-started-showing-surface-roughness-not-sure-how-it-happened-or-what-metric-is-being-used/9175/20 "2022-03-14T17:24:34Z")

</div>

I tried flat or Gouraud, but unfortunately it didn’t have as drastic of an effect as yours showed.

I think it is ok, if I need to, I simply overwrite the point coordinate data with the undeformed state. It is unfortunate that I have to do such a manual workaround, but it is what it is.
