Name | polymesh JSON |
Version |
0.0.25
JSON |
| download |
home_page | https://github.com/dewloosh/PolyMesh |
Summary | A Python package to build, manipulate and analyze polygonal meshes. |
upload_time | 2023-05-26 17:15:54 |
maintainer | Bence Balogh |
docs_url | None |
author | Bence Balogh |
requires_python | >=3.7, <3.11 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# **PolyMesh** - A Python Library for Polygonal Meshes
![ ](logo.png)
[![CircleCI](https://circleci.com/gh/dewloosh/PolyMesh.svg?style=shield)](https://circleci.com/gh/dewloosh/PolyMesh)
[![Documentation Status](https://readthedocs.org/projects/polymesh/badge/?version=latest)](https://polymesh.readthedocs.io/en/latest/?badge=latest)
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![PyPI](https://badge.fury.io/py/PolyMesh.svg)](https://pypi.org/project/PolyMesh)
[![Python 3.7‒3.10](https://img.shields.io/badge/python-3.7%E2%80%923.10-blue)](https://www.python.org)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
> **Warning** PolyMesh is in the early stages of it's lifetime, and some concepts may change in the future. If you seek 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](https://PolyMesh.readthedocs.io/en/latest/) library aims to provide the tools to build and analyse poligonal meshes with complex topologies. Meshes can be built like a dictionary, using arbitarily nested layouts and then be translated to other formats including [VTK](https://vtk.org/) and [PyVista](https://docs.pyvista.org/). For plotting, there is also support for [K3D](http://k3d-jupyter.org/), [Matplotlib](https://matplotlib.org/) and [Plotly](https://plotly.com/python/).
The data model is built around [Awkward](https://awkward-array.org/doc/main/), 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](https://vtk.org/) or [PyArrow](https://arrow.apache.org/docs/python/index.html). Implementations are fast as implementations rely on the vector math capabilities of [NumPy](https://numpy.org/doc/stable/index.html), while other computationally sensitive calculations are JIT-compiled using [Numba](https://numba.pydata.org/).
Here and there we also use [NetworkX](https://networkx.org/documentation/stable/index.html#), [SciPy](https://scipy.org/), [SymPy](https://www.sympy.org/en/index.html) and [scikit-learn](https://scikit-learn.org/stable/).
> **Note** Implementation of the performance critical parts of the library rely on the JIT-compilation capabilities of Numba. This means that the library performs well even for large scale problems, on the expense of a longer first call.
## Highlights
- Classes to handle points, pointclouds, reference frames and jagged topologies.
- Array-like mesh composition with a Numba-jittable database model. Join or split meshes, attach numerical data and save to and load from disk.
- Simplified and preconfigured plotting facility using PyVista.
- Grid generation in 1, 2 and 3 dimensions for arbitrarily structured Lagrangian cells.
- A mechanism for all sorts of geometrical and topological transformations.
- A customizable nodal distribution mechanism to effortlessly pass around data between points and cells.
- Generation of *Pseudo Peripheral Nodes*, *Rooted Level Structures* and *Adjancency Matrices* for arbitrary polygonal meshes.
- Symbolic shape function generation for arbitrarily structured Lagrangian cells in 1, 2 and 3 dimensions.
- Connections to popular third party libraries.
## Projects using PolyMesh
- [SigmaEpsilon](https://github.com/dewloosh/SigmaEpsilon) - A Python library for computational solid mechanics.
- [PyAxisVM](https://github.com/AxisVM/pyaxisvm) - The official Python package of [AxisVM](https://axisvm.eu/), a popular structural analysis and design software.
## Documentation
The [documentation](https://PolyMesh.readthedocs.io/en/latest/) is built with [Sphinx](https://www.sphinx-doc.org/en/master/) using the [PyData Sphinx Theme](https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html) and hosted on [ReadTheDocs](https://readthedocs.org/). Check it out for the user guide, an ever growing set examples, and the API Reference.
## Installation
PolyMesh can be installed from PyPI using `pip` on Python >= 3.7:
```console
>>> pip install polymesh
```
## Testing
```console
>>> python -m unittest
```
## How to contribute?
Contributions are currently expected in any the following ways:
- finding bugs
If you run into trouble when using the library and you think it is a bug, feel free to raise an issue.
- feedback
All kinds of ideas are welcome. For instance if you feel like something is still shady (after reading the user guide), we want to know. Be gentle though, the development of the library is financially not supported yet.
- feature requests
Tell us what you think is missing (with realistic expectations).
- examples
If you've done something with the library and you think that it would make for a good example, get in touch with the developers and we will happily inlude it in the documention.
- sharing is caring
If you like the library, share it with your friends or colleagues so they can like it too.
## Acknowledgements
Although `Polymesh` works without `VTK` or `PyVista` being installed, it is highly influenced by these libraries and works best with them around. Also shout-out for the developers of `NumPy`, `Scipy`, `Numba`, `Awkward` and all the third-party libraries involved in the project. Whithout these libraries the concept of writing performant, yet elegant Python code would be much more difficult.
**A lot of the packages mentioned on this document here and the introduction have a citable research paper. If you use them in your work through PolyMesh, take a moment to check out their documentations and cite their papers.**
Also, funding of these libraries is partly based on the size of the community they are able to support. If what you are doing strongly relies on these libraries, don't forget to press the :star: button to show your support.
## License
This package is licensed under the [MIT license](https://opensource.org/license/mit/).
Raw data
{
"_id": null,
"home_page": "https://github.com/dewloosh/PolyMesh",
"name": "polymesh",
"maintainer": "Bence Balogh",
"docs_url": null,
"requires_python": ">=3.7, <3.11",
"maintainer_email": "dewloosh@gmail.com",
"keywords": "",
"author": "Bence Balogh",
"author_email": "dewloosh@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/8d/6b/50e5be873842c5fa8900128a8e38ca5517850f19fa5ba4fc5b9d46bf0a06/polymesh-0.0.25.tar.gz",
"platform": null,
"description": "# **PolyMesh** - A Python Library for Polygonal Meshes\n\n![ ](logo.png)\n\n[![CircleCI](https://circleci.com/gh/dewloosh/PolyMesh.svg?style=shield)](https://circleci.com/gh/dewloosh/PolyMesh)\n[![Documentation Status](https://readthedocs.org/projects/polymesh/badge/?version=latest)](https://polymesh.readthedocs.io/en/latest/?badge=latest)\n[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![PyPI](https://badge.fury.io/py/PolyMesh.svg)](https://pypi.org/project/PolyMesh)\n[![Python 3.7\u20123.10](https://img.shields.io/badge/python-3.7%E2%80%923.10-blue)](https://www.python.org)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n> **Warning** PolyMesh is in the early stages of it's lifetime, and some concepts may change in the future. If you seek 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.\n\nThe [PolyMesh](https://PolyMesh.readthedocs.io/en/latest/) library aims to provide the tools to build and analyse poligonal meshes with complex topologies. Meshes can be built like a dictionary, using arbitarily nested layouts and then be translated to other formats including [VTK](https://vtk.org/) and [PyVista](https://docs.pyvista.org/). For plotting, there is also support for [K3D](http://k3d-jupyter.org/), [Matplotlib](https://matplotlib.org/) and [Plotly](https://plotly.com/python/).\n\nThe data model is built around [Awkward](https://awkward-array.org/doc/main/), 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](https://vtk.org/) or [PyArrow](https://arrow.apache.org/docs/python/index.html). Implementations are fast as implementations rely on the vector math capabilities of [NumPy](https://numpy.org/doc/stable/index.html), while other computationally sensitive calculations are JIT-compiled using [Numba](https://numba.pydata.org/).\n\nHere and there we also use [NetworkX](https://networkx.org/documentation/stable/index.html#), [SciPy](https://scipy.org/), [SymPy](https://www.sympy.org/en/index.html) and [scikit-learn](https://scikit-learn.org/stable/).\n\n> **Note** Implementation of the performance critical parts of the library rely on the JIT-compilation capabilities of Numba. This means that the library performs well even for large scale problems, on the expense of a longer first call.\n\n## Highlights\n\n- Classes to handle points, pointclouds, reference frames and jagged topologies.\n- Array-like mesh composition with a Numba-jittable database model. Join or split meshes, attach numerical data and save to and load from disk.\n- Simplified and preconfigured plotting facility using PyVista.\n- Grid generation in 1, 2 and 3 dimensions for arbitrarily structured Lagrangian cells.\n- A mechanism for all sorts of geometrical and topological transformations.\n- A customizable nodal distribution mechanism to effortlessly pass around data between points and cells.\n- Generation of *Pseudo Peripheral Nodes*, *Rooted Level Structures* and *Adjancency Matrices* for arbitrary polygonal meshes.\n- Symbolic shape function generation for arbitrarily structured Lagrangian cells in 1, 2 and 3 dimensions.\n- Connections to popular third party libraries.\n\n## Projects using PolyMesh\n\n- [SigmaEpsilon](https://github.com/dewloosh/SigmaEpsilon) - A Python library for computational solid mechanics.\n- [PyAxisVM](https://github.com/AxisVM/pyaxisvm) - The official Python package of [AxisVM](https://axisvm.eu/), a popular structural analysis and design software.\n\n## Documentation\n\nThe [documentation](https://PolyMesh.readthedocs.io/en/latest/) is built with [Sphinx](https://www.sphinx-doc.org/en/master/) using the [PyData Sphinx Theme](https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html) and hosted on [ReadTheDocs](https://readthedocs.org/). Check it out for the user guide, an ever growing set examples, and the API Reference.\n\n## Installation\n\nPolyMesh can be installed from PyPI using `pip` on Python >= 3.7:\n\n```console\n>>> pip install polymesh\n```\n\n## Testing\n\n```console\n>>> python -m unittest\n```\n\n## How to contribute?\n\nContributions are currently expected in any the following ways:\n\n- finding bugs\n If you run into trouble when using the library and you think it is a bug, feel free to raise an issue.\n- feedback\n All kinds of ideas are welcome. For instance if you feel like something is still shady (after reading the user guide), we want to know. Be gentle though, the development of the library is financially not supported yet.\n- feature requests\n Tell us what you think is missing (with realistic expectations).\n- examples\n If you've done something with the library and you think that it would make for a good example, get in touch with the developers and we will happily inlude it in the documention.\n- sharing is caring\n If you like the library, share it with your friends or colleagues so they can like it too.\n\n## Acknowledgements\n\nAlthough `Polymesh` works without `VTK` or `PyVista` being installed, it is highly influenced by these libraries and works best with them around. Also shout-out for the developers of `NumPy`, `Scipy`, `Numba`, `Awkward` and all the third-party libraries involved in the project. Whithout these libraries the concept of writing performant, yet elegant Python code would be much more difficult.\n\n**A lot of the packages mentioned on this document here and the introduction have a citable research paper. If you use them in your work through PolyMesh, take a moment to check out their documentations and cite their papers.**\n\nAlso, funding of these libraries is partly based on the size of the community they are able to support. If what you are doing strongly relies on these libraries, don't forget to press the :star: button to show your support.\n\n## License\n\nThis package is licensed under the [MIT license](https://opensource.org/license/mit/).\n",
"bugtrack_url": null,
"license": "",
"summary": "A Python package to build, manipulate and analyze polygonal meshes.",
"version": "0.0.25",
"project_urls": {
"Download": "https://github.com/dewloosh/PolyMesh/archive/refs/tags/v0.0.25.zip",
"Homepage": "https://github.com/dewloosh/PolyMesh"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "539b4d7c983a9a3b84805dc822151f63b183f6b4b4e8bc1445e36cce7f54ada2",
"md5": "a1c32953eb5926d4de02007d90baa618",
"sha256": "8efdc7909196ce546ed4e0a14f7f1af506df956616d6800a0a5bedc64defd158"
},
"downloads": -1,
"filename": "polymesh-0.0.25-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a1c32953eb5926d4de02007d90baa618",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7, <3.11",
"size": 135574,
"upload_time": "2023-05-26T17:15:51",
"upload_time_iso_8601": "2023-05-26T17:15:51.246476Z",
"url": "https://files.pythonhosted.org/packages/53/9b/4d7c983a9a3b84805dc822151f63b183f6b4b4e8bc1445e36cce7f54ada2/polymesh-0.0.25-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8d6b50e5be873842c5fa8900128a8e38ca5517850f19fa5ba4fc5b9d46bf0a06",
"md5": "b85f2b4981d42577afc88d3cca81a16d",
"sha256": "0fb426eb5b63ec338a3ee112a3000f4d5c4c2dc34113d28bc82a5be4d65a752a"
},
"downloads": -1,
"filename": "polymesh-0.0.25.tar.gz",
"has_sig": false,
"md5_digest": "b85f2b4981d42577afc88d3cca81a16d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7, <3.11",
"size": 116136,
"upload_time": "2023-05-26T17:15:54",
"upload_time_iso_8601": "2023-05-26T17:15:54.877919Z",
"url": "https://files.pythonhosted.org/packages/8d/6b/50e5be873842c5fa8900128a8e38ca5517850f19fa5ba4fc5b9d46bf0a06/polymesh-0.0.25.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-26 17:15:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dewloosh",
"github_project": "PolyMesh",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"circle": true,
"requirements": [],
"tox": true,
"lcname": "polymesh"
}