forge-procedural-geometry

Generate and render procedural shapes with forge_shapes.h for GPU buffers.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill forge-procedural-geometry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: forge-procedural-geometry
Source: https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317/tree/main/.claude/skills/forge-procedural-geometry
Command: npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill forge-procedural-geometry

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate and render procedural geometry using the forge_shapes.h header-only library. Shapes are unit-scale, centred at origin, Y-up, CCW winding.

Core Features & Use Cases

  • Generate a variety of parametric shapes (sphere, icosphere, cylinder, cone, torus, plane, cube, capsule) and prepare them for GPU upload with a struct-of-arrays layout.
  • Provide a straightforward workflow to generate CPU-side shape data, upload to GPU buffers, and render using simple binding helpers.
  • Use cases include dynamic geometry generation for demos, teaching, or real-time visualization in graphics apps.

Quick Start

Generate a 32-slice, 16-stack UV sphere and upload its buffers to the GPU, then render it in a render pass.

Frequently Asked Questions about forge-procedural-geometry

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

FAQPage Schema
How do I generate procedural 3D geometry for real-time rendering?

Procedural 3D geometry for real-time rendering is generated using the forge_shapes.h library, producing unit-scale shapes centered at origin with Y-up and CCW winding for direct GPU upload.

What is the correct GPU buffer layout for uploading procedural shapes?

The correct GPU buffer layout for uploading procedural shapes is a struct-of-arrays format, requiring a single .c file to implement the library usage pattern and execute correct buffer uploads.

How do I create a parametric UV sphere and render it in a graphics application?

To create a parametric UV sphere, generate the CPU-side shape data with forge_shapes.h, upload the buffers to the GPU, and render the shape within a render pass using simple binding helpers.

What parametric shapes are available for dynamic geometry generation in real-time graphics?

Available parametric shapes for dynamic geometry generation include sphere, icosphere, cylinder, cone, torus, plane, cube, and capsule, all designed for real-time graphics visualization and demonstrations.

Can I use forge_shapes.h to generate geometry for real-time visualization tools?

Yes, you can use forge_shapes.h to generate geometry for real-time visualization tools, as it provides reusable, parametric shapes specifically designed for scenes, tools, and demonstrations.

Does procedural geometry generation require dependencies or external components?

Procedural geometry generation using this approach requires no external dependencies or components, relying solely on a single .c file implementing the forge_shapes.h library usage pattern.