# AngusJohnson/Clipper2

Polygon Clipping, Offsetting & Triangulation in  C++, C# and Delphi

Repository: https://github.com/AngusJohnson/Clipper2
Canonical: https://ross.abutalabs.com/products/clipper2
Language: C++
License: BSL-1.0
License Family: other
Topics: cpp, csharp, delphi, geometry, pascal, polygon-intersection, polygon-union, offsetting, polygon, polygon-boolean, polygon-clipping, polygon-clipping-algorithm, boolean-operations, clipping, clipping-algorithm, algorithm, inflate
Last push: 2026-04-20T01:18:06+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 78, release rhythm 62, longevity 100
- inputs: {"age_days": 1652, "days_push": 136, "days_rel": 257, "gap_med": 2, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2462, forks 450 (observed 2026-08-28T04:06:53.493588+00:00)

## What it is
Clipper2 is a polygon clipping, offsetting, and triangulation library available in C++, C#, and Delphi. It performs boolean operations (intersection, union, difference, XOR) on simple and complex polygons, plus polygon offsetting and Constrained Delaunay Triangulation.

## Use cases
- compute intersection or union of polygons
- perform boolean difference and XOR on complex polygons
- offset or inflate polygon outlines
- triangulate polygons with constrained Delaunay triangulation
- clip polygons in a graphics or CAD application
- use polygon clipping from C#, C++, or Delphi

## When to choose
- you need robust polygon boolean operations or offsetting in C++, C#, or Delphi
- you want a well-documented, actively maintained computational geometry library
- you need cross-language access via a compiled DLL

## When to avoid
- you need reliable polygon triangulation right now - the triangulation code is acknowledged as buggy
- you need 3D geometry operations
- you need a language other than C++, C#, or Delphi without going through a DLL

## Facets
- artifact type: library
- maturity: active
- function: graphics, math, simulation
- domain: graphics, computer-vision
- platform: cpp, cross-platform, windows
- tags: polygon-clipping, boolean-operations, polygon-offsetting, triangulation, computational-geometry, csharp, delphi, algorithms, game-development, linux, macos

## Member repositories
- AngusJohnson/Clipper2 (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:53.493588+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:29:17.622800+00:00, confidence not recorded.
  - readme: https://github.com/AngusJohnson/Clipper2 (fetched 2026-08-28T04:06:53.493588+00:00, sha a6c5e5d1dc59)
- Data as of 2026-08-30T08:39:29.467469+00:00.
