ai-agent

Clipper2: Boost Geometry Ops

Faster polygon clipping and offsetting, with reliable C++ library, 2.4k+ GitHub stars
2,472 stars452 forksC++Guide quality 8/10Updated 4/20/2026100% free · open source
What it does

Clipper2 is a C++ library for fast and reliable polygon clipping, offsetting, and triangulation, useful for geometric computations in various applications.

When to use it
  • When you need to perform polygon clipping or offsetting in a computational geometry application
  • When you require fast and reliable geometric calculations for computer-aided design (CAD) or geographic information systems (GIS)
  • When you want to optimize polygon triangulation for 3D rendering or physics simulations
Ready-to-paste prompt
Clipper2::PyClipper c; c.AddPath({{0, 0}, {10, 0}, {10, 10}, {0, 10}}, Clipper2::PyClipper::PT_SUBJECT, true); c.AddPath({{5, -5}, {15, -5}, {15, 15}, {5, 15}}, Clipper2::PyClipper::PT_CLIP, true); c.Execute(Clipper2::ClipType::ctIntersection, solution, Clipper2::PyClipper::PFT_NONZERO, Clipper2::PyClipper::PFT_NONZERO);
Heads up: Make sure to use the correct C++ compiler version (C++11 or later) to avoid compilation errors, as Clipper2 relies on modern C++ features.
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

🛠️ Technical setup

Expect 20–40 minutes in a terminal — or let your AI agent drive it.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/clipper2 && curl -fsSL https://workflowstacks.com/api/skills/clipper2/claude-skill -o ~/.claude/skills/clipper2/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How Clipper2: Boost Geometry Ops works
Codeflow
Free to inspect

Clipper2: Boost Geometry Ops is a large C++ project (~21k lines across 64 code files, plus 21 test files). It is a full software project: use it through its install path rather than reading it end to end. Last commit 5 months ago, BSL-1.0 license, has a test suite.

Size
Large codebase
~21k lines · 64 code files · ~3 h to skim
Setup
Developer setup
A real software project. Use it via its install path; don't expect to read it all.
Runs on
C++
No API keys detected
C++ 37%Pascal 33%C# 29%CMake 1%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
What's in each folder
CPP/Folder116 files
CSharp/Folder56 files
DLL/Folder22 files
Delphi/Folder19 files
Tests/Tests — proof it works5 files
.github/CI / automation (GitHub Actions)2 files
READMEHas testsDocumentedCI checksBSL-1.0 licenseUpdated 5 mo ago
Quick Actions
Details
Creator
AngusJohnson
Language
C++
Category
ai-agent
Published
2/23/2022

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.