CGAL tutorial for beginners [closed]
Asked Answered
U

1

6

Can anyone recommend a good set of CGAL tutorials for beginners? I have tried to read the documentation but it seems very dense to me even as a moderately experienced C++ programmer. Therefore I'm trying to learn by solving simple problems but even that has been confusing. For example, the problem I am specifically trying to solve right now is the following: From a 3D point cloud, find the convex hull, then loop over the finite facets of the convex hull and print each facet's vertices. It seems like there should be a straightforward way to do this; I would have expected that 3D polyhedra would own a vector of facet objects, each of which in turn would own a vector of its edges, each of which in turn would own a vector of its vertices, and that their would be some access through this hierarchy using iterators. But so far I have been unable to find a simple way to navigate through this hierarchy (if it exists).

Uncover answered 1/7, 2013 at 16:12 Comment(3)
Yes, CGAL is hard and confusing in the beginning. Have you tried looking into University courses that have this ? Mine had some good tutorials but they are not open.Rewrite
CGAL comes with quite a few demos and examples, looking at those (and then starting to modify them) is the best way to learn.Ondrea
I agree with @MarcGlisse. In addtion, you could try posting specific questions here as well. Try to make them as focused as possible, that is, each question would focus on one component that you fail to accomplish.Pericarp
I
10

You can start with this tutorial http://cel.archives-ouvertes.fr/docs/00/34/04/48/PDF/whole-course.pdf

Take a look also at these videos http://www.cgal.org/videos.html

For your specific problem take a look at http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Convex_hull_3/Chapter_main.html http://www.cgal.org/Tutorials/Polyhedron/

Inquisition answered 3/7, 2013 at 11:13 Comment(1)
The original question is closed but this PDF from Stanford is a great source as well: graphics.stanford.edu/courses/cs368-04-spring/manuals/…Leaven

© 2022 - 2024 — McMap. All rights reserved.