Optimizing mesh generated by BRepMesh_IncrementalMesh

It seems that the mesh generated when using BRepMesh_IncrementalMesh on a compound contains a lot of duplicate vertex info. Is there a way to either generate an optimized mesh or to optimize an existing mesh?

Forum supervisor's picture

Hello Aaron,

How do you check the fact of vertex duplication? Could you share the code you have implemented? Also, would you be able to provide the mentioned compound shape as a BRep file?

By the way, have a look at an alternative meshing solution by OPEN CASCADE - it's our Express Mesh component.

Best regards,

Forum supervisor

Aaron McDonald's picture

As I was collecting everything to submit I realized that I was only comparing the vertex position. This of course would return false positives where vertices might be in the same place but with different normals. Now everything returns perfect. My mistake!