Skip to main content

Volume-based mesh proxy generator. Voxelize, marching-cubes, smooth, remesh. Fast, watertight, hands-off.

Project description

anvil-reduce

Volume-based mesh proxy generator: voxelize, marching cubes, smooth, remesh. Fast, watertight, 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.obj",
    "hero_proxy.obj",
    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()

Quality presets

Preset voxel_res smooth remesh sdf
fast 64 10 0 off
balanced 128 10 3 off
high 256 15 5 on

Override individual knobs by passing them explicitly. target_faces auto-picks voxel_res. dilation controls hull tightness (0 = tight, 1-3 = looser).

See https://github.com/voidreamer/anvil-reduce for the full project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

anvil_reduce-0.1.0-cp39-abi3-win_amd64.whl (899.6 kB view details)

Uploaded CPython 3.9+Windows x86-64

anvil_reduce-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ x86-64

anvil_reduce-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl (933.4 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARM64

anvil_reduce-0.1.0-cp39-abi3-macosx_11_0_arm64.whl (896.7 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file anvil_reduce-0.1.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: anvil_reduce-0.1.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 899.6 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for anvil_reduce-0.1.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e9f6f8385243adf8fb5263dc62f05648457afa95c3d621e1535f5c137387c88c
MD5 22c15696373793138ee606a19ef4b961
BLAKE2b-256 6e6607a0d969d3497d576270123d0664e5b793831dcf63e8667d36a0fe2a649f

See more details on using hashes here.

Provenance

The following attestation bundles were made for anvil_reduce-0.1.0-cp39-abi3-win_amd64.whl:

Publisher: wheels.yml on voidreamer/anvil-reduce

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file anvil_reduce-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for anvil_reduce-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0207907b125121a2af46476534fb192e28c4f3d79fe24b736ffddbdcf61bb5eb
MD5 d1acb206c4e116738b2072341cfaa0b5
BLAKE2b-256 d6667e3a40218b3d69f74e408b328bf804903695312f3d5542c2422641bacf6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for anvil_reduce-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on voidreamer/anvil-reduce

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file anvil_reduce-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for anvil_reduce-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2de1d1f2ccf73bed5dab6b1365c97c639fbc6aeff97bbcf9513f84250e82d0db
MD5 9cd995346e3f4fc2bdbb773cb65df7c7
BLAKE2b-256 0766af3d1f48d0bb67a55c027cbffc63fa2cd2c961b9d5640b8d860523aeddbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for anvil_reduce-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl:

Publisher: wheels.yml on voidreamer/anvil-reduce

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file anvil_reduce-0.1.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for anvil_reduce-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9dbd1179b627481338c1010e7dfdba2fc9e734543518f5f878d92da38bae79f7
MD5 013fece43a6d3e1d24abe1231ca11e7e
BLAKE2b-256 9b921511e24974572d46dccd2268cddc28527a177075589080a08ddc6e639dab

See more details on using hashes here.

Provenance

The following attestation bundles were made for anvil_reduce-0.1.0-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: wheels.yml on voidreamer/anvil-reduce

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page