anvil-reduce
Watertight mesh proxy generator: exact narrow-band distance field, marching cubes, smooth, remesh, exact surface projection. Fast, verifiable, hands-off. Native Rust core, Python bindings via PyO3.
Install
pip install anvil-reduce
Inside DCCs:
mayapy -m pip install anvil-reduce # Maya
hython -m pip install anvil-reduce # Houdini
# Blender: install into the addon's bundled Python or vendor the wheel
Quick start
One-shot file pipeline (the path most pipeline TDs want):
from anvil_reduce import proxy_from_path
result = proxy_from_path(
"hero.usd",
"hero_proxy.usd", # .usd/.usdc = binary, .usda = ASCII
quality="balanced", # "fast" | "balanced" | "high"
transfer_normals=True,
)
print(f"{result['input_faces']} -> {result['output_faces']} in "
f"{result['wall_seconds']:.2f}s")
NumPy-driven workflow:
import numpy as np
from anvil_reduce import Mesh, generate_proxy
mesh = Mesh.from_numpy(positions, indices) # (N,3) f64, (M,3) u32
proxy = generate_proxy(mesh, quality="balanced", target_faces=20_000)
positions, indices = proxy.positions(), proxy.indices()
Functions
| Function | What it does |
|---|---|
proxy_from_path(in, out, **kw) |
File-to-file pipeline, returns a stats dict |
generate_proxy(mesh, **kw) |
Proxy for an in-memory Mesh |
generate_lod_chain(mesh, levels=4, **kw) |
List of meshes: the original, then each level at half resolution |
load(path) / save(mesh, path) |
Mesh I/O: .obj, .glb, .gltf, .usd, .usda, .usdc |
Mesh.from_numpy(positions, indices) |
Build a mesh from numpy arrays |
USD output is a Mesh prim with purpose = "proxy" and an authored
extent, so usdview and DCCs bind it as proxy geometry directly. USD input
is sniffed: crate (binary) and ASCII layers both load. No composition —
flatten referenced assets with usdcat --flatten first.
Quality presets
| Preset | voxel_res | smooth | remesh |
|---|---|---|---|
| fast | 64 | 3 | 0 |
| balanced | 128 | 5 | 3 |
| high | 256 | 5 | 5 |
Override individual knobs by passing them explicitly. target_faces
hits an output face budget (resolution and remesh edge length are
derived from it). offset is the standoff from the input surface in
voxel cells (0 = surface-exact, default 0.1, larger = looser hull);
close seals gaps in open meshes; project caps the final exact
projection onto the offset surface.
The output is closed, outward-wound, and free of degenerate triangles;
verify with the CLI's check command.
See https://github.com/voidreamer/anvil-reduce for the full project.
Metadata
Release files for anvil-reduce 0.2.4
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 |
|---|---|---|---|---|
| anvil_reduce-0.2.4.tar.gz | 104.4 kB | With provenance | Details for anvil_reduce-0.2.4.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| anvil_reduce-0.2.4-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details for anvil_reduce-0.2.4-cp39-abi3-win_amd64.whl |
| anvil_reduce-0.2.4-cp39-abi3-manylinux_2_28_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ x86-64 | Details for anvil_reduce-0.2.4-cp39-abi3-manylinux_2_28_x86_64.whl |
| anvil_reduce-0.2.4-cp39-abi3-manylinux_2_28_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ ARM64 | Details for anvil_reduce-0.2.4-cp39-abi3-manylinux_2_28_aarch64.whl |
| anvil_reduce-0.2.4-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details for anvil_reduce-0.2.4-cp39-abi3-macosx_11_0_arm64.whl |
Total release size: 4.1 MB
Release files / anvil_reduce-0.2.4.tar.gz
| Download URL | anvil_reduce-0.2.4.tar.gz |
|---|---|
| Size | 104.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcc468d66d7601b407b4f91a4cc5ede8b70ade9516cebd68937898a2a5ca09cd
|
|
BLAKE2b-256 checksum How to use checksums |
c1b465cacdc9ae3a778526e3d806f32504c3547493b72980fd4e26ba9c97cc70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 12, 2026.
Transparency logRelease files / anvil_reduce-0.2.4-cp39-abi3-win_amd64.whl
| Download URL | anvil_reduce-0.2.4-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 973.5 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
a4b5a99ccbb9a45c369798e9ed869e7a2d21eb9b53a65ceb5b4dfeb52a213be8
|
|
BLAKE2b-256 checksum How to use checksums |
246e16347413e10a4198683b46ca0d7f745405cc0ad37caf2ed36ecbc87d1dcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 12, 2026.
Transparency logRelease files / anvil_reduce-0.2.4-cp39-abi3-manylinux_2_28_x86_64.whl
| Download URL | anvil_reduce-0.2.4-cp39-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
6ce3ce0beae29b314888061ef4031bcedc0442f5d023b6d59100bd2c280bb328
|
|
BLAKE2b-256 checksum How to use checksums |
540aa1f0848c76fa3d40422da7c4604b7922d8ccfad17f0e40ba634c7f0d2f81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 12, 2026.
Transparency logRelease files / anvil_reduce-0.2.4-cp39-abi3-manylinux_2_28_aarch64.whl
| Download URL | anvil_reduce-0.2.4-cp39-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 993.2 kB |
| Tags | CPython 3.9 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
e081829335037a55865adb8e93b7432e6239dd8c0fe0756492d9b0064b02f075
|
|
BLAKE2b-256 checksum How to use checksums |
34f6776140211189e8139044e9c9de2589fd0a2bfd1318c3e5185a11964dfb62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 12, 2026.
Transparency logRelease files / anvil_reduce-0.2.4-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | anvil_reduce-0.2.4-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 955.9 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
04c865cd6a74b569141b0096beb64de049ca9e04f86ca444f4959612e6d1d484
|
|
BLAKE2b-256 checksum How to use checksums |
637ce2df6fafd2105908c27361a4a7e03f9bd8ff6beac915ec65f97accdbf731
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 12, 2026.
Transparency logSecurity for anvil-reduce 0.2.4
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
All 5 files in this release have been uploaded with provenance metadata.
Attestation for anvil_reduce-0.2.4.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 Jun 12, 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.