I've got a basic cube and I would like to have different instances of objects for top vertices and bottom vertices. My idea is that I need to separate the cube and calculate which point is above which but I don't know how to achieve that using the geometry nodes. I know I can accomplish this using indexes or IDs but I need this to work even if the original cube is extruded which won't work with this method.
EDIT:
- Top/bottom in this question is meant as position on Z axis. The cube would be extruded only in X and Y axis.
- The object should be the frame of reference. I'm only planning to rotate it horizontally.
- There is no need to solve vertical (Z) extrusion.
What I want to achieve
What I have so far (missing the selection/boolean for vertices)



