A Python package to build, manipulate and analyze polygonal meshes.
Project description
PolyMesh - A Python Library for Compound Meshes with Jagged Topologies
Warning PolyMesh is in the early stages of it's lifetime, and some concepts may change in the future. If you want long-term stability, wait until version 1.0, which is planned to be released if the core concepts all seem to sit and the documentation covers all major concepts.
The PolyMesh library aims to provide the tools to build and analyse meshes with complex topologies. Meshes can be built like a dictionary, using arbitarily nested layouts and then be translated to VTK or PyVista. For plotting, there is also support for K3D, Matplotlib and Plotly.
The data model is built around Awkward, which makes it possible to attach nested, variable-sized data to the points or the cells in a mesh, also providing interfaces to other popular libraries like Pandas or PyArrow. Implementations are fast as implementations rely on the vector math capabilities of NumPy, while other computationally sensitive calculations are JIT-compiled using Numba.
Here and there we also use NetworkX, SciPy, SymPy and scikit-learn.
Documentation
The documentation is hosted on ReadTheDocs, where you can find more examples.
Installation
PolyMesh can be installed from PyPI using pip
on Python >= 3.7:
>>> pip install polymesh
Testing
>>> python -m unittest
License
This package is licensed under the MIT license.
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 Distribution
Hashes for polymesh-0.0.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8702ae05998b42882be2ee68e29b09de1d34a1f94f74571f54920d5a3dc1364e |
|
MD5 | aa2670ef8b8b2b53fb43d93039785fde |
|
BLAKE2b-256 | 5739f6cdc054fa934d3d2b2874f1b502183e8bc587b6ec4f39f8ddfe0e82110b |