How to eliminate the gaps in the discretized model?

I read a IGES file by IGESControl_Reader and used BRepMesh_IncrementalMesh to discrete it, but it creates some gaps.
Now I want to know how to close these gaps, does opencasde have any libraries that can handle it?

the BottleCap.IGS is the model file.
and the picture in attachments is the problem I met.

shen shuwei's picture

so I want to know which library can solve this problem

Mikhail Sazonov's picture

Use the class BRepBuilderAPI_Sewing.

shen shuwei's picture

Thank you for your advice, now I can successfully eliminate some of the tiny gaps. It works-well when I set the tolerance to 1.0e-02.