Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -9,3 +9,65 @@ short_description: This is an AI agent which uses optimizes mesh generation
|
|
| 9 |
---
|
| 10 |
|
| 11 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 12 |
+
|
| 13 |
+
# Mesh Refinement Agent (HF Space)
|
| 14 |
+
|
| 15 |
+
This Hugging Face Space runs a full machine-learning–guided mesh refinement workflow
|
| 16 |
+
for STEP CAD geometry.
|
| 17 |
+
|
| 18 |
+
The system performs:
|
| 19 |
+
|
| 20 |
+
- STEP loading and feature extraction
|
| 21 |
+
- Detection of planes, fillets, circular holes, non-circular pockets
|
| 22 |
+
- Part-level feature aggregation
|
| 23 |
+
- Four ML model predictions:
|
| 24 |
+
- Convergence classifier
|
| 25 |
+
- Global mesh size regressor
|
| 26 |
+
- Local refinement flag classifier
|
| 27 |
+
- Local mesh size regressor
|
| 28 |
+
- Gmsh meshing with background field refinement
|
| 29 |
+
- PNG + interactive Plotly visualization
|
| 30 |
+
- `.msh` mesh export
|
| 31 |
+
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
## How to Use
|
| 35 |
+
|
| 36 |
+
1. Upload a `.step` / `.stp` file
|
| 37 |
+
2. Select the load type (bend or tension)
|
| 38 |
+
3. Pick visualization mode:
|
| 39 |
+
- Wireframe
|
| 40 |
+
- Highlight (local refinement)
|
| 41 |
+
- Heatmap (element size inverse)
|
| 42 |
+
4. Press **Run**
|
| 43 |
+
|
| 44 |
+
You will receive:
|
| 45 |
+
|
| 46 |
+
- A natural-language summary of predicted convergence & refinement
|
| 47 |
+
- Global mesh PNG
|
| 48 |
+
- Refined mesh PNG
|
| 49 |
+
- Interactive 3D mesh viewer
|
| 50 |
+
- Downloadable `mesh_refined.msh`
|
| 51 |
+
|
| 52 |
+
---
|
| 53 |
+
|
| 54 |
+
## Project Files
|
| 55 |
+
|
| 56 |
+
Key files included in this Space:
|
| 57 |
+
|
| 58 |
+
Models are pre-trained and do not require Ansys or dataset files.
|
| 59 |
+
|
| 60 |
+
---
|
| 61 |
+
|
| 62 |
+
## Notes
|
| 63 |
+
|
| 64 |
+
- Computation is CPU-only (HF Spaces restriction)
|
| 65 |
+
- Very large STEP files may take 10–40 seconds
|
| 66 |
+
- All geometry processing uses `cadquery-ocp` OpenCascade backend
|
| 67 |
+
- Gmsh 4.11.1 CLI is used for meshing
|
| 68 |
+
|
| 69 |
+
---
|
| 70 |
+
|
| 71 |
+
## License
|
| 72 |
+
|
| 73 |
+
MIT License
|