How to remove duplicates from Shape?

I'm reading an iges which will have two identical faces and edges. But they will have different HashCode. After I changed them GCPnts_TangentialDeflection and Poly_Triangulation they have exactly the same gp_Pnt and Node

I tried Shape.is_partner, Shape.is_same, Shape.is_equal but they couldn't be removed. How to use occ function to remove duplicates?

Attachments: 
Dmitrii Pasukhin's picture

Hello, which shapes should be isSame? your comparesion is true?

If "is_partner" is true, please create your own hasher to hash only TShape;

Best regards, Dmitrii.

Ykong1337's picture

I open it using CAD Assistant

I found that the properties of both of them are exactly the same, and I want to exclude one

Attachments: