sfh-gen

Generate fractal horn geometries as STL meshes and fractal analysis data.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/toneron2/SFH-OS --skill sfh-gen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sfh-gen
Source: https://github.com/toneron2/SFH-OS/tree/main/.claude/skills/sfh-gen
Command: npx skills add https://github.com/toneron2/SFH-OS --skill sfh-gen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates fractal horn geometry generation using space-filling curves and Mandelbrot-inspired expansion, enabling rapid exploration of topology and acoustic optimization without manual trial-and-error.

Core Features & Use Cases

  • Space-Filling Curve Generation: Hilbert, Peano, and Mandelbrot-based expansion to define horn topology across scales.
  • Geometry Output: Produces STL meshes and fractal analysis data for downstream validation.
  • Use Case: Design and compare three fractal horn variants for a target frequency band, accelerating iterative exploration.

Quick Start

Use the sfh-gen skill to generate 3 geometry variations with Hilbert, Peano, and Mandelbrot strategies for a 1kHz-20kHz horn. Output will include STL meshes and fractal metrics.

Frequently Asked Questions about sfh-gen

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

FAQPage Schema
How do I generate fractal horn geometries for acoustic design?

Fractal horn geometry generation uses space-filling curves like Hilbert and Mandelbrot expansion to define horn topology across multiple scales. sfh-gen automates this by accepting parameters—order, throat diameter, mouth diameter, and length—and outputs STL meshes and fractal analysis data for acoustic optimization without manual iteration.

What are Hilbert and Peano curves used for in horn design?

Hilbert, Peano, and Mandelbrot curves are space-filling algorithms that define fractal horn topology. They enable rapid exploration of different expansion strategies across scales, allowing designers to compare multiple horn variants and optimize impedance matching for target frequency bands.

Can I export fractal horn designs as STL meshes?

Yes. sfh-gen produces STL meshes directly from fractal horn parameters, along with a profile JSON, fractal maps, and geometry metadata. The STL output is ready for visualization, 3D printing, or downstream acoustic validation.

How do I optimize horn impedance across different frequency bands?

Fractal horn geometry generation applies space-filling curve strategies to explore topology variations that affect impedance. By testing Hilbert, Peano, and Mandelbrot expansion workflows with specified throat and mouth diameters, you can rapidly iterate and compare designs for your target frequency band.

What parameters control the fractal horn output?

Key inputs include iteration order, throat diameter, mouth diameter, and overall length. These parameters drive the space-filling curve expansion and control horn scale and topology. The Skill outputs STL geometry, fractal metrics, and metadata suitable for analysis and visualization.

Do I need prior geometry or CAD experience to use fractal horn generation?

No specialized CAD knowledge is required. You provide numeric parameters—order, diameters, and length—and the Skill automates fractal expansion and mesh generation. Output includes both geometry files and fractal analysis data for validation.