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.

You probably don't need Oh My Zsh

https://rushter.com/blog/zsh-shell/
53•fla•1h ago•29 comments

“Erdos problem #728 was solved more or less autonomously by AI”

https://mathstodon.xyz/@tao/115855840223258103
337•cod1r•7h ago•204 comments

OLED, Not for Me

https://nuxx.net/blog/2026/01/09/oled-not-for-me/
37•c0nsumer•1h ago•34 comments

Flock Hardcoded the Password for America's Surveillance Infrastructure 53 Times

https://nexanet.ai/blog/53-times-flocksafety-hardcoded-the-password-for-americas-surveillance-inf...
365•fuck_flock•12h ago•122 comments

Maine's black market for baby eels

https://www.pressherald.com/2025/09/09/maines-black-market-for-baby-eels-is-spawning-a-crime-thri...
17•noleary•2h ago•3 comments

JavaScript Demos in 140 Characters

https://beta.dwitter.net
219•themanmaran•10h ago•49 comments

Greenland sharks maintain vision for centuries through DNA repair mechanism

https://phys.org/news/2026-01-eye-greenland-sharks-vision-centuries.html
44•pseudolus•3d ago•9 comments

RTX 5090 and Raspberry Pi: Can it game?

https://scottjg.com/posts/2026-01-08-crappy-computer-showdown/
191•scottjg•10h ago•74 comments

Changes to Android Open Source Project

https://source.android.com/
18•TechTechTech•2d ago•8 comments

How Markdown took over the world

https://www.anildash.com/2026/01/09/how-markdown-took-over-the-world/
197•zdw•11h ago•162 comments

How will the miracle happen today?

https://kk.org/thetechnium/how-will-the-miracle-happen-today/
406•zdw•5d ago•214 comments

Show HN: Rocket Launch and Orbit Simulator

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

Start your meetings at 5 minutes past

https://philipotoole.com/start-your-meetings-at-5-minutes-past/
52•otoolep•7h ago•65 comments

Show HN: Scroll Wikipedia like TikTok

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

Robotopia: A 3D, first-person, talking simulator

https://elbowgreasegames.substack.com/p/introducing-robotopia-a-3d-first
40•psawaya•1d ago•16 comments

Scientists discover oldest poison, on 60k-year-old arrows

https://www.nytimes.com/2026/01/07/science/poison-arrows-south-africa.html
109•noleary•1d ago•37 comments

Cloudflare CEO on the Italy fines

https://twitter.com/eastdakota/status/2009654937303896492
458•sidcool•12h ago•651 comments

My article on why AI is great (or terrible) or how to use it

https://matthewrocklin.com/ai-zealotry/
95•akshayka•11h ago•139 comments

The rise and fall of the company behind Reader Rabbit (2018)

https://theoutline.com/post/6293/reader-rabbit-history-the-learning-company-zoombinis-carmen-sand...
16•mmcclure•1d ago•2 comments

Favorite Tech Museums

https://aresluna.org/fav-tech-museums/
28•justincormack•4d ago•14 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

Kagi releases alpha version of Orion for Linux

https://help.kagi.com/orion/misc/linux-status.html
367•HelloUsername•16h ago•255 comments

Deno has made its PyPI distribution official

https://github.com/denoland/deno/issues/31254
36•zahlman•7h ago•24 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

How to store a chess position in 26 bytes (2022)

https://ezzeriesa.notion.site/How-to-store-a-chess-position-in-26-bytes-using-bit-level-magic-df1...
87•kurinikku•14h ago•76 comments

How to code Claude Code in 200 lines of code

https://www.mihaileric.com/The-Emperor-Has-No-Clothes/
741•nutellalover•1d ago•229 comments

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

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

Replit (YC W18) Is Hiring

https://jobs.ashbyhq.com/replit
1•amasad•11h ago

Microsoft revealed as company behind controversial data center proposal in MI

https://www.cnbc.com/2026/01/07/microsoft-behind-controversial-data-center-in-michigan-township.html
12•1vuio0pswjnm7•1h ago•0 comments

Show HN: A website that auctions itself daily

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