# streamlines to clip a field

**URL:** https://discourse.paraview.org/t/streamlines-to-clip-a-field/2268
**Category:** ParaView Support
**Created:** [July 20, 2019, 2:37am UTC](https://discourse.paraview.org/t/streamlines-to-clip-a-field/2268 "2019-07-20T02:37:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![momentumv](https://discourse.paraview.org/user_avatar/discourse.paraview.org/momentumv/32/1686_2.png) [@momentumv](https://discourse.paraview.org/u/momentumv)
#### Post date: [July 20, 2019, 2:37am UTC](https://discourse.paraview.org/t/streamlines-to-clip-a-field/2268/1 "2019-07-20T02:37:26Z")

</div>

I am not sure if there is a way to do this, but I thought I’d ask.

I have a streamline with custom source filter that is working wonderfully, and because of my dense meshing on the custom source produces a wonderfully dense set of streamlines.

What I would like to do is basically a delauney 3d, but instead of being a convex hull, “shrinkwrap” the streamlines, so that I can have a volume that the streamlines occupy to clip the field.  
My current workflow involves exporting the streamlines as .stls and “shrinkwrapping” them in CAD, but I’d really like to implement this in Paraview.

One idea that I had was to somehow decompose the streamlines into just a point cloud to be surfaced. As I understand it ([How to create the surface of a point cloud object?](https://discourse.paraview.org/t/how-to-create-the-surface-of-a-point-cloud-object/1051/2)), however, ParaView can only surface convex hulls, and although VTK has some more advanced surfacing, that is not currently implemented in ParaView.

I think I could do the surface reconstruction elsewhere (besides my CAD approach) such as in Meshlab, but I’m actually not sure how to get the point cloud into meshlab.

Thoughts?

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [August 1, 2019, 10:42pm UTC](https://discourse.paraview.org/t/streamlines-to-clip-a-field/2268/2 "2019-08-01T22:42:39Z")

</div>

Unfortunately, there aren’t really tools to do this in ParaView. You’ve already discovered what is available in ParaView that you can use towards this goal, I’m afraid.

---

<div class="post-metadata">

### Author: ![momentumv](https://discourse.paraview.org/user_avatar/discourse.paraview.org/momentumv/32/1686_2.png) [@momentumv](https://discourse.paraview.org/u/momentumv)
#### Post date: [August 2, 2019, 12:08pm UTC](https://discourse.paraview.org/t/streamlines-to-clip-a-field/2268/3 "2019-08-02T12:08:46Z")

</div>

@cory.quammen, I have actually developed a method that achieves my goal.

Instead of using a Tube -\>save as stl to export a surface, I use Calculator on the streamline points that is then Point to Volume interpolated, and resampled back to the original mesh. Since my true aim was to integrate a volume weighted by streamline distance, this works quite well and I can merely integrate the calculator function over the resampled mesh. I’m hoping to write up a tutorial at some point.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [August 2, 2019, 2:38pm UTC](https://discourse.paraview.org/t/streamlines-to-clip-a-field/2268/4 "2019-08-02T14:38:49Z")

</div>

Cool! This could be a good post in the Tips and Tricks category.
