A Topology Repair Algorithm for Voxel Boundary Meshes
Project description
EdgeMender: A Topology Repair Algorithm for Voxel Boundary Meshes
Coverage Report
| File | Stmts | Miss | Cover | Missing |
|---|---|---|---|---|
| edge_mender | ||||
| init.py | 2 | 0 | 100% | |
| data_factory.py | 135 | 0 | 100% | |
| edge_mender.py | 172 | 0 | 100% | |
| geometry_helper.py | 43 | 0 | 100% | |
| mesh_generator.py | 74 | 0 | 100% | |
| visualizer.py | 46 | 0 | 100% | |
| TOTAL | 472 | 0 | 100% | |
This tool repairs non-manifold edges in voxel boundary meshes to fix downstream operations such as smoothing. Non-manifold edges are defined as edges shared by four faces. Voxel boundary meshes are 3D surface representations of a data set where the faces and vertices perfectly snap to cells in a structured voxel grid. Common uses for this algorithm are repairing output from Cuberille, Surface Nets before smoothing, and non-adaptive Dual Contouring implementation without vertex adjustment. The algorithm procedure works for quad meshes, but this implementation is currently limited to triangular meshes (see #3). This algorithm requires input meshes to have proper and consistent winding order.
The three algorithms listed above are provided in the mesh_generator module. A set of test data sets are provided in the data_factory module. A visualization tool is also provided in the visualizer module. The results folder contains the evaluation notebook and the example notebook demonstrates the tool in use.
Usage Instructions
pip install git+https://github.com/MattTheCuber/edge-mender
from edge_mender import EdgeMender
mesh: trimesh.Trimesh = ...
mender = EdgeMender(mesh)
mender.repair()
For a walkthrough example, see the example notebook.
Contributor Instructions
- Clone the repository using
git clone https://github.com/MattTheCuber/edge-mender.git - Initialize the submodule using
git submodule update --init - Install uv
- Create a virtual environment using
uv venv - Install all development dependencies using
uv sync --all-extras - Run
pre-commit install - Create a branch and start writing code!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file edge_mender-0.1.0.tar.gz.
File metadata
- Download URL: edge_mender-0.1.0.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd7f5d80e5d88be1973de74acc9c2c6041c1e359d4618c5b6b89ccb273c6f83a
|
|
| MD5 |
e23cb3d8d0e337d0d90762a2147f89b4
|
|
| BLAKE2b-256 |
9335bc9257662e197204198493b7f84e5073dcb645a9bb74592532440bd7dff2
|
Provenance
The following attestation bundles were made for edge_mender-0.1.0.tar.gz:
Publisher:
release.yml on MattTheCuber/edge-mender
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
edge_mender-0.1.0.tar.gz -
Subject digest:
dd7f5d80e5d88be1973de74acc9c2c6041c1e359d4618c5b6b89ccb273c6f83a - Sigstore transparency entry: 748095889
- Sigstore integration time:
-
Permalink:
MattTheCuber/edge-mender@39cf3dd17522799f486f2a168903ed00cfef0e24 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/MattTheCuber
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@39cf3dd17522799f486f2a168903ed00cfef0e24 -
Trigger Event:
release
-
Statement type:
File details
Details for the file edge_mender-0.1.0-py3-none-any.whl.
File metadata
- Download URL: edge_mender-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
809c63377f583cf1cafbc80ce8ce935e40c48a399b8b60751c708e638cd2af92
|
|
| MD5 |
055e30c01a85bdcc0031f6532c1185d3
|
|
| BLAKE2b-256 |
9adda09e3f1a52eff7fbad4ed0011108e2986c934e14bda5f5dc2d647230ddd0
|
Provenance
The following attestation bundles were made for edge_mender-0.1.0-py3-none-any.whl:
Publisher:
release.yml on MattTheCuber/edge-mender
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
edge_mender-0.1.0-py3-none-any.whl -
Subject digest:
809c63377f583cf1cafbc80ce8ce935e40c48a399b8b60751c708e638cd2af92 - Sigstore transparency entry: 748095891
- Sigstore integration time:
-
Permalink:
MattTheCuber/edge-mender@39cf3dd17522799f486f2a168903ed00cfef0e24 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/MattTheCuber
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@39cf3dd17522799f486f2a168903ed00cfef0e24 -
Trigger Event:
release
-
Statement type: