# vtkOpenFOAMReader : get bounding box of simulation ?

**URL:** https://discourse.vtk.org/t/vtkopenfoamreader-get-bounding-box-of-simulation/7308
**Category:** Support
**Created:** [December 2, 2021, 4:38am UTC](https://discourse.vtk.org/t/vtkopenfoamreader-get-bounding-box-of-simulation/7308 "2021-12-02T04:38:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Nicholas\_Yue](https://discourse.vtk.org/user_avatar/discourse.vtk.org/nicholas_yue/32/3751_2.png) [@Nicholas\_Yue](https://discourse.vtk.org/u/Nicholas_Yue)
#### Post date: [December 2, 2021, 4:38am UTC](https://discourse.vtk.org/t/vtkopenfoamreader-get-bounding-box-of-simulation/7308/1 "2021-12-02T04:38:05Z")

</div>

Hi,

I am reading in a vtkOpenFOAMReader object in C++

Independently I can see the computational bounds in Paraview.

What methods I can call on the object in C++ to query the computational bounds of the FOAM file ? Do I have to read in all the mesh data to find the bbox min/max ? or is there a more direct method ?

Cheers

---

<div class="post-metadata">

### Author: ![Christos\_Tsolakis](https://discourse.vtk.org/user_avatar/discourse.vtk.org/christos_tsolakis/32/2076_2.png) [@Christos\_Tsolakis](https://discourse.vtk.org/u/Christos_Tsolakis)
#### Post date: [December 3, 2021, 12:10am UTC](https://discourse.vtk.org/t/vtkopenfoamreader-get-bounding-box-of-simulation/7308/2 "2021-12-03T00:10:52Z")

</div>

`vtkOpenFOAMReader::GetOutput()` returns a [vtkMultiBlockDataSet](https://vtk.org/doc/nightly/html/classvtkMultiBlockDataSet.html) which has a `GetBounds(double bounds[6]|)` method.
