Learn R Programming

cgalPolygons

R6 based utilities for polygons.

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.

Copy Link

Version

Install

install.packages('cgalPolygons')

Monthly Downloads

9

Version

0.1.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Stc3<a9>phane Laurent

Last Published

May 30th, 2023

Functions in cgalPolygons (0.1.1)

squareWithHole

Square with hole
cgalPolygon

R6 class to represent a CGAL polygon
cgalPolygonWithHoles

R6 class to represent a CGAL polygon with holes
pentagram

Pentagram
monster

Monster head
decagram

Decagram
star

Star