# How to extract data by intersecting dat. file and stl. file

**URL:** https://discourse.paraview.org/t/how-to-extract-data-by-intersecting-dat-file-and-stl-file/5421
**Category:** ParaView Support
**Created:** [September 24, 2020, 8:24am UTC](https://discourse.paraview.org/t/how-to-extract-data-by-intersecting-dat-file-and-stl-file/5421 "2020-09-24T08:24:57Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![mylee](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@mylee](https://discourse.paraview.org/u/mylee)
#### Post date: [September 24, 2020, 8:24am UTC](https://discourse.paraview.org/t/how-to-extract-data-by-intersecting-dat-file-and-stl-file/5421/1 "2020-09-24T08:24:57Z")

</div>

i have dat.file about pressure, velocity … and stl.file  
i want pressure distribution on the airfoil surface.  
so i try to intersect “plot on intersection curves”  
but it doesn’t work  
please help

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

---

<div class="post-metadata">

### Author: ![whophil](https://discourse.paraview.org/user_avatar/discourse.paraview.org/whophil/32/2934_2.png) [@whophil](https://discourse.paraview.org/u/whophil)
#### Post date: [September 24, 2020, 10:59pm UTC](https://discourse.paraview.org/t/how-to-extract-data-by-intersecting-dat-file-and-stl-file/5421/2 "2020-09-24T22:59:08Z")

</div>

I have only used Plot On Intersection Curves to extract data from a slice of a surface mesh. Two things which may help:

1. Plot On Intersection Curves computes the slice on its own, so you do not need to slice the data first.
2. It may help to interpolate the data from your field data onto the surface mesh, and then use Plot On Intersection Curves on the output of that.

---

<div class="post-metadata">

### Author: ![mylee](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@mylee](https://discourse.paraview.org/u/mylee)
#### Post date: [September 27, 2020, 6:51am UTC](https://discourse.paraview.org/t/how-to-extract-data-by-intersecting-dat-file-and-stl-file/5421/4 "2020-09-27T06:51:14Z")

</div>

thank you for your reply.

can you give me example file.

i tried but it didn’t work.

my data file have no information about geometry.

it only have position and properties.

did you use “Plot On Intersection Curves” with STL file??

---

<div class="post-metadata">

### Author: ![whophil](https://discourse.paraview.org/user_avatar/discourse.paraview.org/whophil/32/2934_2.png) [@whophil](https://discourse.paraview.org/u/whophil)
#### Post date: [September 30, 2020, 2:36pm UTC](https://discourse.paraview.org/t/how-to-extract-data-by-intersecting-dat-file-and-stl-file/5421/5 "2020-09-30T14:36:51Z")

</div>

If your volume data has no geometry, I would try:

1. Import volume data
2. Import STL
3. “Extract Surface” from STL (if necessary/possible)
4. “Resample With Dataset” from the volume data onto the STL surface
5. Use “Plot On Intersection Curves” on the result “Resample With Dataset”.

---

<div class="post-metadata">

### Author: ![mylee](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@mylee](https://discourse.paraview.org/u/mylee)
#### Post date: [October 5, 2020, 5:14am UTC](https://discourse.paraview.org/t/how-to-extract-data-by-intersecting-dat-file-and-stl-file/5421/6 "2020-10-05T05:14:44Z")

</div>

[naca 0012\_1.stl](https://discourse.paraview.org/uploads/short-url/iPVftpTxO7x4H3NYWJmowULuw4O.stl) (931.6 KB)

Thank you for reply.

I tried the way you mentioned but didnt work.

i upload my data.file and STL.file.

can you test my datas?

---

<div class="post-metadata">

### Author: ![whophil](https://discourse.paraview.org/user_avatar/discourse.paraview.org/whophil/32/2934_2.png) [@whophil](https://discourse.paraview.org/u/whophil)
#### Post date: [October 5, 2020, 2:00pm UTC](https://discourse.paraview.org/t/how-to-extract-data-by-intersecting-dat-file-and-stl-file/5421/7 "2020-10-05T14:00:57Z")

</div>

You’ve only uploaded the STL.
