2019年8月23日 星期五

CGAL visualize by CGAL::draw(); in vs2013

//get Impossible to draw because CGAL_USE_BASIC_VIEWER is not defined
1. to define the preprocessor macro `CGAL_USE_BASIC_VIEWER`,
using the compilation flag `-DCGAL_USE_BASIC_VIEWER`, and,

vs 的話要去 Project properties -> Config Properties -> C/C++ -> Command Line -> Additional Options
加上"-DCGAL_USE_BASIC_VIEWER"
2. to link with the library CGAL_Qt5.

//'QDomElement': No such file or directory
vs 的話要先 qt vs tool -> creat basic .pro file
然後Add QT += xml into your .pro file
在從新讀取.pro即可
此外不需要在#include <QDomDocument>
// reference web:
// http://cgal-discuss.949826.n4.nabble.com/How-to-draw-a-Triangulation-with-Qt-td4663779.html
// https://stackoverflow.com/questions/41908940/how-to-set-c-compiler-flags-in-visual-studio2015
// https://stackoverflow.com/questions/29669917/error-in-finding-qdomdocument-in-c-code

沒有留言:

張貼留言

Eclipse 5.27.1 環境主題修改

Eclipse 環境設定 1. 主題 Window->Preferences->General->Appearance->Theme->Dark 2. 文字大小 Window->Preferences->General-&...