rqmesh
Structure-aware quad remeshing, simplification and retopology, in pure Python + NumPy (SciPy is used when present).
rqmesh works with the edge flow a mesh already has rather than starting over:
- Simplify by edge rings. It removes whole rings of quads and places transitions (3-1, or gentle 4-2 / 5-3 / 6-4 strips), so the result stays all quads and keeps its loops. It can also keep isolation loops around openings such as eyes and mouths.
- Fix poles. It improves irregular vertices with rotations, collapses, loop moves and minimal pattern refills, without breaking guarded isolation rings.
- Recover base cages. Given a mesh subdivided with Catmull-Clark, simple, Loop or midpoint subdivision, it recovers the original cage exactly, including creases and UVs.
- Analyse structure. It reports what kind of mesh it is (subdivided, structured, sculpt-like) and which workflow fits.
- Scale-matched cross fields for sculpts. These are curvature fields measured at the size of the target quads. They can drive the optional QuadWild-BiMDF back-end.
The Blender extension built on it is rqmesh-blender. The optional GPL back-end is rqmesh-backend-quadwild.
Status: alpha (0.x). The API may change between minor versions.
Install
pip install rqmesh # once released on PyPI
pip install rqmesh[scipy] # with SciPy: faster spatial queries and solvers
pip install git+https://github.com/sandner-art/rqmesh # from source
Requires Python 3.11+ and NumPy.
Quick start
from rqmesh.meshio_min import read_obj_uv, write_obj_uv
from rqmesh import transitions, topofix
V, F, UV, FUV = read_obj_uv("model.obj")
V2, F2, FUV2, UV2, info = transitions.adaptive_simplify(
V, F, target=len(F) // 3, UV=UV, FUV=FUV,
feature_deg=35, local="adaptive", cost_mode="qem", transitions="auto")
pf = topofix.PoleFixer(V2, F2, 30.0)
pf.guard_isolation(2) # keep the innermost 2 rings around every opening
pf.improve(); pf.refill_poles(); pf.improve(); pf.relax(10)
V3, F3 = pf.result()
write_obj_uv("model_simplified.obj", V3, F3, None, None)
More in examples/. Most modules also work as command-line tools, for example
python -m rqmesh.transitions --help and python -m rqmesh.isolation model.obj.
Modules
| Module | Purpose |
|---|---|
structsimp, transitions |
Ring collapse, strip transitions, the error ladder (adaptive_simplify) |
topofix |
Pole fixing, refills, isolation-ring guard |
isolation |
Openings, isolating rings, protected loops, reports |
subdiv, subdiv_tri |
Base-cage recovery for quad and triangle subdivision schemes |
features, crease_split, symmetry |
Sharp features, crease splitting, mirror planes |
analyze |
Structure report and recommendation |
scalefield, defofield |
Cross fields (scale-matched for sculpts; deformation) |
repair |
Welding, small holes, degenerate faces |
qw_driver, strip_bounds |
Driver for the optional QuadWild-BiMDF back-end package |
meshio_min, compat, rosy |
I/O and NumPy-only stand-ins |
Development
pip install -e .[test,scipy]
pytest
The CI runs the tests on Linux, Windows and macOS, on Python 3.11 and 3.13, with and without SciPy. Blender's bundled Python has NumPy but no SciPy, so the NumPy-only path has to keep working.
Licence
Apache-2.0 (see LICENSE). Apache-2.0 is compatible with the GPL-3.0, so the Blender extension (GPL) can bundle this library.
Citing
If you use rqmesh in research, please cite it using CITATION.cff; GitHub shows a "Cite this repository" button.
Metadata
Release files for rqmesh 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rqmesh-0.1.0.tar.gz | 92.0 kB | With provenance | Details for rqmesh-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rqmesh-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for rqmesh-0.1.0-py3-none-any.whl |
Total release size: 191.6 kB
Release files / rqmesh-0.1.0.tar.gz
| Download URL | rqmesh-0.1.0.tar.gz |
|---|---|
| Size | 92.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a353bc1a549a4a2b59a1d2e6c23e979f281787723a26b58be7b607fc6317799a
|
|
BLAKE2b-256 checksum How to use checksums |
c030e808f86ac9812cdc088c3f3157b3e8ada2ecf6588026fdca7ae31af9799f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / rqmesh-0.1.0-py3-none-any.whl
| Download URL | rqmesh-0.1.0-py3-none-any.whl |
|---|---|
| Size | 99.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
caaf17ff11eba92fc94914bf997147cb92b5126f6f67e3d7d605aaab7a709a12
|
|
BLAKE2b-256 checksum How to use checksums |
fad612273e37e70e6a1eaf92bd4fedf8ad30c7439655521d38e281600d2f8f34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logSecurity for rqmesh 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rqmesh-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.