I edited my question to hopefully make it more clear and easy to answer:
What is my goal? I want something similar to this in blender: https://www.youtube.com/watch?v=RfyXNhOnQQg&t=3m2s
My starting point is a plane where I delete faces based on vertex color to "paint" geometry. So far so good. Then I select the faces in the corner and edge of the plane, so give them a different material.
But now here is my problem: I want every face at edge and corner have a different material, based at which direction is outside. For example for the orange corner, the outside is +Y/-X. But how do I get this attribute and select with it?
If it's not possible with this method, I'm open for other ideas. My goal is just to automatically place a fitting texture to corners and edges to save a lot of time in contrast by placing every cube/texture by hand.
Thanks in advance for every help!