# Calculate mean distance from a point to curved line

**URL:** https://discourse.paraview.org/t/calculate-mean-distance-from-a-point-to-curved-line/6131
**Category:** ParaView Support
**Tags:** python, vtk
**Created:** [December 28, 2020, 11:22am UTC](https://discourse.paraview.org/t/calculate-mean-distance-from-a-point-to-curved-line/6131 "2020-12-28T11:22:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sharaborin](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/9de053/32.png) [@sharaborin](https://discourse.paraview.org/u/sharaborin)
#### Post date: [December 28, 2020, 11:22am UTC](https://discourse.paraview.org/t/calculate-mean-distance-from-a-point-to-curved-line/6131/1 "2020-12-28T11:22:53Z")

</div>

Hello!

I have a highly deformed elongated bubble, and I need to calculate the mean radius along with a bubble.  
For this reason:

1. I extract a surface,  
 ![Screenshot from 2020-12-28 14-17-57](https://discourse.paraview.org/uploads/default/original/2X/e/e6fcf7ca3a92d7846bf9dd31d0dae88085abd62f.png)
2. take a slice along the bubble (then I have closed curves, the slice can be multiply-connected due to concavities inward)  
 ![Screenshot from 2020-12-28 14-18-02](https://discourse.paraview.org/uploads/default/original/2X/1/19cb4e0a068c8bf25eaee70b93a1d44f402aac17.png)
3. calculate the mean radius of the slice. Here I don’t know how to do it, Any ideas?  
Thank you in advance!
