geometry-mesh-extrusion

Generate procedural cliff geometry along land-ocean boundaries for Bevy terrain meshes.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Procedural mesh extrusion is used to create cliff walls along land-ocean boundaries, hiding abrupt terrain edges and enabling more realistic coastline geometry for terrain systems.

Core Features & Use Cases

  • Boundary edge detection to identify cliff-adjacent edges.
  • Vertical quad-strip cliff generation with top/bottom vertex pairing for consistent extrusion.
  • Smoothing in the XZ plane to reduce staircase artifacts while preserving connectiveness to terrain.
  • UV mapping and per-vertex colors for cliff faces, plus degenerate-quad handling and corner filling.
  • Offline GLB export with terrain and cliff geometry for multi-LOD coastline meshes.

Quick Start

Run the cliff mesh generator to emit coastline cliff geometry for the current terrain grid.

Frequently Asked Questions about geometry-mesh-extrusion

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

FAQPage Schema
How do I generate cliff walls along terrain boundaries in Bevy?

You generate cliff walls by detecting land-ocean boundary edges and extruding vertical quad-strips downward with paired top and bottom vertices. This replaces exposed terrain edges with realistic coastline geometry for Bevy terrain systems.

What is the best way to prevent staircase artifacts when extruding terrain meshes?

Preventing staircase artifacts during terrain mesh extrusion requires applying Laplacian smoothing restricted to the XZ plane. This smooths cliff faces while preserving vertical height data and maintaining terrain connectivity.

Does this procedural cliff generation support GLB export and multiple LODs?

Yes, procedural cliff generation supports offline GLB export containing both terrain and cliff geometry. It produces multi-LOD coastline meshes and handles degenerate quads for level-of-detail rendering.

Can I apply UV mapping and vertex colors to procedurally generated cliff faces?

Yes, you can apply UV mapping and per-vertex colors to procedurally generated cliff faces. The mesh extrusion process calculates normals and handles corner filling to ensure properly textured cliff geometry.

How does boundary edge detection work for coastline cliff mesh extrusion?

Boundary edge detection for coastline cliff mesh extrusion identifies terrain grid edges adjacent to ocean regions. These detected edges define the top profile for subsequent vertical quad-strip cliff generation.