# Create volumetric mesh

**URL:** https://discourse.vtk.org/t/create-volumetric-mesh/3984
**Category:** Support
**Created:** [August 15, 2020, 1:38pm UTC](https://discourse.vtk.org/t/create-volumetric-mesh/3984 "2020-08-15T13:38:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![isuruwi](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/i/c0e974/32.png) [@isuruwi](https://discourse.vtk.org/u/isuruwi)
#### Post date: [August 15, 2020, 1:38pm UTC](https://discourse.vtk.org/t/create-volumetric-mesh/3984/1 "2020-08-15T13:38:04Z")

</div>

I need to create a volumetric ellipsoid. VTK appears to provide a number of ways to create a mesh representing the surface of a 3D object. Therefore I used the example given in [1] to first create a vtkParametricEllipsoid and then convert it to unstructured grid.

The reason I want to do this is to pass the output to a Finite Element tool as a solid ellipsoid, but I think by converting a surface mesh to unstructured grid does not fill the interior part which means does not create an ellipsoid with points inside the volume.  
Is there a way to approach that ?

Moreover, I assume that unstructured grid outputs a point cloud and not a 3D mesh. If so how can I convert it into a volumetric mesh/ellipsoid ?

[1] [https://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataToUnstructuredGrid](https://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataToUnstructuredGrid)

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [August 15, 2020, 5:37pm UTC](https://discourse.vtk.org/t/create-volumetric-mesh/3984/2 "2020-08-15T17:37:07Z")

</div>

You can create a surface mesh of the ellipsoid and then generate a volumetric mesh from that using one of the many volumetric meshers, such as cleaver2, netgen, cgal, tetgen, or gmsh.
