Search code examples
cgal

How to plot multiple polygons using CGAL::draw


How to plot multiple polygons using CGAL::draw() ? I wish to draw multiple polygons on the same frame. Cannot repeat the command as it is blocking in nature.


Solution

  • The set of overloaded functions CGAL::draw is very simple and very limited - there are fourteen of them and none of them can plot multiple polygons in the same frame.

    You can plot anything you want using Qt - there are many examples how to do that in the CGAL demo directory. However it's much more involved than the CGAL::draw functions - you'll need to understand how to develop interactive Qt-based applications.