Complete mesh generation and manipulation package with GUI
Project description
PyMeshIt
PyMeshIt is a complete Python package for mesh generation and manipulation with a full-featured Qt-based GUI. It provides a comprehensive workflow to process point clouds and polylines into conforming surface meshes and tetrahedral meshes.
Note: This version runs entirely in Python without C++ dependencies, making it easier to install and deploy.
Highlights (GUI-driven workflow)
The included GUI (main.py) implements a full MeshIt workflow with the following main tabs:
-
- Load Data — load points, wells (polylines) or VTU/Poly formats; manage multiple datasets and colors.
-
- Convex Hull — compute dataset boundaries (convex or rim for/quasi-planar sheets) with corner detection.
-
- Segmentation — refine hulls by target feature size and per-surface length tables (RefineByLength).
-
- Triangulation — generate surface triangulations with gradient, min-angle, interpolation and uniform options.
-
- Intersections — compute & visualize global surface–surface and polyline–surface intersections; triple point detection.
-
- Refine & Mesh — refine intersection/hull lines, generate conforming surface meshes, constraint selection UI, per-surface mesh density table.
-
- Pre‑Tetramesh — select conforming surfaces, validate for TetGen, manage selection tree for tetrahedralization.
-
- Tetra Mesh — generate and visualize tetrahedral meshes, assign materials, export results.
Installation
From Release (Recommended)
For quick installation, download the exe. file from Releases
From PyPI
pip install triangle
pip install pymeshit # Needs to be fixed
From Source
If you want to install from source:
git clone https://github.com/waqashussain117/PyMeshit
cd PyMeshit
pip install -e .
Requirements
The package will automatically install all required dependencies:
- numpy
- scipy
- matplotlib
- PySide6
- pyvista
- tetgen
- triangle (optional)
Quick start (GUI)
For installation either install the Requirements and then open through Python. After installation, run the GUI:
meshit-gui
Or from Python:
import Pymeshit
Pymeshit.main_wrapper()
Typical workflow:
- Load one or more point or VTU files (File → Load).
- Compute hulls (Convex Hull tab).
- Compute segmentation (Segmentation tab) — set "Target Feature Size" or per-surface values.
- Run triangulation (Triangulation tab), choose interpolation and quality settings.
- Compute intersections (Intersections tab) to extract shared constraints and triple points.
- Refine intersection lines and generate conforming meshes (Refine & Mesh tab).
- Select conforming surfaces and validate for TetGen (Pre‑Tetramesh tab).
- Generate and visualize tetrahedral mesh (Tetra Mesh tab) and export.
Programmatic Usage
Contributing
Contributions are welcome. Please open an issue for discussion and submit PRs for fixes and features. Keep GUI behavior consistent with the tab-based workflow.
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymeshit-0.5.3.tar.gz.
File metadata
- Download URL: pymeshit-0.5.3.tar.gz
- Upload date:
- Size: 2.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffa88b2938f83b5195a311493f3d71a49b54202f442fdaccbe24cca033413971
|
|
| MD5 |
a41c1e077d17ab28af5eaebada3324dd
|
|
| BLAKE2b-256 |
6a93d8c4099e0bf46e1549c430bb1cf8ccd39b2a9d1f0a7d229218490651fef7
|
File details
Details for the file pymeshit-0.5.3-py3-none-any.whl.
File metadata
- Download URL: pymeshit-0.5.3-py3-none-any.whl
- Upload date:
- Size: 237.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ca0900d0398e4374b47320c8167e85c80297f2b356063673a6b1a2e77703217
|
|
| MD5 |
e356409a2f96abf417a27df5589b915e
|
|
| BLAKE2b-256 |
024f2c9ac523081f829c330a3922b3eb989171dc4e879fdbff402c69322fd7c3
|