geometry-triangulation

Guide polygon triangulation for terrain and country meshes.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/gregoryraymond/claude-agents-and-skills --skill geometry-triangulation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: geometry-triangulation
Source: https://github.com/gregoryraymond/claude-agents-and-skills/tree/main/skills/geometry-triangulation
Command: npx skills add https://github.com/gregoryraymond/claude-agents-and-skills --skill geometry-triangulation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reference for polygon triangulation algorithms used in terrain and country polygon mesh generation, covering ear clipping, Delaunay, CDT, quality metrics, subdivision strategies, and Rust crate selection.

Core Features & Use Cases

  • Ear clipping triangulation for small polygons (20-80 vertices) used in country mesh generation.
  • Constrained Delaunay Triangulation (CDT) and Delaunay-based methods for higher-quality terrain meshes with boundary constraints.
  • Subdivision strategies to refine triangles for heightmap interpolation and coastal terrain detail.

Quick Start

Demonstrate a step-by-step triangulation of a simple polygon using ear clipping and show a basic example.

Frequently Asked Questions about geometry-triangulation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I triangulate a polygon for terrain mesh generation?

Polygon triangulation for terrain meshes is achieved through ear clipping for small polygons or Constrained Delaunay Triangulation for complex boundaries. You can apply subdivision strategies to refine the resulting triangles for detailed heightmap interpolation.

What is the best way to triangulate country boundaries with many vertices?

Ear clipping is best suited for triangulating small country boundary polygons containing 20 to 80 vertices. For larger or more complex boundaries, Constrained Delaunay Triangulation provides higher-quality meshes with strict boundary constraints.

When should I use Constrained Delaunay Triangulation instead of ear clipping?

Use Constrained Delaunay Triangulation when you need higher-quality terrain meshes with specific boundary constraints. Ear clipping is simpler but Delaunay-based methods yield better triangle quality metrics for heightmap interpolation and coastal terrain refinement.

How do I refine triangular meshes for coastal terrain detail?

You can refine triangular meshes for coastal terrain detail by applying subdivision strategies to existing polygons. This subdivides the triangles to support accurate heightmap interpolation and improves overall triangle quality metrics across the terrain.

Does polygon triangulation support Rust crate selection for terrain generation?

Yes, this skill provides reference material for selecting Rust crates to implement polygon triangulation algorithms in terrain generation. It covers ear clipping, Delaunay, and Constrained Delaunay Triangulation implementations suitable for country mesh generation workflows.

Why do my terrain meshes have poor triangle quality after triangulation?

Poor triangle quality in terrain meshes often occurs when using basic ear clipping without evaluating triangle quality metrics. Switching to Constrained Delaunay Triangulation or applying subdivision strategies can significantly improve the mesh quality for heightmap interpolation.