I have a mesh where I initially assign a material to faces based on their normals' angles (an example is provided in the attached .blend file). This initial selection method works, but I need to refine it using a specific rule for assigning and removing materials based on the connectivity of faces.
Here’s the rule I’m aiming to implement:
- Assign Material: If an empty face without a material is connected to at least two faces with the material, that face should also be assigned the material.
- Remove Material: Conversely, if a face with the material is connected to only one or no faces with the material, the material should be removed from that face.
In the screenshot you can see the original selection on the partially red suzanne. In the green one, what I want to achieve in an example crafted manually for the sake of clarity.
Attempting to find a solution I discovered (and was surprised) that I can expand the selection using Blur Attribute node, but that is not what I want. Thanks for your help.