# Smart Selection

**URL:** <https://molflow-forum.web.cern.ch/t/smart-selection/567>\
**Category:** Bugs & Issues\
**Created:** [August 30, 2023, 9:27pm UTC](https://molflow-forum.web.cern.ch/t/smart-selection/567 "2023-08-30T21:27:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alan](https://molflow-forum.web.cern.ch/user_avatar/molflow-forum.web.cern.ch/alan/32/730_2.png) [@alan](https://molflow-forum.web.cern.ch/u/alan)\
**Post date:** [August 30, 2023, 9:27pm UTC](https://molflow-forum.web.cern.ch/t/smart-selection/567/1 "2023-08-30T21:27:05Z")

</div>

I don’t know if I would call it a bug, but why does _Smart Selection_ only work after you perform a _Collapse Facet_? Sometime I don’t want to do a collapse, but I still really need the _Smart Selection_ feature.

For example…I created an outgassing map on a facet and want to select all those exploded facets. However, I need to do a collapse, which combines adjacent facets with the same outgassing value into a collapsed facet which also gets rid of any texture properties I setup on those facets.

Best,  
Alan

---

<div class="post-metadata">

**Author:** ![maarton](https://molflow-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/e5b9ba/32.png) [@maarton](https://molflow-forum.web.cern.ch/u/maarton)\
**Post date:** [August 31, 2023, 10:09am UTC](https://molflow-forum.web.cern.ch/t/smart-selection/567/2 "2023-08-31T10:09:24Z")

</div>

It only works with **neighbor** facets, that share vertices.  
The exploded facets (and also extrusions, and a few special geometry operations) create duplicate vertices (two different vertices but with same coordinates), therefore they aren’t recognised as neighbors. In general, these duplicate vertices shouldn’t be present in a geometry, they can even create ray-tracing errors as the collision detection order becomes udefined.  
The fix is to do the collapse command **only with the collapse vertices** option, which won’t merge facets, after that the smart select will work reliably.

On the longer term I’ll fix the explode command (written 15 years ago), there’s no actual reason to create duplicate vertices. Thanks for reporting.
