# threshold filter "removes" points above minimum threshold limit

**URL:** https://discourse.paraview.org/t/threshold-filter-removes-points-above-minimum-threshold-limit/6711
**Category:** ParaView Support
**Created:** [March 15, 2021, 4:34pm UTC](https://discourse.paraview.org/t/threshold-filter-removes-points-above-minimum-threshold-limit/6711 "2021-03-15T16:34:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![fabio.romani](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/4bbf92/32.png) [@fabio.romani](https://discourse.paraview.org/u/fabio.romani)
#### Post date: [March 15, 2021, 4:34pm UTC](https://discourse.paraview.org/t/threshold-filter-removes-points-above-minimum-threshold-limit/6711/1 "2021-03-15T16:34:28Z")

</div>

Hi,

I have a pretty big vtk file I’m importing into paraview with points organized in a mesh where every vertex contains info about a current density.  
The current density goes from 0 to 4.9e9.  
When I use the Threshold filter I set a lower limit to 2.547e9 (leaving the upper limit as is).  
Upon applying the filter, if I plot the points on a spreadsheet, I can see that the points close to the upper limit of the threshold range just “disappear”!  
I mean, if I open the spreadsheet without any threshold filter, I can definitely see the point I’m looking for and its coordinates. If I apply a threshold of 2.547e9, the point disappears. If I apply a lower limit of 2e9, the point reappears!  
Is there anything wrong I’m doing or any unknown bug (threshold dealing just with integer numbers??)  
Let me know

Fabio

---

<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 15, 2021, 4:54pm UTC](https://discourse.paraview.org/t/threshold-filter-removes-points-above-minimum-threshold-limit/6711/2 "2021-03-15T16:54:46Z")

</div>

Can you share a dataset to reproduce the behavior with ?

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [March 15, 2021, 5:18pm UTC](https://discourse.paraview.org/t/threshold-filter-removes-points-above-minimum-threshold-limit/6711/3 "2021-03-15T17:18:15Z")

</div>

I am going to guess that the problem you are encountering is that the `Threshold` filter is applying its criteria to cells, not points. A point will pass the threshold if an only if it is attached to a cell that matches the criteria.

By default, a cell will be removed if _any_ of the points it is attached to is outside the threshold range. It is reasonably likely that a point that is just above the lower limit is connected only to cells with at least one other incident point below the lower limit. Since all the incident cells are removed, that point gets removed, too. You can change the `All Scalars` option to keep cells with _any_ of the incident points matching the threshold range. But then you will have the opposite problem; you will pass several points below the lower limit.

If this is the issue, it is another form of the question asked here: [Thresholding Nodal Information in VTK file](https://discourse.paraview.org/t/thresholding-nodal-information-in-vtk-file/5613). The solution is the same, too. Use the `Glyph` filter to create a separate cell for each point.

---

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [March 15, 2021, 7:58pm UTC](https://discourse.paraview.org/t/threshold-filter-removes-points-above-minimum-threshold-limit/6711/4 "2021-03-15T19:58:48Z")

</div>

As an alternative, if you don’t mind the cells being “cut up” you can use the `IsoVolume` filter which behaves quite similar to the `Threshold` filter except instead of keeping or throwing away the entire cell based on the threshold criteria it will cut up the cell instead based on the criteria and only keep the part of the cell that matches the criteria.

---

<div class="post-metadata">

### Author: ![fabio.romani](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/4bbf92/32.png) [@fabio.romani](https://discourse.paraview.org/u/fabio.romani)
#### Post date: [March 16, 2021, 9:19am UTC](https://discourse.paraview.org/t/threshold-filter-removes-points-above-minimum-threshold-limit/6711/5 "2021-03-16T09:19:08Z")

</div>

Thanks Andy: isoVolume does the job! I’ll have to integrate those points with the ones I obtain from the Threshold filter to get the full picture of the data I need, but that’s not an issue

Thanks again!

Fabio
