CihanTopal / ED_Lib

Implementations of edge (ED, EDColor, EDPF), line (EDLines), circle and low eccentric ellipse (EDCircles) detection algorithms.
MIT License
396 stars 145 forks source link

Fix compile error when using with CGAL #34

Closed 4c3y closed 4 months ago

4c3y commented 1 year ago

If ED.h gets included in the same file where CGAL (Computational Geometry Algorithms Library) is used, the compiler will throw an error because of a macro naming conflict.

The compile error happens in the following enum defined in CGAL/enum.h caused by the RIGHT macro defined in ED.h:

enum  Angle
      {
          OBTUSE = -1,
          RIGHT,
          ACUTE
      };
sturkmen72 commented 4 months ago

Thank you