<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'><br><br><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div><br></div><div>Hi All</div><div><br></div><div>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. </div><div><br></div><div>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?</div><div><br></div><div>Thanks </div><div><br></div><div>Andy </div><div><br></div><div><br></div><div><br></div><div><div style="font-size:75%;color:#575757">Sent from my Samsung Galaxy Noteā¢, an AT&T LTE smartphone</div></div> </blockquote>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.<br>It is creating a kdtree, so searching by position is not O(N^2), after the kd tree creation.<br><br>Iulian<br></div></body></html>