# Calculating the volume of pores in areas of huge stl files

**URL:** https://discourse.paraview.org/t/calculating-the-volume-of-pores-in-areas-of-huge-stl-files/9370
**Category:** ParaView Support
**Created:** [April 6, 2022, 9:49am UTC](https://discourse.paraview.org/t/calculating-the-volume-of-pores-in-areas-of-huge-stl-files/9370 "2022-04-06T09:49:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Terry](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/b9e5f3/32.png) [@Terry](https://discourse.paraview.org/u/Terry)
#### Post date: [April 6, 2022, 9:49am UTC](https://discourse.paraview.org/t/calculating-the-volume-of-pores-in-areas-of-huge-stl-files/9370/1 "2022-04-06T09:49:21Z")

</div>

Dear ParaView Community,

first time working with stl’s in paraview. My files are 2+ gigabyte STL’s with small areas of interest inside. They come from ct images of metal 3d printed parts.

My first approach:

Start tracing  
use clip til you have the wanted area  
integrate variables to get volume of pores  
(add something unknown yet to get more information like shape later)  
use trace to write script to do this for all the areas  
use script for all of your stl files

However integrate variables does not give me the volume as I am used to with openFoam case files. Do you think this is the right approach at all?

Kind regards,  
Teresa

---

<div class="post-metadata">

### Author: ![Terry](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/b9e5f3/32.png) [@Terry](https://discourse.paraview.org/u/Terry)
#### Post date: [April 20, 2022, 9:16am UTC](https://discourse.paraview.org/t/calculating-the-volume-of-pores-in-areas-of-huge-stl-files/9370/2 "2022-04-20T09:16:32Z")

</div>

Dear all,

I think I got a step forward.  
The new approach:  
connectivity filter (cell count descending)  
thresholds filter (min 1 to cut out out the overall cylinder)  
programmableFilter using this script:  
[Paraview Forum Post](https://discourse.paraview.org/t/calculate-volume-of-tetrahedral-mesh-regions/2609/2)

Only problem that it spits out zero for every regions volume. Any Ideas?

Kind Reards,  
Teresa
