# Visualizing Simulation Bounding Box

**URL:** https://discourse.paraview.org/t/visualizing-simulation-bounding-box/504
**Category:** ParaView Support
**Created:** [August 31, 2018, 10:16am UTC](https://discourse.paraview.org/t/visualizing-simulation-bounding-box/504 "2018-08-31T10:16:41Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![WEsToMIL](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/e47774/32.png) [@WEsToMIL](https://discourse.paraview.org/u/WEsToMIL)
#### Post date: [August 31, 2018, 10:16am UTC](https://discourse.paraview.org/t/visualizing-simulation-bounding-box/504/1 "2018-08-31T10:16:42Z")

</div>

Hi,

I’m sometimes using Paraview to visualize simpleascii structured gird vtk files for particle data.  
Example:

```
# vtk DataFile Version 2.0
Timestep
ASCII
DATASET STRUCTURED_GRID
DIMENSIONS 1 1 1
POINTS 4 double
0.4 0.2 0.2
0.6 0.2 0.2
0.2 0.6 0.2
0.6 0.6 0.2

```

My question now is: How can I draw the bounding box of the domain in Paraview?  
As far as I understand the “DIMENSIONS” line represents this Information.  
The nearest thing I know so far is activating “Data Axes Grid” but in this case, this would not draw a box around the whole domain but only around the farthest out particles.

Help appreciated 🙂

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [August 31, 2018, 12:59pm UTC](https://discourse.paraview.org/t/visualizing-simulation-bounding-box/504/2 "2018-08-31T12:59:47Z")

</div>

For a simple box, use the **Outline** filter.

---

<div class="post-metadata">

### Author: ![WEsToMIL](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/e47774/32.png) [@WEsToMIL](https://discourse.paraview.org/u/WEsToMIL)
#### Post date: [August 31, 2018, 1:27pm UTC](https://discourse.paraview.org/t/visualizing-simulation-bounding-box/504/3 "2018-08-31T13:27:38Z")

</div>

The Outline Filter (at least for me) gives me the same box as “(Data) Axes Grid” but obviously without numbers.

Probably I didn’t clearly specify what I want:  
My Domain is a box with edge lenghs 1,1,1 (See DIMENSIONS in the esample vtk file.). Therefore I would like Paraview to draw a box with a lower corner at (0,0,0) and an upper at (1,1,1).  
Outline / Data Axes Grid / Axes Grid all give me (for the given Example) a Box from (0.2, 0.2, 0.2) to (0.6, 0.6, 0.2) because these are the outermost particle coordinates.

I also use a glyph filter to visualize the points if this is of any relevance.

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [August 31, 2018, 1:35pm UTC](https://discourse.paraview.org/t/visualizing-simulation-bounding-box/504/4 "2018-08-31T13:35:14Z")

</div>

easiest option would be plop another source in with the required bounds. e.g. create a **Box** source with **center** as (0.5, 0.5,0.5) and the X,Y,Z lengths as 1. Change it’s representation to **Outline**. Now **Data Axes Grid** for the box or **Axes Grid** for the whole scene should be closer to what you want.

---

<div class="post-metadata">

### Author: ![WEsToMIL](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/e47774/32.png) [@WEsToMIL](https://discourse.paraview.org/u/WEsToMIL)
#### Post date: [August 31, 2018, 1:42pm UTC](https://discourse.paraview.org/t/visualizing-simulation-bounding-box/504/5 "2018-08-31T13:42:13Z")

</div>

> create a **Box**

Yes, this actually fits pretty exactly what I want thanks 🙂

However, this forces me to manually enter dimensions and center of the box. Is there no way to use the information from the datafile? Or can this Information be passed through the datafile with other keywords?

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [August 31, 2018, 1:50pm UTC](https://discourse.paraview.org/t/visualizing-simulation-bounding-box/504/6 "2018-08-31T13:50:48Z")

</div>

The domain information is actually not in the data file at all. The only geometry information the data file has are the points and the points are indeed in the range that doesn’t cover the full domain.

---

<div class="post-metadata">

### Author: ![WEsToMIL](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/e47774/32.png) [@WEsToMIL](https://discourse.paraview.org/u/WEsToMIL)
#### Post date: [August 31, 2018, 2:25pm UTC](https://discourse.paraview.org/t/visualizing-simulation-bounding-box/504/7 "2018-08-31T14:25:51Z")

</div>

Whats then the point of the DIMENSIONS line?

Is there a way to store the information about the geometry of the domain in the file (and use it in Paraview?).

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [August 31, 2018, 2:37pm UTC](https://discourse.paraview.org/t/visualizing-simulation-bounding-box/504/8 "2018-08-31T14:37:00Z")

</div>

dimensions are the structured grid dimensions. It’s telling how many samples you have along i, j, and k directions.
