Latest / Science & hardware

shreg

github.com · Package · Maintained

Pure Python library of shape regularization algorithms for cleaning geometry

Visit github.com ↗Share

  • regularization
  • photogrammetry
  • quadratic programming
  • shape regularization
  • geometry cleanup
  • polygon regularization
  • photogrammetry geometry
  • python geometry library
Stars
92
Forks
4
Open issues
2
Last commit
Found
10 months ago

GitHub figures as of . They are context, not a ranking.

shreg is a pure Python library of shape regularization algorithms that clean up noisy geometry from computer vision and photogrammetry. Most methods minimize a cost that balances fidelity against regularity, and the author notes that CGAL implements only a few of them. It suits engineers working with messy measured shapes.

Repository description on GitHub: “Various shape regularization algorithms”

What it does

  • Segment regularization that aligns lines to common angles using quadratic programming
  • Contour regularization that simplifies closed polygons along principal directions
  • Snap and T-junction handling to connect endpoints into watertight shapes
  • Pure Python with no dependencies and built-in before-and-after plots

Good for

  • Clean up noisy line segments from photogrammetry or computer vision output
  • Snap polygon endpoints together to build watertight meshes
  • Simplify closed contours by aligning edges to principal directions

Suits: Geometry engineers cleaning up measured or photogrammetric shapes.

What you can try

Read the README on GitHub and install from source.

Install

pip install shreg
uv pip install shreg

Taken from the project’s README. Read the project’s own instructions before running anything.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw shreg on , when nickponline posted it to Show HN. GitHub listed no published releases for nickponline/shreg when checked , so the project may ship straight from its main branch. The repository was created .

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 78 points, 5 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 no new release

  • No tagged release was published in the first 30 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 78 points, 5 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

  1. Repository created on GitHub: nickponline/shreg
  2. Found: nickponline posted it to Show HN. Show HN
  3. Day-7 check recorded by Kip (details)
  4. Day-30 check recorded by Kip (details)

Quick answers

When was shreg released?
No dated release record is available. Kip found it on Show HN on 9 Jan 2026.
Is shreg open source?
Its source is public on GitHub at nickponline/shreg; check the repository for licence terms.
What does shreg run on?
Library.
Is shreg free?
It is open source, so the code is free to read and run; check the licence for terms.
Is shreg still maintained?
It had a commit or release in the last year, though not in the last 90 days, as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositorynickponline/shreg
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-46549333. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in Science & hardware

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.