clipper2 SKILL.md skillA

clipper2 from znlgis/opengis-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add znlgis/opengis-skills/clipper2@git:20261014.e943c53

Pins git:20261014.e943c53 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
znlgis/opengis-skills
Path
cad/clipper2/SKILL.md
Versions recorded
5
Latest version
git:20261014.e943c53, committed Oct 14, 2026
First version recorded
Sep 1, 2026
Size
8,761 bytes
Repository stars
70
License
MIT

Use when performing high-performance 2D polygon boolean operations (union, intersection, difference, XOR) and offsetting via C++, C#, or Python bindings. Clipper2: the modern polygon clipping library with robust numerical handling.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

> **项目地址:** <https://github.com/AngusJohnson/Clipper2>
>
> **官方文档:** <http://www.angusj.com/clipper2/Docs/Overview.htm>
>
> **最新稳定版:** 2.0.1(截至2026年9月,tag `Clipper2_2.0.1`)
>
> **NuGet:** `Clipper2`
>
> **许可证:** Boost Software License 1.0

## 概述

Clipper2 相对 Clipper1 的提升:

- 全新算法,速度更快、内存更省
- 支持浮点(`PathsD`)与整数(`Paths64`)双模式
- 全新偏移引擎:更鲁棒的 mitre/square/round 端帽与连接
- 简洁 API:`Union/Intersect/Difference/Xor` 顶级函数
- 多语言:C++、C#、Delphi、JS(Clipper2.js 移植)

---

## 安装

### C#

```bash
dotnet add package Clipper2     # 提供 Clipper2Lib 命名空间
```

### C++

```bash
# vcpkg
vcpkg install clipper2
# 或直接 add subdirectory CPP/Clipper2Lib 到 CMake
```

### JavaScript

```bash
npm install clipper2-js        # 第三方原生 TS/JS 移植;另有 WASM 移植 js-angusj-clipper
```

---

## 核心数据结构(C#)

```csharp
using Clipper2Lib;

PointD pd = new(10.5, 20.7);            // 浮点点
PathD  path = new() { new(0,0), new(10,0), new(10,10), new(0,10) };
PathsD subj = new() { path };           // 多个 path
PathsD clip = new() { /* ... */ };
```

整数版本:`Point64` / `Path64` / `Paths64`,避免浮点误差。

---

## 布尔运算

```csharp
using Clipper2Lib;

PathsD a = new() { Clipper.MakePath(new[] { 0d,0, 100,0, 100,100, 0,100 }) };
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add znlgis/opengis-skills/clipper2@sha256:be68e917329d2e44

The line at the top of this page pins the label git:20261014.e943c53, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_vkjuiw5s36afbps4.svg)](https://markdownregistry.com/a/art_vkjuiw5s36afbps4)

0 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Sep 1, 2026 and Oct 14, 2026, about one every 11 days.

versioncommittedcommitsizeaudit
git:20261014.e943c53 latest2026-10-14 e943c53 8,761 BA view · diff
git:20260922.e0d09472026-09-22 e0d0947 7,599 BA view · diff
git:20260911.ad2889a2026-09-11 ad2889a 7,406 BA view · diff
git:20260909.72be5542026-09-09 72be554 7,436 BA view · diff
git:20260901.fb2a04d2026-09-01 fb2a04d 7,428 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (8761 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

znlgis/opengis-skills · 70 stars · license MIT · pushed 2026-10-20 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_vkjuiw5s36afbps4
GET https://markdownregistry.com/api/v1/resolve?ref=znlgis/opengis-skills/clipper2
GET https://markdownregistry.com/api/v1/blob/be68e917329d2e4477a3f04b1d53cc96469b819baa9673243317450e6443c0fc

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from znlgis/opengis-skills

3d-skills SKILL.md skill
znlgis/opengis-skills · 3d/SKILL.md · Use when working with 3D Gaussian Splatting (3DGS), .ply model cleanup/compression/publishing, interactive 360-degree…
git:20261015.92a0ede · audit A · 70 stars
ara3d-sdk SKILL.md skill
znlgis/opengis-skills · 3d/ara3d-sdk/SKILL.md · Use when processing AEC/BIM 3D data in .NET 8 — mesh generation and transformation, SIMD-accelerated math, IFC/STEP/PLY…
git:20261015.5d0de0d · audit A · 70 stars
elements SKILL.md skill
znlgis/opengis-skills · 3d/elements/SKILL.md · Use when generating building information models (BIM) programmatically in C#/.NET — wall, beam, column, floor creation…
git:20261015.5d0de0d · audit A · 70 stars
open3d SKILL.md skill
znlgis/opengis-skills · 3d/open3d/SKILL.md · Use when processing 3D point clouds and meshes in Python — read/write PLY/PCD, voxel downsample, normal estimation…
git:20261015.5c73bb3 · audit A · 70 stars
opencsg-net SKILL.md skill
znlgis/opengis-skills · 3d/opencsg-net/SKILL.md · Use when doing constructive solid geometry (CSG) modeling in .NET — cube/sphere/cylinder primitives…
git:20261015.5d0de0d · audit A · 70 stars
photo-sphere-viewer SKILL.md skill
znlgis/opengis-skills · 3d/photo-sphere-viewer/SKILL.md · Use when displaying 360-degree panoramic images (equirectangular/cubemap/dual-fisheye) in web applications, building…
git:20261015.5d0de0d · audit B · 70 stars
supersplat SKILL.md skill
znlgis/opengis-skills · 3d/supersplat/SKILL.md · Use when editing 3D Gaussian Splatting (3DGS) .ply models in browser — cleanup noise/floaters, crop, transform…
git:20261015.0e107e3 · audit A · 70 stars
opengis-skills SKILL.md skill
znlgis/opengis-skills · SKILL.md · Use when AI coding assistant needs GIS/CAD/C#/AI/IoT/3D domain expertise. Index of 96 skills across 8 categories: gis…
git:20261015.92a0ede · audit A · 70 stars
ai-skills SKILL.md skill
znlgis/opengis-skills · ai/SKILL.md · Use when building LLM applications, RAG knowledge bases, AI agents, terminal coding agents, multi-model orchestration…
git:20261015.92a0ede · audit A · 70 stars
deepseek-harness SKILL.md skill
znlgis/opengis-skills · ai/deepseek-harness/SKILL.md · Use when building AI agent applications with a plugin-based architecture — Web UI, CLI, Python SDK, Cordis plugin…
git:20261015.0e107e3 · audit B · 70 stars
dify SKILL.md skill
znlgis/opengis-skills · ai/dify/SKILL.md · Use when building LLM applications with visual workflow — RAG knowledge bases, AI agents, chatbots with drag-and-drop…
git:20261015.0e107e3 · audit A · 70 stars
docutranslate SKILL.md skill
znlgis/opengis-skills · ai/docutranslate/SKILL.md · Use when translating documents locally via LLM — PDF, Word, Excel, Markdown, SRT subtitles with format preservation…
git:20261015.0e107e3 · audit B · 70 stars

Every file in znlgis/opengis-skills

Browse by kind, by grade A, or by owner.