# Does vtkTriangleFilter alters the mesh when applied to a quad mesh?

**URL:** https://discourse.vtk.org/t/does-vtktrianglefilter-alters-the-mesh-when-applied-to-a-quad-mesh/14176
**Category:** Development
**Created:** [July 5, 2024, 9:22pm UTC](https://discourse.vtk.org/t/does-vtktrianglefilter-alters-the-mesh-when-applied-to-a-quad-mesh/14176 "2024-07-05T21:22:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Rafael\_Scatena](https://discourse.vtk.org/user_avatar/discourse.vtk.org/rafael_scatena/32/7820_2.png) [@Rafael\_Scatena](https://discourse.vtk.org/u/Rafael_Scatena)
#### Post date: [July 5, 2024, 9:22pm UTC](https://discourse.vtk.org/t/does-vtktrianglefilter-alters-the-mesh-when-applied-to-a-quad-mesh/14176/1 "2024-07-05T21:22:41Z")

</div>

Hello,

I want to process a quad mesh outside vtk. But the process is further simplified if I work with triangles. Does the vtkTriangleFilter alter the mesh when applied to a quad mesh?

Or does it just split the quads into two triangles without altering the position of the original quad?

Thank you,

Rafael S.

---

<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: [July 7, 2024, 12:18pm UTC](https://discourse.vtk.org/t/does-vtktrianglefilter-alters-the-mesh-when-applied-to-a-quad-mesh/14176/2 "2024-07-07T12:18:28Z")

</div>

Triangle filter does not change point positions. Since VTK is open-source you can have a look at the source code to see all algorithm details.

---

<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, 2024, 12:20pm UTC](https://discourse.vtk.org/t/does-vtktrianglefilter-alters-the-mesh-when-applied-to-a-quad-mesh/14176/3 "2024-07-07T12:20:54Z")

</div>

Hello,

What are you getting?

best,

PC
