CGAL的安装编译

Similar documents
<4D F736F F D20C9CFBAA3BFC6BCBCB4F3D1A7D0C5CFA2D1A7D4BA C4EAC7EFBCBEC8EBD1A7B2A9CABFD7CAB8F1BFBCCAD4CAB5CAA9CFB8D4F22D C8B7B6A8B8E5>

,,.,..., NURBS. : 2, B PDE. 3, PDE B., PDE. 2, Laplace-Beltrami Giaquinta-Hildebrandt. B PDE [1]). S = {x(u 1, u 2 ) R 3 : (u 1, u 2 ) D R 2 } g αβ =

绘制OpenCascade中的曲线

Microsoft Word - Some_regulation_on_drug_bulk_pruchasing.doc

bnbqw.PDF

Microsoft Word 記錄附件

epub83-1

V F m Voronoi a m Voronoi 3 Voronoi [1 10] [1] [7-8] d A = D AB / 1+ 姨 P A /P B 6 v = V-min A new_max A -new_min A + new_min A 3 7 max A -

普通高等学校本科专业设置管理规定

附件1

/ 4 4 / 5 /

Olav Lundström MicroSCADA Pro Marketing & Sales 2005 ABB - 1-1MRS755673

¥]¸Ë»¡©ú

100-1「經典研讀:梁啟超《新民說》」學習歷程檔案

<4D F736F F D D C4EAC5A9D2B5B2FAD6B5BACDBCDBB8F1D7DBBACFCDB3BCC6B1A8B1EDD6C6B6C82E646F63>

美容 丙級 工作項目0 1 : 職業道德


PEEC_CEF_CourseList_Web_v xlsx

1 目 錄 1. 簡 介 一 般 甄 試 程 序 第 一 階 段 的 準 備 第 二 階 段 的 準 備 每 間 學 校 的 面 試 方 式 各 程 序 我 的 做 法 心 得 及 筆 記 結 論..

