New answers tagged


I can see 2 ways of attacking this. You could organize all the walls of the world into a tree data structure (or maybe a forest, if you have like a list of separate rooms). This way, you can arrange the wall data so p1 always comes before p2 when traversing the points to draw the walls. Use the natural ordering from the underlying coordinate system. ...

Top 50 recent answers are included