问题
I tried the following example of draw_polyhedron:
https://doc.cgal.org/latest/Polyhedron/Polyhedron_2draw_polyhedron_8cpp-example.html
but there is the following error :
Impossible to draw because CGAL_USE_BASIC_VIEWER is not defined.
I tryied to add #define CGAL_USE_BASIC_VIEWER but the error is still existing
回答1:
I solved it by adding to .pro
file:
QMAKE_CXXFLAGS +=-DCGAL_USE_BASIC_VIEWER
LIBS+=-DCGAL_USE_BASIC_VIEWER
来源:https://stackoverflow.com/questions/53150670/impossible-to-draw-because-cgal-use-basic-viewer-is-not-defined