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 Distribution

anvil_reduce-0.1.1.tar.gz (72.4 kB view details)

Uploaded Source

Built Distributions

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

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

Uploaded CPython 3.9+Windows x86-64

anvil_reduce-0.1.1-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.1-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.1-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.1.tar.gz.

File metadata

  • Download URL: anvil_reduce-0.1.1.tar.gz
  • Upload date:
  • Size: 72.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for anvil_reduce-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3fbdd1698020857498cf79626e71eea42dde0f9cd85249e38b75d279d0c56276
MD5 7d9f70d76534a3ce0d420f4f4cbdcf5f
BLAKE2b-256 1432a0614bb26f1d4c144d1bc9ca791d56ecd0989c4a6235ff037dbf72048252

See more details on using hashes here.

Provenance

The following attestation bundles were made for anvil_reduce-0.1.1.tar.gz:

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.1-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: anvil_reduce-0.1.1-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.1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 890effe26c31c62c502423dcb651b3db836f23dde8b50aff2904b8163c2f3c54
MD5 cfcf9e6bef28004d663cad4183f65f78
BLAKE2b-256 56c5989dcf11341b572cd7439a6cafced6631fceb2d63f90c0edeb99e61110a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for anvil_reduce-0.1.1-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.1-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for anvil_reduce-0.1.1-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3fbc13928a64ca18f9d2ddad186fdf7ca26109b0fe47c08a8ceab38115dd5d9a
MD5 d682ad1214312ca3fd2fd6a27497bca9
BLAKE2b-256 fad6116bca7515541cc619bd7576654779f102c9daf4da4c6d60a36e84934a40

See more details on using hashes here.

Provenance

The following attestation bundles were made for anvil_reduce-0.1.1-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.1-cp39-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for anvil_reduce-0.1.1-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3c4b042e15c03328c625f040bdf5900f2b9c965dcdeb140bfb0cb82ea666c534
MD5 bc09322a7d20261c309ee76c2b1932b8
BLAKE2b-256 353faa7389a8dce9859cca99a227f866a1ec556cda25af22082ef25f57644e70

See more details on using hashes here.

Provenance

The following attestation bundles were made for anvil_reduce-0.1.1-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.1-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for anvil_reduce-0.1.1-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f03a32083b4769abf082cd6b0f46a37e3712bf0a460fc14566da668dd08ddbce
MD5 66f0193d672d3d94d0453d588eebe772
BLAKE2b-256 80bc0ea7e3a7dc31073a7ec0ea19e1250d847a2cc8259648feebbbba439ff389

See more details on using hashes here.

Provenance

The following attestation bundles were made for anvil_reduce-0.1.1-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