Get internal or external corner of walls


#1

I got competely stuck on this from the beginning, don’t even know if it’s possible or not but it seems worth asking. Because googling did not yield any results. As an example I have the following simple room.

The orange arrows represent external corners, the green arrows internal corners. Which conditions or parameters can conclude a corner is internal or external?