Various shape regularization algorithms
Details
- External ID
- 46549333
- Source
- HN
- Company
- —
- Product
- Various shape regularization algorithms
- Website domain
- github.com
- Launched
- Jan. 9, 2026
- Cohort
- —
- Upvotes
- 78
- Upvotes percentile
- 0.8728590250329381
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:25 p.m.
- Updated at
- Sept. 7, 2026, 9:25 p.m.
Description
I deal with a lot of geometry stuff at work with computer vision and photogrammetry, which usually comes from the real world. It's seldom clean and neat, and I'm often trying to find a way to "make it nice" or "make it pretty". I've always struggled with what that really means formally.That led me to shape regularization (a technique used in computational geometry to clean up geometric data). CGAL had implemented a few methods for that, but there are more ways to do it, which I thought were nice. Also I typically work in Python, so it was nice to have a pure Python library could handle this.I struggled to get the first version working as a QP. At a high level most of these boil down to minimizing a cost A + B where A is the cost associated the geometry and goes up the more you move it, and B is the cost associated "niceness" or rather the constraints you impose, and goes down the more you impose them. Then you try and minimize A + B or rather HA + (1-H)B where H is a hyper-parameter that controls the relative importance of A and B.I needed a Python implementation so started with the examples implemented in CGAL then added a couple more for snap and joint regularization and metric regularization.
Enrichment
- Theme
- specialized calculators and estimation tools
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- shape regularization algorithms library
- Manually corrected
- False
Could you build this?
No Implementing shape regularization algorithms from scratch requires deep mathematical expertise in computational geometry, optimization algorithms, and photogrammetry.
What it would actually take: The architecture involves native C++ or Rust numerical optimization libraries (like Ceres Solver or CGAL) compiled or wrapped for Python/Wasm. The hard core involves defining geometric energy functions (orthogonalities, parallelisms, co-planarity constraints) and solving non-linear least squares optimizations over noisy point clouds or meshes. This requires an engineer with specialized background in computer vision, photogrammetry, and applied mathematics.
Discussion
5 comments analyzed.
Competitors mentioned: Polylabel (Mapbox)
Feature requests: Numba acceleration for performance, Automatic label positioning around shapes, Design principles for non-cluttered label placement
Competitors
Other products that read as similar to this one — 48 launches clear the similarity bar, closest 8 shown.
Attention rank: #12 of 49 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 66 days after the earliest competitor.
- Q12 · hn · 2026-02-18 · 7 upvotes · similarity 0.40
- Geomatic · hn · 2026-05-25 · 75 upvotes · similarity 0.40
- LandScale: Plot & Area Measure · ph · 2026-09-19 · 1 upvotes · similarity 0.40
- FluidCAD · hn · 2026-04-10 · 160 upvotes · similarity 0.39
- Algorithms 1.0.0 · hn · 2026-02-18 · 7 upvotes · similarity 0.38
- Algotrek · hn · 2026-07-16 · 13 upvotes · similarity 0.38
- Rotation via Double Reflection · hn · 2026-08-21 · 61 upvotes · similarity 0.38
- AdaShape-3D modeler for intuitive 3D printing parts / Windows 11 · hn · 2026-04-04 · 32 upvotes · similarity 0.36
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.