TIG:
@unknownuser said:
face = edge1.common_face edge2
returns an edge1 face shared with edge2...
yes, I use exactly this method ... but the point of my question is how does ruby determines, which face will it be, if there are more candidates, see my picture please, there are two common faces for two marked edges, and common_face returns one of them (and only in certain circumstances the one I want), I just do not know how to influence which one
Fredo:
I like that approach, as it happens, I might use this code in some other place of my silly program, it just does not solve my initial problem - to be able to select one particular face. I am trying to avoid drawing one more edge (on one of the unmarked edges of shaded face in my picture) - so I wil have unambiguos common face - but that lacks elegance a lot.