[MOAB-dev] Remove duplicates

Iulian Grindeanu iulian at mcs.anl.gov
Thu Jul 18 08:27:45 CDT 2013


----- Original Message -----

| Hi All

| Does anyone know of a convenient way of removing duplicate entities
| from a range, lets say for example I had an MBRange that i had
| inserted two MBEntityHandles to, that had the same services that
| define the entity, but consequently had different handles.

| Obviously I could parse this list and compare the vertex definition
| of every entity against every other, this would be N^2. Is there a
| standard moab function for this?

| Thanks

| Andy

| Sent from my Samsung Galaxy Note™, an AT&T LTE smartphone
Probably you can use MergeMesh tool; You have to pass a tolerance for vertex merging; It will take care of merging higher dimensional entities too. 
It is creating a kdtree, so searching by position is not O(N^2), after the kd tree creation. 

Iulian 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/moab-dev/attachments/20130718/3f8134fe/attachment.html>


More information about the moab-dev mailing list