Python wrapper of fTetWild
Project description
pytetwild is a Python library for mesh tetrahedralization. It is a Python wrapper around the efficient C++ library for tetrahedral meshing provided by fTetWild.
Installation
We have pre-built wheels for Python 3.8 - Python 3.12 for Windows and Linux x64.
The recommended way to install pytetwild is via PyPI:
pip install pytetwild
You can also clone the repository and install it from source, but since there’s C++ involved, the build is a bit more complicated. See CONTRIBUTING.md for more details.
Usage
To tetrahedralize a surface mesh:
>>> import pytetwild
>>> mesh = pytetwild.tetrahedralize("input_mesh.ply")
>>> mesh.vertices
array([[x1, y1, z1],
[x2, y2, z2],
...], dtype=float32)
>>> mesh.tetrahedra
array([[i1, j1, k1, l1],
[i2, j2, k2, l2],
...], dtype=int32)
You can also load a mesh, perform tetrahedralization, and export the tetrahedral mesh:
>>> import pytetwild
>>> pytetwild.tetrahedralize("input_mesh.ply", "output_mesh.ply")
License and Acknowledgments
This project relies on fTetWild and credits go to the original authors for their efficient C++ library for tetrahedral meshing. That work is licensed under the Mozilla Public License v2.0.
The work in this repository is also licensed under the Mozilla Public License v2.0.
Support
If you are having issues, please feel free to raise an Issue.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pytetwild-0.1.dev0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8658e792ec0496895d10c78e5d8798b97185ad3b4a67c79619ab54c79e566f9 |
|
MD5 | 879d286eab1a85deeb3d7c8fcae5b802 |
|
BLAKE2b-256 | 7b9efa853135bfe190beaf17b031a122ae672dbbb70049c013594a1521e5c724 |
Hashes for pytetwild-0.1.dev0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a2b1ec79c4623433472108dbc24c434dbd63c426043715fe21563fcad0c3561 |
|
MD5 | 1403d1d836537f51d1bf041a6513ffef |
|
BLAKE2b-256 | 333b805051c39135168b363afe334ca0a1faa31726f90bd843ef2bde3fbec041 |
Hashes for pytetwild-0.1.dev0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f694ca7b0afab7b2a1491a29337b7d4fe5f5efcd69366bcff2f614c85017df8 |
|
MD5 | 17896fcc2be0d1414be9cc0a2336d116 |
|
BLAKE2b-256 | 5c024b3972652c53e3a06a8b79aeb0daca5d982332f669ccc2b9fc9516b74a79 |
Hashes for pytetwild-0.1.dev0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eaac219dcd260f02d4b7edd637f48ce9b1bd4a471931bf314bb9a70191eb8f6 |
|
MD5 | 9f9df289bdaecca1c1cf725c569816c1 |
|
BLAKE2b-256 | bf0a66f889019e16889a21e723f7c3899290350feb51a5c017dcbb2d9974df67 |
Hashes for pytetwild-0.1.dev0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36ae168c9499a6d03ccafbf1a2779f0930941085609c5a4ad17aabfa01aae43d |
|
MD5 | 2a928df144a37228aedd0a738eeb40fa |
|
BLAKE2b-256 | 475746f13e1720d77a36ee55d3c32dba83080bb73d4ab4429b1b99917ae5e459 |
Hashes for pytetwild-0.1.dev0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be00d788b768f1cbc064cf2ab72ae9f9cf08073e5ebe63726dab8fadc3458fd9 |
|
MD5 | 86d3919f47f42393422b2edba2b94131 |
|
BLAKE2b-256 | 040ec2701d57c713eb104c6a7f5b1e5c8a31f5160d2b9993661b0e0676309447 |
Hashes for pytetwild-0.1.dev0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3136a432a8f7817e9d8d35e7ff778cbc36883e21bc96a3ee82a3a27665aef752 |
|
MD5 | b0d217688d6d08e019892a9e434a67d3 |
|
BLAKE2b-256 | a99db68e4f42dbd8e0ef9536ffad6715a530842681cc0ca4df4c34786b48036d |
Hashes for pytetwild-0.1.dev0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0acc86f8995fa03d98a6e54997643b973a7db641cada687e4bc16d5892bdb74e |
|
MD5 | d5c1d154d100baff1f6a425cec8b47eb |
|
BLAKE2b-256 | a2e50bfd6ba0e1a02f151f057029f29a5dd47ab0baf4f7572f18aea697f6abac |
Hashes for pytetwild-0.1.dev0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5bb162dc3a4bb0f77ddf0fdb6b1107374053fe5a10f13164590b3effa896a8b |
|
MD5 | 1ca2926828720d94392f4cc2dbf98dad |
|
BLAKE2b-256 | 616a6aac1ee0aa86d3c0ebbdef868e980592c9fee110702698c45939e9c40012 |
Hashes for pytetwild-0.1.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bd2d691c1bc68f30b8bdcc35da4b5206cf5f22bcbdeb990f28c1e6811ed0021 |
|
MD5 | 972855fd6243afff009aa5f24979a62b |
|
BLAKE2b-256 | cbd3810f16c8d1795e6595eb5cf99e2f5abf06400ccc6aa9ce850a8b548920d4 |