Impossible to draw because CGAL_USE_BASIC_VIEWER is not defined

对着背影说爱祢 提交于 2019-12-13 09:34:44

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!