Example #1
0
 // Fix the order of points in the object so that they form an easily traversible/renderable shape
 protected override void FixOrder()
 {
     // Because this is a convex quad, reordering only requires swapping any 2 indices.
     if (!IsOrderedConvex())
     {
         NPoint swapper = Point[3];
         Point[3] = Point[4];
         Point[4] = swapper;
     }
 }
Example #2
0
 // Figure out if any walls are shared on A and B, and pick the one with the minimum angle
 // Should set BOTH cw and ccw if the first found face already had adjacency
 // How do I choose cw or ccw?
 public bool MatchAdjacent(NPoint a, NPoint b)
 {
     return(false);
 }