Index: trunk/src_plugins/sketch_route/cdt/cdt.h =================================================================== --- trunk/src_plugins/sketch_route/cdt/cdt.h (revision 18247) +++ trunk/src_plugins/sketch_route/cdt/cdt.h (revision 18248) @@ -55,4 +55,7 @@ #define LINES_INTERSECT(p1, q1, p2, q2) \ (ORIENT_CCW(p1, q1, p2) != ORIENT_CCW(p1, q1, q2) && ORIENT_CCW(p2, q2, p1) != ORIENT_CCW(p2, q2, q1)) +#define EDGE_OTHER_POINT(edge, point) \ + ((edge)->endp[0] != (point) ? (edge)->endp[0] : (edge)->endp[1]) + #endif