# Geometry in 3D view

**URL:** <https://openmc.discourse.group/t/geometry-in-3d-view/1925>\
**Category:** User Support\
**Created:** [April 13, 2022, 12:28am UTC](https://openmc.discourse.group/t/geometry-in-3d-view/1925 "2022-04-13T00:28:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fahima](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@Fahima](https://openmc.discourse.group/u/Fahima)\
**Post date:** [April 13, 2022, 12:28am UTC](https://openmc.discourse.group/t/geometry-in-3d-view/1925/1 "2022-04-13T00:28:26Z")

</div>

Hi,

I am wondering how I can visualize the geometry in 3D in openmc?

Thanks,  
Fahima

---

<div class="post-metadata">

**Author:** ![Pranto](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/pranto/32/489_2.png) [@Pranto](https://openmc.discourse.group/u/Pranto)\
**Post date:** [April 13, 2022, 4:58am UTC](https://openmc.discourse.group/t/geometry-in-3d-view/1925/2 "2022-04-13T04:58:00Z")

</div>

For 3D visualization, Simply change the plot type = ‘voxel’

```python
vox = openmc.Plot()
vox.type = 'voxel'
vox.filename = 'voxelPlot'
vox.width = ..
vox.pixels = ..
vox.origin = ..
vox.color_by = 'material'

plots = openmc.Plots([vox])
plots.export_to_xml()

```

Here’s [a link](https://docs.openmc.org/en/stable/usersguide/plots.html#voxel-plots) to the user manual, which explains how to create a 3D voxel plot.
