由于未定义CGAL_USE_BASIC_VIEWER,​​因此无法绘制 [英] Impossible to draw because CGAL_USE_BASIC_VIEWER is not defined

查看:769
本文介绍了由于未定义CGAL_USE_BASIC_VIEWER,​​因此无法绘制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了以下draw_polyhedron示例:



解决方案

我通过添加到‍‍ .pro来解决了该问题文件:

  QMAKE_CXXFLAGS + =-DCGAL_USE_BASIC_VIEWER 
LIBS + =-DCGAL_USE_BASIC_VIEWER


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

解决方案

I solved it by adding to ‍‍‍‍‍.pro file:

QMAKE_CXXFLAGS +=-DCGAL_USE_BASIC_VIEWER
LIBS+=-DCGAL_USE_BASIC_VIEWER

这篇关于由于未定义CGAL_USE_BASIC_VIEWER,​​因此无法绘制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