案例正文:(幼圆、小三、加粗)(全文段前与段后0

11_complex_3d

Gerolor Motors Series Dimensions A,B C T L L G1/2 M8 G1/ A 4 C H4 E

epub 66-4

CC213

Microsoft Word - 我國社區保母系統角色定位與服務模式之研究1

中文模板

Wy159.mps

Chapter 2

untitled

m K K K K m Fig. 2 The plan layout of K K segment p

( Version 0.4 ) 1

Grant proposal

Vol. 22 No. 2 JOURNAL OF HARBIN UNIVERSITY OF SCIENCE AND TECHNOLOGY Apr ,,,,, Apriori,,,,,,,,

國立屏東教育大學碩士班研究生共同修業要點

<4D F736F F F696E74202D20B5DAD2BBD5C228B4F2D3A1B0E6292E BBCE6C8DDC4A3CABD5D>

Sep (SCI) 10. Jiann-Ming Wu, Annealing by two sets of interactive dynamics, IEEE Trans. on Systems Man and Cybernetics Part B-Cybernetics 34 (3)

物理学报 Acta Phys. Sin. Vol. 62, No. 14 (2013) 叠 [4]. PET 设备最重要的部件就是探测器环, 探测 备重建图像具有减少数据插值的优势. 器环的性能直接影响 PET 的成像能力. 探头与探头 之间得到的符合直线叫做投影线. 所有的投影线在

27 10 Vol. 27 No , : Oct., 2015 [4,6-7] [3,5,8-10] [1] [11-13] [7] [14] [15-16] 1 [17] [18] Loading v

(Geographic data or geodata ) 30 (Buelher, K and L. Mckee1996) (Open GIS Consortium OGC) OGC GIS Open GIS OGC (Geography Markup Langu

IP TCP/IP PC OS µclinux MPEG4 Blackfin DSP MPEG4 IP UDP Winsock I/O DirectShow Filter DirectShow MPEG4 µclinux TCP/IP IP COM, DirectShow I

2 g g g g g g g

1. 請 先 檢 查 包 裝 內 容 物 AC750 多 模 式 無 線 分 享 器 安 裝 指 南 安 裝 指 南 CD 光 碟 BR-6208AC 電 源 供 應 器 網 路 線 2. 將 設 備 接 上 電 源, 即 可 使 用 智 慧 型 無 線 裝 置 進 行 設 定 A. 接 上 電 源

untitled

2/14 Buffer I12, /* x=2, buffer = I 1 2 */ Buffer I243, /* x=34, buffer = I 2 43 */ x=56, buffer = I243 Buffer I243I265 code_int(int x, char *buffer)

<4D F736F F D20312D3120B9ABBFAAD7AAC8C3CBB5C3F7CAE9A3A8C9EAB1A8B8E5A3A92E646F63>

財團法人張思恒文教基金會

Microsoft Word - scribe_1_.doc

Microsoft Word doc


三維空間之機械手臂虛擬實境模擬

Some experiences in working with Madagascar: installa7on & development Tengfei Wang, Peng Zou Tongji university

基于矩阵分解和矩阵变换的多义词向量研究

建 筑 热 环 境 1 学 分 16 学 时 Thermal Environment of Buildings 课 程 基 于 人 技 术 设 计 和 未 来 四 个 方 面 进 行 讲 授, 结 合 建 筑 学 学 生 的 特 点, 基 础 部 分 着 重 说 明 物 理 概 念

AL-M200 Series

数学与应用数学专业本科培养计划

1.第二卷第二期p1

幻灯片 1

UDC Empirical Researches on Pricing of Corporate Bonds with Macro Factors 厦门大学博硕士论文摘要库

何 謂 日 本 留 學 試 驗 (EJU) 由 日 本 學 生 支 援 機 構 (JASSO) 負 責 舉 辦 爲 有 意 到 日 本 的 大 學 升 學 的 自 費 外 國 留 學 生 而 設 的 入 學 檢 定 考 試 之 一

/3 CAD JPG GIS CAD GIS GIS 1 a CAD CAD CAD GIS GIS ArcGIS 9. x 10 1 b 1112 CAD GIS 1 c R2VArcscan CAD MapGIS CAD 1 d CAD U

「人名權威檔」資料庫欄位建置表

, : 1 : :,, 2,,, , 41

GOLD(General Ontology for Linguistic Description) (,) (,) (,) () () (,) () (,) (,) (,)


第 一 章 数 学 系 的 历 史 沿 革 第 一 节 数 学 系 的 渊 源 和 机 构 变 革 情 况 1949 年 6 月, 邸 耀 宗 厉 瑞 康 在 太 原 市 北 郊 上 兰 村 原 进 山 中 学 的 废 墟 上 筹 建 兵 工 职 业 学 校,1950 年 改 为 兵 工 高 级 职

ch_code_infoaccess

Microsoft Word - 3D手册2.doc

<4D F736F F D F B0E6B8DFB1BBD2FDD6B8CAFDC7B0D1D42E646F63>

Subspace Gradient Domain Mesh Deformation

1.3


Transcription:

CGAL 的安装编译 eryar@163.com 关键字 Key Word:CGAL, C++, Delaunay Triangulation, Voronoi diagram, 一 引言 Introduction CGAL, Computational Geometry Algorithms Library, 计算几何算法库 设计目标是以 C++ 库的形式提供方便 高效 可靠的几何算法 CGAL 可用于各种需要几何计算的领域, 如计 算机图形学, 科学可视化, 计算机辅助设计与建模, 地理信息系统, 分子生物学, 医学成像, 机器人运动规划, 网格生成, 数值方法等 The goal of the CGAL Open Source Project is to provide easy access to efficient and reliable geometric algorithms in the form of a C++ library. CGAL is used in various areas needing geometric computation, such as: computer graphics, scientific visualization, computer aided degisn and modeling, geographic information systems, molecular biology, medical imaging, robotics and motion planning, mesh generation, numerical methods... 计算几何算法库 (CGAL) 提供计算几何相关的数据结构和算法, 如三角剖分 (2D 约 束三角剖分及二维和三维 Delaunay 三角剖分 ),Voronoi 图 ( 二维和三维的点,2D 加权 Voronoi 图, 分割 Voronoi 图等 ), 多边形 ( 布尔操作, 偏置 ), 多面体 ( 布尔运算 ), 曲线整理及其 应用, 网格生成 ( 二维 Delaunay 网格生成和三维表面和体积网格生成等 ), 几何处理 ( 表面 网格简化, 细分和参数化等 ), 凸壳算法 (2D,3D 和 dd), 搜索结构 ( 近邻搜索,kd 树等 ), 插值, 形状分析, 拟合, 距离等 The Computational Geometry Algorithms Library(CAGL), offers data structures and algorithms like triangulations(2d constrained triangulations and Delaunay triangulations in 2D and 3D, periodic triangulations in 3D), Voronoi diagrams(for 2D and 3D points, 2D additively weighted Voronoi diagrams, and segment Voronoi diagrams), polygons(boolean operations, offsets, straight skeleton), polyhedra(boolean operations), arrangements of curves and their applications(2d and 3D envelopes, Minkowski sums), mesh generation(2d Delaunay mesh generation and 3D surface and volume mesh generation, skin surfaces), geometry processing(surface mesh simplification, subdivision and parameterization, as well as estimation of local differential properties, and approximation of ridges and umbilics), alpha shapes, convex hull algorithms(in 2D, 3D and interpolation and placement of streamlines), shape analysis, fitting, and distances(smallest enclosing sphere of points or spheres, smallest enclosing ellipsolid of points, principal component analysis), and kinetic data structures. More information please see: http://www.cgal.org/.

二 安装 Installation 1. 编译器 Compiler:Visual Studio 2.CMake: 下载 CMake:www.cmake.org 3.Boost 库 : 根据机器选择安装 32/64 位的 Boost 库,http://boost.teeks99.com. 4.Qt: 只有要运行 demo 程序时才需要, 根据需要安装, 最好安装一下 ; 5.libQGLViewer: 只有要运行 3D CGAL 的 demo 程序时才需要, 最好安装一下 ; 6.CGAL 安装包 :Download CGAL installer (http://gforge.inria.fr/frs/?group_id=52). 运行 CGAL 安装包, 按提示安装 因为 CGAL 需要 GMP 和 MPFR 第三方库, 主要是 用来处理多精度的整数 有理数 (multi precision integers and rational numbers, and for multi precision floating point numbers) 由于 Visual C++ 对 GMP 和 MPFR 的工程支持不是很好, CGAL 提供编译好的 GMP 和 MPFR, 由安装包在安装时从网上下载 所以在安装过程中如 果需要下载 GMP 和 MPFR, 一定要下载

三 编译 Compiling 先用 CMake 生成 Visual Studio 的工程文件 打开 CMake, 设置 sorce code 和 build the binaries 的目录, 如下图所示 : 点击 Configure, 选择所需要的编译器, 如下图所示 : 希望一切都顺利, 你将会看到 Configuring done, 如下图所示 :

但是, 也可能第一次并没有成功, 可能会出现下面的错误, 如找不到 Boost 库 : Can not find BOOST_INCLUDE_DIR 这时就需要手动在 CMake 中添加一下, 点 Add Entry, 添加相应的路径, 如下图所示 : 类似地, 添加其它报错的 Boost 库, 如下图所示 : 再点 Configure, 如果 Generate 可以点击, 就点击 生成 Visual Studio 的解决方案

生成的解决方案如下图所示 : 打开解决方案, 编译整个解决方案即可 Congratulations!