# Generating a mesh from vtkPolyData in C++

**URL:** https://discourse.vtk.org/t/generating-a-mesh-from-vtkpolydata-in-c/3713
**Category:** Support
**Created:** [July 6, 2020, 6:06pm UTC](https://discourse.vtk.org/t/generating-a-mesh-from-vtkpolydata-in-c/3713 "2020-07-06T18:06:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![beginner](https://discourse.vtk.org/user_avatar/discourse.vtk.org/beginner/32/1930_2.png) [@beginner](https://discourse.vtk.org/u/beginner)
#### Post date: [July 6, 2020, 6:06pm UTC](https://discourse.vtk.org/t/generating-a-mesh-from-vtkpolydata-in-c/3713/1 "2020-07-06T18:06:24Z")

</div>

Hello,

I’ve tried using vtkGreedyTerrainDecimation but it doesn’t seem to work in alignment with what I am doing. Also, I am trying to use reconstruction methods that don’t require a remote library. Are there any suggestions? I tried drawing triangles following this example: [https://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/TriangleColoredPointsout](https://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/TriangleColoredPointsout) individually but I didn’t get any triangles shown. Specifically, I am confused about how the SetId part works in alignment with the points.

Any help would be greatly appreciated. Thanks.

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [July 7, 2020, 2:51pm UTC](https://discourse.vtk.org/t/generating-a-mesh-from-vtkpolydata-in-c/3713/2 "2020-07-07T14:51:13Z")

</div>

Hi, that page is empty. No example there. Just this:

> There is currently no text in this page. You can [search for this page title](https://vtk.org/Wiki/Special:Search/VTK/Examples/Cxx/PolyData/TriangleColoredPointsout) in other pages, or [search the related logs](https://vtk.org/Wiki/index.php?title=Special:Log&page=VTK/Examples/Cxx/PolyData/TriangleColoredPointsout), but you do not have permission to create this page.
