Skip to main content

Approximate convex decomposition of 3D meshes

Project description

miniacd

MIT Apache ci python PyPI

miniacd decomposes watertight 3D meshes into convex components which aim to be a good approximation of the input shape. It is a compact and high performance implementation of the CoACD algorithm described by Wei et al. and implemented in the CoACD repository.

image

Setup

Run directly with uv:

uvx miniacd --help

Or, use pip to install into your local environment:

pip install miniacd
miniacd --help

Or, install a prerelease version:

  1. Download a recent .whl from GitHub Releases
  2. Run pip install miniacd<...>.whl (replace <...> with the actual filename)
  3. Test it: miniacd --help

Building Locally

git clone git@github.com:kylc/miniacd.git
cd miniacd

# Build the Rust library
cargo build --release

# OR build a Python wheel
pip wheel .

Usage

You can use the miniacd command to process your mesh files. It has wide support for input and output formats, provided by trimesh. A typical invocation looks like this:

miniacd input_mesh.obj --output-dir output/ --threshold 0.1

If you have more specific needs, you can use miniacd as a Python library. See cli.py for an example. You can also access the internals by using miniacd as a Rust library.

References

Xinyue Wei, Minghua Liu, Zhan Ling, and Hao Su. 2022. Approximate convex decomposition for 3D meshes with collision-aware concavity and tree search. ACM Trans. Graph. 41, 4, Article 42 (July 2022), 18 pages. https://doi.org/10.1145/3528223.3530103

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

miniacd-0.1.5.tar.gz (109.7 kB view details)

Uploaded Source

Built Distributions

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

miniacd-0.1.5-cp39-abi3-win_amd64.whl (367.6 kB view details)

Uploaded CPython 3.9+Windows x86-64

miniacd-0.1.5-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (521.5 kB view details)

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

miniacd-0.1.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (515.3 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

miniacd-0.1.5-cp39-abi3-macosx_10_12_universal2.whl (891.6 kB view details)

Uploaded CPython 3.9+macOS 10.12+ universal2 (ARM64, x86-64)

File details

Details for the file miniacd-0.1.5.tar.gz.

File metadata

  • Download URL: miniacd-0.1.5.tar.gz
  • Upload date:
  • Size: 109.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for miniacd-0.1.5.tar.gz
Algorithm Hash digest
SHA256 e1c04c6cded47c7a188e71593783b7b4374c76f1d6f6b2e82c09aaed9e0e8153
MD5 ad8bf3ae84e61370c024012fd5022834
BLAKE2b-256 b8c14b937efe6ddec64c1b6383b8bb1d53647c0900f2cd419ffd9d0a5a1eaf3f

See more details on using hashes here.

File details

Details for the file miniacd-0.1.5-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: miniacd-0.1.5-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 367.6 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for miniacd-0.1.5-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 228bbb96ec54a3dac68b6b7d1c6ea1a39d5e9b6749843f5aa1b663ce4dd92214
MD5 bf3b6f3b151a1c8375f75622f019bd5c
BLAKE2b-256 1a1a596628aa89bff51eeb4de91ab1869724e18abace5fd881cbdcd0d63221ee

See more details on using hashes here.

File details

Details for the file miniacd-0.1.5-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for miniacd-0.1.5-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8b930a4e2d35942861806e5dc8e30ea037c8750b03c7b752e31d058d0fe40a47
MD5 b020b0ad640d46504c1a5545ce40ad97
BLAKE2b-256 7bda7925fc73d853fd99d020da21b07d400695ae8875e92f7fa2939524d984f4

See more details on using hashes here.

File details

Details for the file miniacd-0.1.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for miniacd-0.1.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1235a84bde0bdf9ac963fa3215ba66f188a43bcb6ac7fdbb80056ef1165b3b0e
MD5 ff471f6017fe532a118527213c6619e7
BLAKE2b-256 d17b4552c72ea5eb7d3195dc5adc51789100835037bcb3d7ebaf7a04828f78d0

See more details on using hashes here.

File details

Details for the file miniacd-0.1.5-cp39-abi3-macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for miniacd-0.1.5-cp39-abi3-macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 4eba7bf7fe6b9b91904b2c4b8fb88f55e75f37d11aa26d90ce9569097903546a
MD5 eb593900a2b8730e8b41afdea96ee187
BLAKE2b-256 4f4b501793a4dfc4bced10508ff3fc75fc16fffdb90af9bfe635667f3b8ad9af

See more details on using hashes here.

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