# duplicated triangles after applying removeDuplicatePolyFilter

**URL:** https://discourse.vtk.org/t/duplicated-triangles-after-applying-removeduplicatepolyfilter/6164
**Category:** Support
**Created:** [July 10, 2021, 4:17am UTC](https://discourse.vtk.org/t/duplicated-triangles-after-applying-removeduplicatepolyfilter/6164 "2021-07-10T04:17:36Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Hyunwoo\_Kim](https://discourse.vtk.org/user_avatar/discourse.vtk.org/hyunwoo_kim/32/3465_2.png) [@Hyunwoo\_Kim](https://discourse.vtk.org/u/Hyunwoo_Kim)
#### Post date: [July 10, 2021, 4:17am UTC](https://discourse.vtk.org/t/duplicated-triangles-after-applying-removeduplicatepolyfilter/6164/1 "2021-07-10T04:17:37Z")

</div>

Hi, I’m creating a polydata after triangulation.  
I want to remove all duplicated triangles.  
After using remove DuplicatePolyFilter I still got the message that the polydata has duplicated triangles.  
How can I perfectly remove duplicated triangles?

 ![image](https://discourse.vtk.org/uploads/default/original/2X/0/04f9f307f70776fa543f6c3ccdbce9d61862ad9f.png)  
 ![image](https://discourse.vtk.org/uploads/default/original/2X/c/ca9b00db3de6d51c4ed215f5f2b0ed13c7a5408e.png)

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.vtk.org/u/Kenichiro-Yoshimi)
#### Post date: [July 10, 2021, 8:21am UTC](https://discourse.vtk.org/t/duplicated-triangles-after-applying-removeduplicatepolyfilter/6164/2 "2021-07-10T08:21:46Z")

</div>

Hello,

Could you share the data including the duplicate triangles you are using in a **vtp file** or something?

---

<div class="post-metadata">

### Author: ![Hyunwoo\_Kim](https://discourse.vtk.org/user_avatar/discourse.vtk.org/hyunwoo_kim/32/3465_2.png) [@Hyunwoo\_Kim](https://discourse.vtk.org/u/Hyunwoo_Kim)
#### Post date: [July 11, 2021, 12:15am UTC](https://discourse.vtk.org/t/duplicated-triangles-after-applying-removeduplicatepolyfilter/6164/3 "2021-07-11T00:15:11Z")

</div>

[test.vtp](https://discourse.vtk.org/uploads/short-url/iQGzIC5ZbYPIpw9vjozjntghDPw.vtp) (3.5 MB)  
This is a my mesh file!

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.vtk.org/u/Kenichiro-Yoshimi)
#### Post date: [July 11, 2021, 2:42am UTC](https://discourse.vtk.org/t/duplicated-triangles-after-applying-removeduplicatepolyfilter/6164/4 "2021-07-11T02:42:05Z")

</div>

Hello,

For the data you shared, before and after applying vtkRemoveDuplicatePolys, the results are as follows

- Number of points: 183430 → 183430
- Number of cells: 366104 → 365836

I also tried a similar tool, MeshLab’s Remove Duplicate Faces filter, and the results were the same.

- Vertices: 183430 → 183430
- Faces: 366104 → 365836

From the above, it seems that removing duplicate triangles in the normal sense is valid.

How did you check for duplicate triangles in your previous post? Also, when you did that check, was the number of nodes in your data the same as above?

---

<div class="post-metadata">

### Author: ![Hyunwoo\_Kim](https://discourse.vtk.org/user_avatar/discourse.vtk.org/hyunwoo_kim/32/3465_2.png) [@Hyunwoo\_Kim](https://discourse.vtk.org/u/Hyunwoo_Kim)
#### Post date: [July 12, 2021, 2:47pm UTC](https://discourse.vtk.org/t/duplicated-triangles-after-applying-removeduplicatepolyfilter/6164/5 "2021-07-12T14:47:18Z")

</div>

Hello,

I checked the data used the Tetgen binary file!  
I think my poly data file has some intersection problems.  
So, If any progress, I’ll repot you, Sir.

Thanks!

---

<div class="post-metadata">

### Author: ![Jacky\_Joy](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jacky_joy/32/4801_2.png) [@Jacky\_Joy](https://discourse.vtk.org/u/Jacky_Joy)
#### Post date: [March 8, 2022, 11:40am UTC](https://discourse.vtk.org/t/duplicated-triangles-after-applying-removeduplicatepolyfilter/6164/9 "2022-03-08T11:40:13Z")

</div>

> [@Hyunwoo\_Kim](#):
>
> Hello,
> 
> I checked the data used the Tetgen binary file!  
> I think my poly data file has some intersection problems.  
> So, If any progress, I’ll repot you, Sir.  
> [https://krogerfeedback.nl](https://krogerfeedback.nl) [https://talktosonic.onl](https://talktosonic.onl) [https://talktowendys.vip](https://talktowendys.vip) [https://whataburgersurvey.onl](https://whataburgersurvey.onl)  
> Thanks!

thanks my issue has been fixed.
