Briganti-Games

An implementation of the Straight Skeleton algorithm for Unity in C#.

22
1
100% credibility
Found Feb 28, 2026 at 17 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
C#
AI Summary

A library that computes straight skeletons from polygons to generate procedural roof meshes for 3D applications.

How It Works

1
🏠 Discover the roof maker

You hear about a handy tool that turns simple building outlines into cool 3D roofs for your game maps.

2
📦 Add it to your project

Copy a special link into your creative workspace to bring the tool onboard easily.

3
✏️ Sketch your building shape

Draw the outer edges of your building and any inner holes, like rooms or courtyards.

4
Generate the roof frame

Hand your shape to the tool and it instantly creates a smart skeleton of lines that form the perfect roof structure.

5
🧱 Build the full roof

Use the frame to automatically create a solid 3D roof surface with the right height and texture.

🎉 Roof ready for your world

Your building now has a realistic, custom roof that fits perfectly, making your game scene come alive.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 17 to 22 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is Straight-Skeleton-Generator?

Straight-Skeleton-Generator is a C# implementation of the straight skeleton algorithm for Unity, turning 2D polygons (with holes) into line graphs that mimic building roofs. Feed it contour points via a simple API, and it outputs edges with collapse times for easy 3D extrusion into meshes. Installs straightforward via Unity Package Manager git URL, with a sample scene showing polygon-to-roof conversion.

Why is it gaining traction?

It stands out as a robust straight skeleton generator that handles complex polygons with hundreds of vertices, supports holes, and runs fast for realtime use without excessive allocations—issues plaguing other implementations. Battle-tested in Dungeon Alchemist, a procedural map tool, it prioritizes stability over academic complexity. Developers grab it for the no-fuss, production-ready results in Unity projects.

Who should use this?

Unity game devs building procedural architecture, like dungeon masters generating roofs or cityscapes from outlines. Architects prototyping building meshes or roguelike map creators needing quick skeleton-based extrusion. Skip if you're not in Unity or need non-roof geometry algos.

Verdict

Solid pick for Unity roof generation despite 10 stars and 1.0% credibility score—docs are clear, API simple, sample works out-of-box, but tweak epsilons for large-scale polygons and watch maturity on edge cases. Try it if procedural buildings are your jam; otherwise, wait for more adoption.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.