Skip to main content

About

These scripts were written by Jim McNeill using AI tools. I decided it would be a good idea to add them to a git repo. These files come as is and without any guaratees and I cannot promise that any problems will be solved any time soon.

Using the Repository from GitHub

After cloning the repository, install uv and run a command with:

uv run <command> [arguments]

Using a Released Version

A released version can be installed with:

pip install hedron_scripts

It is wise to use a virtual Python environment, e.g:

python -m venv path_to_venv
. path_to_venv/bin/activate

Command-Line Tools

offviewer [path-to-folder-or-file.off]

Opens an interactive 3D browser for the OFF files in a folder. Pass a folder to open its grid view, or an OFF file to open that file in the enlarged view. The viewer calculates model metrics in the background; those metrics can be used for sorting and for identifying duplicate values. Until this calculation finishes, sorting is unavailable. Equal sort values are highlighted in pink; Delete duplicates keeps the oldest file for each value, using a tolerance for floating-point metrics.

uv run offviewer models/
offviewer path/to/model.off

Using the viewer

  • In the grid view, use +/= and - to change cell size, and left-drag or use the arrow keys to rotate a model. Avoid auto-rotation until metric analysis has finished, as it slows the calculation.
  • Double-click a model to open the enlarged view. Use the left and right arrow keys to navigate between files; f, v, e, and c cycle face, vertex, edge, and compound-part displays respectively; x returns to the grid.
  • Right-click a model for file actions, including rename, delete, viewing its source, and any configured external tools.

offchecker [path-to-file.off]

Opens the OFF checker GUI. Passing an OFF file processes it immediately; otherwise use the GUI to choose a file. The checker reports geometric and topological properties, including faces, edges, genus, planarity, and symmetry. Its batch mode writes offcheck.csv in the selected file's folder.

uv run offchecker path/to/model.off
offchecker

facetings

Opens the Facetings GUI for generating valid faceted polyhedra from an input OFF file. Choose the input file in the application, configure the search and symmetry options, then export the generated OFF files. A 3D grid preview is available when the required OpenGL libraries are installed.

uv run facetings
facetings

leonardo [path-to-file.off-or-vrml]

Opens the Leonardo-style frame-mesh viewer. Pass an OFF file or a supported VRML file, or drag one onto the application window. Adjust frame width and depth in the control panel; Export OFF writes a *_leonardo.off file alongside the source model.

uv run leonardo path/to/model.off
leonardo path/to/model.wrl

License

This package is published under the GNU Public License version 2; see LICENSE.txt.

Metadata

Release files for hedron_scripts 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hedron_scripts 0.5.3
File Size Uploaded
hedron_scripts-0.5.3.tar.gz 154.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hedron_scripts 0.5.3
File Interpreter ABI Platform
hedron_scripts-0.5.3-py3-none-any.whl Python 3 none any Details

Total release size: 322.0 kB

Release files / hedron_scripts-0.5.3.tar.gz

Download URL hedron_scripts-0.5.3.tar.gz
Size 154.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c138cc9976d716ab5434423e1d232d913ee7c262cd9daf60b861758cb6788a27
BLAKE2b-256 checksum
How to use checksums
c89e85f84b450e79a609a668c7fc530633628f93ef5c6c7ac1e686cfd67f6cd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / hedron_scripts-0.5.3-py3-none-any.whl

Download URL hedron_scripts-0.5.3-py3-none-any.whl
Size 167.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba249cb72e4e5fbdd15705e0a9a9c29dc92148fbb77f0fff6a5b048ece6ece8a
BLAKE2b-256 checksum
How to use checksums
035b917c8abff3d52be0efee8189ffa74f0d3dafebde747d7b56d81c015b40c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.5.3 This release

2 release files

0.5.0

2 release files

0.4.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page