![Page 1: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/1.jpg)
Computational Geometry Algorithms Library
Source: CGAL web page http://www.cgal.org
![Page 2: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/2.jpg)
Source: CGAL web page
![Page 3: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/3.jpg)
Source: CGAL web page
* as of 2004
![Page 4: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/4.jpg)
Source: CGAL web page
![Page 5: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/5.jpg)
2D Convex Hull
Source: CGAL web page
![Page 6: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/6.jpg)
2D Polygon Partitioning
Source: CGAL web page
Partitions polygons into convex pieces.
![Page 7: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/7.jpg)
Delaunay Triangulations
Source: CGAL web page
![Page 8: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/8.jpg)
2D Boolean Operations
Source: CGAL web page
“A Nef-polyhedron in dimension d is a point set generated from a finite number of open halfspaces by set complement and set intersection operations.” [Nef78]
dP
![Page 9: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/9.jpg)
2D Arrangements
Source: CGAL web page
![Page 10: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/10.jpg)
Spatial Searching
Source: CGAL web page
![Page 11: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/11.jpg)
Geometric Optimization
Source: CGAL web page
Finds either maximum area or maximum perimeter convex k-gon whose vertices are vertices of convex hull of point set.
![Page 12: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/12.jpg)
Geometric Optimization (continued)
Source: CGAL web page
![Page 13: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/13.jpg)
Geometric Optimization (continued)
Source: CGAL web page
![Page 14: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/14.jpg)
Robustness
Source: CGAL web page
![Page 15: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/15.jpg)
CGAL Basics
• C++• Can work with LEDA• 3 Main Parts:
– Kernel• Geometric primitive objects & operations on them
– Unmodifiable– Dual object representation
» Stand-alone classes parameterized by representation class» Members of kernel class
• Basic data structures & algorithms– Parameterized by traits classes
» Define interface with primitives• Non-geometric support facilities
Source: CGAL web page
![Page 16: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/16.jpg)
Source: CGAL web page
![Page 17: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/17.jpg)
Source: CGAL web page
![Page 18: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/18.jpg)
Source: CGAL web page
![Page 19: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/19.jpg)
Source: CGAL web page
![Page 20: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/20.jpg)
Source: CGAL web page
![Page 21: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/21.jpg)
Source: CGAL web page
![Page 22: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/22.jpg)
Source: CGAL web page
![Page 23: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/23.jpg)
Programming Details
• Preface CGAL names with CGAL::
• #include CGAL/basic.h first in program– Or another CGAL header file that includes it
Source: CGAL web page
![Page 24: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/24.jpg)
Programming Example
Source: CGAL web page
![Page 25: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/25.jpg)
Simple Nongraphical CGAL Example
![Page 26: Computational Geometry Algorithms Library Source: CGAL web page](https://reader035.vdocument.in/reader035/viewer/2022062516/56649d545503460f94a313df/html5/thumbnails/26.jpg)
Simple Nongraphical CGAL Example