14

This is a very simple question that I cannot seem to find an answer to online. All I want to do is make a selection of a single face in a mesh to apply a material to it. The example image shows a red cube with its GN setup. How do I make that only one face of the mesh is red? enter image description here

Edward Serfontein
  • 513
  • 1
  • 5
  • 12

1 Answers1

30

Select faces by index.

enter image description here enter image description here enter image description here

Select with distance to another object's geometry.

enter image description here enter image description here

Gorgious
  • 30,723
  • 2
  • 44
  • 101
  • What would be the node setup for a manual input to select multiple faces? It would be convenient I think to be able so specify it like "0, 1, 2" or perhaps more programmer's style: [0,1,2] to select the faces with equivalent index. – Mike de Klerk Jun 05 '22 at 13:19
  • @MikedeKlerk Unfortunately it's not possible to use programmatic expressions of this kind in GN (yet). The way to do it would be to chain "AND" boolean nodes and "EQUAL" compare nodes – Gorgious Jun 05 '22 at 15:00
  • what is the equal node – stackers Mar 14 '24 at 18:52
  • 1
    @stackers Utilities > Math > Compare node – Gorgious Mar 15 '24 at 07:13