An interactive GUI tool for generating Triply Periodic Minimal Surface (TPMS) lattices and hybrid/graded TPMS structures for additive manufacturing and porous structure research.
If you work with Gyroid / Diamond / Primitive (and friends), want controllable relative density, and need a quick way to explore hybrid ratios + transition thickness, this tool is built for that workflow.
- TPMS types: Primitive (P), Gyroid (G), Diamond (D), I-WP (I), Neovius (N)
- Hybrid / graded structures between two TPMS fields
- Grading directions: Z, X, and Diagonal (X–Z)
- Control transition center
d0and steepnessk(logistic blend)
- Target relative density (RD) control using an iso-surface quantile strategy
- Real-time 3D preview
- High-resolution STL export
- Screenshot export from the viewport
- UI features:
- Dark / Light theme
- 中文 / English language switch
- Quick views: Reset / Top / Front / Right, plus Zoom in/out
If you just want to use the software without installing Python:
- Go to Releases on the right side of this repository.
- Download the latest
TPMS_Mixer.zip. - Unzip it to any folder.
- Run
TPMS_Mixer.exe.
If you want to run or modify the code:
- Clone this repository (or download as ZIP).
- Install dependencies:
pip install -r requirements.txt
- Launch the GUI:
python TPMS_Mixer_v1.1.0.py
Based on recent optimizations and modifications, v1.1.0 includes:
- Viewport interaction overhaul
- Smoother pan/zoom, double‑click reset, left-click rotate, right-click pan.
- Re-processing at Model Boundaries
- Voxel padding was used to reproduce isocaps boundary closure.
- Optimize the UI interface
- Optimized background display in Light and Dark modes.
