# maximum edge length of cell

**URL:** https://discourse.paraview.org/t/maximum-edge-length-of-cell/11700
**Category:** ParaView Support
**Created:** [March 24, 2023, 2:46pm UTC](https://discourse.paraview.org/t/maximum-edge-length-of-cell/11700 "2023-03-24T14:46:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Captain\_Convergence](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@Captain\_Convergence](https://discourse.paraview.org/u/Captain_Convergence)
#### Post date: [March 24, 2023, 2:46pm UTC](https://discourse.paraview.org/t/maximum-edge-length-of-cell/11700/1 "2023-03-24T14:46:41Z")

</div>

Dear all,

I need to obtain the maximum edge length for each one of my cells. My data is a multiblock dataset in .plt format (from Tecplot). I tried with the “Cell size”, “Mesh Quality” and “Extract Edges” that I can use to obtain other metrics like volumes, edge ratios and so on but I cannot obtain the edges lengths (or at least the maximum/minimum) for each individual cell. Is it possible to create a variable with the length of the longest edge for each cell? Thank you in advance!

---

<div class="post-metadata">

### Author: ![Christos\_Tsolakis](https://discourse.paraview.org/user_avatar/discourse.paraview.org/christos_tsolakis/32/4450_2.png) [@Christos\_Tsolakis](https://discourse.paraview.org/u/Christos_Tsolakis)
#### Post date: [March 24, 2023, 2:51pm UTC](https://discourse.paraview.org/t/maximum-edge-length-of-cell/11700/2 "2023-03-24T14:51:23Z")

</div>

one way is to write a script for the programmable filter. The example below iterates all elements and calculates volume which assigns to an array:  
[https://docs.paraview.org/en/latest/ReferenceManual/pythonProgrammableFilter.html#computing-tetrahedra-volume](https://docs.paraview.org/en/latest/ReferenceManual/pythonProgrammableFilter.html#computing-tetrahedra-volume)

in your case you will need to have an extra outer loop to go over each block but you can start with applying `Merge Blocks` first and apply the programmable filter on its results. Once satisfied you can edit it for multiple blocks.
