# 3D mesh for paraview

**URL:** <https://community.freefem.org/t/3d-mesh-for-paraview/2380>\
**Category:** General Discussion\
**Created:** [April 5, 2023, 2:23pm UTC](https://community.freefem.org/t/3d-mesh-for-paraview/2380 "2023-04-05T14:23:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsmacd](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jsmacd](https://community.freefem.org/u/jsmacd)\
**Post date:** [April 5, 2023, 2:23pm UTC](https://community.freefem.org/t/3d-mesh-for-paraview/2380/1 "2023-04-05T14:23:35Z")

</div>

I’ve saved some 3D data as a vtu file so that I can look at it in Paraview. However, in Paraview I am seeing only the solution along the boundary. When I try to use the volume filter, it states that I don’t have tetrahedra cells. From the Paraview forums, I’ve gathered that I’m not passing Paraview a 3D mesh.

Have I saved the data incorrectly? Do I have to do something special for 3D meshes? Below is my code.

```auto
load "iovtk"
load "msh3" 
load "medit" 

mesh3 Th = readmesh3("cube.mesh"); // saved mesh built with cube command

fespace Vh(Th, P1);
Vh u

u[] = readsol("u.sol"); // saved solution computed over above cube domain 

int[int] Order = [1];
string DN = "uData";
savevtk("u.vtu", Th, u, dataname=DN, order=Order);

```

---

<div class="post-metadata">

**Author:** ![Oussama](https://avatars.discourse-cdn.com/v4/letter/o/e9a140/32.png) [@Oussama](https://community.freefem.org/u/Oussama)\
**Post date:** [November 24, 2024, 7:24pm UTC](https://community.freefem.org/t/3d-mesh-for-paraview/2380/2 "2024-11-24T19:24:09Z")

</div>

I have the same problem. Did you find a solution?

---

<div class="post-metadata">

**Author:** ![jsmacd](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jsmacd](https://community.freefem.org/u/jsmacd)\
**Post date:** [November 25, 2024, 3:09am UTC](https://community.freefem.org/t/3d-mesh-for-paraview/2380/3 "2024-11-25T03:09:25Z")

</div>

Sorry I don’t think that I did, and instead used MATLAB to visualise.

---

<div class="post-metadata">

**Author:** ![Oussama](https://avatars.discourse-cdn.com/v4/letter/o/e9a140/32.png) [@Oussama](https://community.freefem.org/u/Oussama)\
**Post date:** [November 26, 2024, 6:06am UTC](https://community.freefem.org/t/3d-mesh-for-paraview/2380/4 "2024-11-26T06:06:25Z")

</div>

Thank you for the reply. I guess I will go that route too.

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [November 26, 2024, 8:00am UTC](https://community.freefem.org/t/3d-mesh-for-paraview/2380/5 "2024-11-26T08:00:20Z")

</div>

What is your issue precisely? The code in the initial post can’t be run because the input files are missing.
