# Is there a way to "Threshold" based on Stream Line lenght? Or generally not show "Short" streamlines?

**URL:** https://discourse.paraview.org/t/is-there-a-way-to-threshold-based-on-stream-line-lenght-or-generally-not-show-short-streamlines/7178
**Category:** ParaView Support
**Created:** [May 8, 2021, 5:57pm UTC](https://discourse.paraview.org/t/is-there-a-way-to-threshold-based-on-stream-line-lenght-or-generally-not-show-short-streamlines/7178 "2021-05-08T17:57:40Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![coreman](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/7c8e57/32.png) [@coreman](https://discourse.paraview.org/u/coreman)
#### Post date: [May 8, 2021, 5:57pm UTC](https://discourse.paraview.org/t/is-there-a-way-to-threshold-based-on-stream-line-lenght-or-generally-not-show-short-streamlines/7178/1 "2021-05-08T17:57:40Z")

</div>

Have been working literally for weeks to make a picture with good streamlines but cant get it to work.

So I was thinking maybe I can somehow “cut” the shorter streamlines and only show the lengthy ones

---

<div class="post-metadata">

### Author: ![dmreagan](https://discourse.paraview.org/user_avatar/discourse.paraview.org/dmreagan/32/12030_2.png) [@dmreagan](https://discourse.paraview.org/u/dmreagan)
#### Post date: [May 11, 2021, 6:19pm UTC](https://discourse.paraview.org/t/is-there-a-way-to-threshold-based-on-stream-line-lenght-or-generally-not-show-short-streamlines/7178/2 "2021-05-11T18:19:50Z")

</div>

I don’t think it does quite what you want, but try using the Append Arc-Length filter. Then you can threshold or clip by arc length.

---

<div class="post-metadata">

### Author: ![coreman](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/7c8e57/32.png) [@coreman](https://discourse.paraview.org/u/coreman)
#### Post date: [May 12, 2021, 12:07am UTC](https://discourse.paraview.org/t/is-there-a-way-to-threshold-based-on-stream-line-lenght-or-generally-not-show-short-streamlines/7178/3 "2021-05-12T00:07:55Z")

</div>

yes but it doesnt “cut” the lines. Just shows the part of the line within thte threshhold

---

<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: [May 12, 2021, 2:12pm UTC](https://discourse.paraview.org/t/is-there-a-way-to-threshold-based-on-stream-line-lenght-or-generally-not-show-short-streamlines/7178/4 "2021-05-12T14:12:43Z")

</div>

You can use the `Cell Size` filter to compute the length of each streamline. You can then use the `Threshold` filter to remove streamlines with a small `Length`.

---

<div class="post-metadata">

### Author: ![coreman](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/7c8e57/32.png) [@coreman](https://discourse.paraview.org/u/coreman)
#### Post date: [May 12, 2021, 2:38pm UTC](https://discourse.paraview.org/t/is-there-a-way-to-threshold-based-on-stream-line-lenght-or-generally-not-show-short-streamlines/7178/5 "2021-05-12T14:38:20Z")

</div>

Yeah that was it! It’s wroking now! By any chance. Maybe you know how to even add “tube” filter on Threshold/Filter, meaning of the remaining Stream Lines? (doesnt work on Tube , the Cell Size) But still! really helpfull, Wireframe representation is not that bad

---

<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: [May 12, 2021, 6:58pm UTC](https://discourse.paraview.org/t/is-there-a-way-to-threshold-based-on-stream-line-lenght-or-generally-not-show-short-streamlines/7178/6 "2021-05-12T18:58:43Z")

</div>

Run `Extract Surface` on the output of `Threshold`. You can then run `Tube` on that.

The problem you encountered is that `Threshold` is turning the poly data of the stream tracer into an unstructured grid (for technical reasons I won’t get in to). But the `Tube` filter expects a poly data input. You can convert the data back to poly data by running the `Extract Surface`. The point of this filter is technically to extract the outer surface of volumes, but the filter will pass vertices, lines, and polygons to the output as their own surface.

Alternately, you can turn on the `Render Lines As Tubes` option in the properties panel. You will also have to set the line width to greater than 1.
