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

pip install miniacd

Or, to 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.0.tar.gz (111.1 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.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (498.2 kB view details)

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

miniacd-0.1.0-cp39-abi3-macosx_10_12_universal2.whl (887.7 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for miniacd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2ed2aa54bd294a8495c6755c43e2da82b185fd399e7c5531702b4e4113028c09
MD5 dc7697bcc842d026fd192764425eb8f3
BLAKE2b-256 957e08e15a4ff475029a207466893801f5c2b23b8f2c0226c0046177ba60a07c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for miniacd-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 811c570a648a65ee044fe97ffcafaedd61f5e17971b0385f7f4554b0a7cbffc7
MD5 7e3c65957e8dfb56980a07d3b032e039
BLAKE2b-256 0a24361549dbad857749f07fde1df7ff54f00495f012b52c70850c396cf4e4d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for miniacd-0.1.0-cp39-abi3-macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 0215fb12d9b774fae0cf72200c52cf744dfda398c2fc609d2b5515197762ae8e
MD5 facccff0f56db3e178534fd4342f119a
BLAKE2b-256 9743bcae388d70e374e14a07f8188b73a3036d571d4dfe652a6fa14433cfdf2d

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