frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Various shape regularization algorithms

https://github.com/nickponline/shreg
54•nickponline•1d ago
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.

Comments

marquesine•9h ago
This is the thing I wished existed somewhere and didn’t know how to search for.

I’m a land surveyor, and another topic I’m interested in is automatic label (text) positioning around shapes, possible strategies, what works best, including design principles and how to keep it non-cluttered for the user.

Fraterkes•9h ago
Hey, you've probably seen these already, but Redblobgames has a great series of posts about creating good labels for maps: https://www.redblobgames.com/blog/2024-08-20-labels-on-maps/ https://www.redblobgames.com/blog/2024-10-09-sdf-curved-text... (There's a few others too)
jouless•4h ago
Polylabel is pretty great

https://github.com/mapbox/polylabel

walterlw•6h ago
thanks for the work, this looks amazing. Have you considered trying numba for acceleration? It's great for number crunching.

Show HN: Rocket Launch and Orbit Simulator

https://www.donutthejedi.com/
114•donutthejedi•10h ago•34 comments

Show HN: Scroll Wikipedia like TikTok

https://quack.sdan.io
198•sdan•11h ago•52 comments

Show HN: Miditui – a terminal app/UI for MIDI composing, mixing, and playback

https://github.com/minimaxir/miditui
19•minimaxir•1d ago•2 comments

Show HN: I made a memory game to teach you to play piano by ear

https://lend-me-your-ears.specr.net
441•vunderba•12h ago•162 comments

Show HN: Similarity = cosine(your_GitHub_stars, Karpathy) Client-side

https://puzer.github.io/github_recommender/
129•puzer•3d ago•36 comments

Show HN: A website that auctions itself daily

https://www.thedailyauction.com/
29•nsomani•1d ago•11 comments

Show HN: Rank up your local business on Google Maps

https://www.mapclimb.com/
3•bagusfarisa•1h ago•0 comments

Show HN: Various shape regularization algorithms

https://github.com/nickponline/shreg
54•nickponline•1d ago•4 comments

Show HN: Yellopages – New tab Chrome extension

https://yellopages.kawaicheung.io/
16•kiwigod17•1d ago•4 comments

Show HN: EuConform – Offline-first EU AI Act compliance tool (open source)

https://github.com/Hiepler/EuConform
57•hiepler•10h ago•34 comments

Show HN: Repogen – a static site generator for package repositories

https://github.com/ralt/repogen
24•tlar•3d ago•3 comments

Show HN: Roleplay-first chat UI for an OpenAI-compatible chat completions API

https://abliteration.ai/roleplay
5•abliterationai•1d ago•1 comments

Show HN: I built a Postgres GUI in Swift because existing tools felt bloated

https://postgresgui.com
2•fikrigha•2h ago•0 comments

Show HN: Executable Markdown files with Unix pipes

112•jedwhite•1d ago•93 comments

Show HN : A game to document my electronics learning journey.

https://jeevan.life/theapplefalls/
22•ssunboyy•6d ago•8 comments

Show HN: Turn any topic into a 3Blue1Brown-style video

https://github.com/mateolafalce/topic2manim
3•lafalce•4h ago•0 comments

Show HN: I built a tool to create AI agents that live in iMessage

https://tryflux.ai/
51•danielsdk•6d ago•24 comments

Show HN: macOS menu bar app to track Claude usage in real time

https://github.com/richhickson/claudecodeusage
152•RichHickson•1d ago•48 comments

Show HN: I vibecoded an ARM64 operating system that boots on real hardware

https://github.com/kaansenol5/VibeOS
9•kaansenol5•5h ago•0 comments

Show HN: ElixirBrowser – Android Chromium fork with extensions, inspired by Kiwi

https://github.com/SF-FLAM/ElixirBrowser
9•SF-FLAM•12h ago•0 comments

Show HN: I built an app that blocks social media until you read Quran daily

6•kalyfacloud•7h ago•0 comments

Show HN: DeepDream for Video with Temporal Consistency

https://github.com/jeremicna/deepdream-video-pytorch
69•fruitbarrel•1d ago•27 comments

Show HN: Just Logo – Multi-source logo generator for side projects

https://just-logo.vercel.app/
3•ahmedsemih•9h ago•0 comments

Show HN: Immich AutoTag – A Python tool for automatic classification via API

https://github.com/txemi/immich-autotag
4•txemitron•9h ago•0 comments

Show HN: I visualized the entire history of Citi Bike in the browser

https://bikemap.nyc/
110•freemanjiang•2d ago•31 comments

Show HN: Accio – Summon apps with keyboard shortcuts

https://github.com/bjornorri/Accio
3•bjornorri•10h ago•0 comments

Show HN: A geofence-based social network app 6 years in development

https://www.localvideoapp.com
74•Adrian-ChatLocl•1d ago•57 comments

Show HN: Ever wanted to look at yourself in Braille?

https://github.com/NishantJoshi00/dith
10•cat-whisperer•22h ago•0 comments

Show HN: I built a "Do not disturb" Device for my home office

https://apoorv.page/blogs/over-engineered-dnd
96•quacky_batak•6d ago•49 comments

Show HN: Commit-based code review instead of PR-based

https://commitguard.ai
14•moshetanzer•23h ago•2 comments