# 3D reconstruction

**URL:** https://discourse.paraview.org/t/3d-reconstruction/13507
**Category:** ParaView Support
**Tags:** vtk
**Created:** [December 14, 2023, 2:25pm UTC](https://discourse.paraview.org/t/3d-reconstruction/13507 "2023-12-14T14:25:31Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![mar.premi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@mar.premi](https://discourse.paraview.org/u/mar.premi)
#### Post date: [December 14, 2023, 2:25pm UTC](https://discourse.paraview.org/t/3d-reconstruction/13507/1 "2023-12-14T14:25:31Z")

</div>

Hi, is it possible to do a 3D reconstruction in paraview?  
I want to obtain a 3D mesh from this.  
Do you have any suggestion?  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/b/ba6910f41828e7320be9522d97c6afa987010282.png)

I want something like this

 ![image](https://discourse.paraview.org/uploads/default/original/2X/f/fec2c3b751cc974950e53257d3289821ac6eb589.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [December 14, 2023, 2:28pm UTC](https://discourse.paraview.org/t/3d-reconstruction/13507/2 "2023-12-14T14:28:05Z")

</div>

Filters → Delaunay3D ?

---

<div class="post-metadata">

### Author: ![mar.premi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@mar.premi](https://discourse.paraview.org/u/mar.premi)
#### Post date: [December 14, 2023, 2:30pm UTC](https://discourse.paraview.org/t/3d-reconstruction/13507/3 "2023-12-14T14:30:41Z")

</div>

Yes, I tried but it is like this:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/d/d2f101f91dca91cd1459e89a0ac9b40e6c1898ae.png)

Should I change some settings?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [December 14, 2023, 2:31pm UTC](https://discourse.paraview.org/t/3d-reconstruction/13507/4 "2023-12-14T14:31:39Z")

</div>

I’m afraid delaunay is limited for reconstruction, maybe @Charles_Gueunet has some inputs

---

<div class="post-metadata">

### Author: ![Christos\_Tsolakis](https://discourse.paraview.org/user_avatar/discourse.paraview.org/christos_tsolakis/32/4450_2.png) [@Christos\_Tsolakis](https://discourse.paraview.org/u/Christos_Tsolakis)
#### Post date: [December 14, 2023, 5:02pm UTC](https://discourse.paraview.org/t/3d-reconstruction/13507/5 "2023-12-14T17:02:26Z")

</div>

You can try increasing the `Alpha` parameter and enabling `Alpha Lines` and `Alpha Verts` but as Mathieu suggested the filter is limited for the type of reconstruction you are interested.

---

<div class="post-metadata">

### Author: ![Charles\_Gueunet](https://discourse.paraview.org/user_avatar/discourse.paraview.org/charles_gueunet/32/40_2.png) [@Charles\_Gueunet](https://discourse.paraview.org/u/Charles_Gueunet)
#### Post date: [December 15, 2023, 1:49pm UTC](https://discourse.paraview.org/t/3d-reconstruction/13507/6 "2023-12-15T13:49:42Z")

</div>

If you are familiar with ITK you may want to look at the [Fill between slices](https://discourse.slicer.org/t/fill-between-slices/6276). Unfortunately, this works only on image data so you would need to transform your data into a regular grid, with each polygon defining a segmentation. The filter will then generate a 3D volume from those. In the end, a Contour filter can be used to generate the output polydata that you want, something like a marching cube approach.

Another variant maybe to use [vespa](https://gitlab.kitware.com/vtk-cgal/vespa/-/blob/master/vespa/), which has a nice [Alpha Wrapping](https://gitlab.kitware.com/vtk-cgal/vespa/-/blob/master/vespa/PolygonMeshProcessing/Testing/TestPMPAlphaWrapping.cxx?ref_type=heads) algorithm coming from [CGAL](https://doc.cgal.org/latest/Alpha_wrap_3/index.html#Chapter_3D_Alpha_wrapping) (Dual licensing, GPLv3 - Commercial). Using a large enough alpha, you would obtain a manifold polydata as output, enclosing all your slices in a 3D surface.

As for a VTK only solution, I am sorry but VTK is not really meant for meshing. Maybe using a linear extrusion to fill a part of the space between lines could help you get a better mesh, while still having a radius small enough to keep some concavities. In the end, there is no grantee the result will be manifold unfortunately.

---

<div class="post-metadata">

### Author: ![Gatien\_Ferret](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gatien_ferret/32/9789_2.png) [@Gatien\_Ferret](https://discourse.paraview.org/u/Gatien_Ferret)
#### Post date: [December 18, 2023, 1:52pm UTC](https://discourse.paraview.org/t/3d-reconstruction/13507/7 "2023-12-18T13:52:27Z")

</div>

Hi, another option may be by using the PCL plugin that we have introduced in [LidarView](https://gitlab.kitware.com/LidarView/lidarview) ( which, in short, is a ParaView based app meant to process point cloud data and connect to live 3D sensors).

We wrapped the PCL algorithms of Convex Hull, Concave Hull, Poisson and Marching Cubes to create meshes out of point clouds.

As of now, we haven’t isolated this PCL plugin from the LidarView build, so it has be to be built within LidarView ( but the resulting plugin shall be loadable in ParaView). Build guidelines may be found [here](https://gitlab.kitware.com/LidarView/lidarview-superbuild/-/blob/master/README.md)
