/cgalPolygons

:exclamation: This is a read-only mirror of the CRAN R package repository. cgalPolygons — R6 Based Utilities for Polygons using 'CGAL'. Homepage: https://github.com/stla/cgalPolygons Report bugs for this package: https://github.com/stla/cgalPolygons/issues

Primary LanguageC++

cgalPolygons

R6 based utilities for polygons.

R-CMD-check R-CMD-check-valgrind

Decomposition into convex parts

  • Eight-pointed star:

  • Monster head:

  • Sun curve with a hole:

Minkowski sum

  • Eight-pointed star + sun curve:

  • Decagram + circle with varying radius:

Boolean operations

  • Intersection:

  • Union:

  • Difference:

  • Symmetric difference:

  • An example with some holes:

License

This package is provided under the GPL-3 license but it uses the C++ library CGAL. If you wish to use CGAL for commercial purposes, you must obtain a license from the GeometryFactory.