Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,6 +94,33 @@ with gr.Blocks(title="Mesh Refinement Agent") as iface:
|
|
| 94 |
|
| 95 |
gr.Markdown("## Mesh Refinement Prediction Demo")
|
| 96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
gr.HTML("""
|
| 98 |
<details style="margin-bottom: 18px;">
|
| 99 |
<summary style="font-size: 18px; cursor: pointer; font-weight: bold;">
|
|
|
|
| 94 |
|
| 95 |
gr.Markdown("## Mesh Refinement Prediction Demo")
|
| 96 |
|
| 97 |
+
gr.Markdown(
|
| 98 |
+
'''### 📘 How to Use This Mesh Refinement Model
|
| 99 |
+
|
| 100 |
+
1. **Upload a STEP file** (`.step` / `.stp`).
|
| 101 |
+
OR: choose from one of the example STEP files at the bottom of the GUI and click *Run Mesh Prediction*
|
| 102 |
+
2. **Set basic parameters:**
|
| 103 |
+
- *Thickness* (mm)
|
| 104 |
+
- *Load Type* (bend from below or tension)
|
| 105 |
+
- *Direction* (positive/negative)
|
| 106 |
+
- *Load Scale* (low/medium/high)
|
| 107 |
+
3. After uploading, the system automatically detects all faces.
|
| 108 |
+
Select the **Load Face** from the dropdown.
|
| 109 |
+
4. Choose a **3D visualization mode**:
|
| 110 |
+
- **Wireframe** – full mesh structure
|
| 111 |
+
- **Highlight** – locally refined regions in red
|
| 112 |
+
- **Heatmap** – continuous refinement magnitude
|
| 113 |
+
5. Click **Run Mesh Prediction**.
|
| 114 |
+
|
| 115 |
+
The model will generate:
|
| 116 |
+
- A natural-language summary
|
| 117 |
+
- PNGs of the global and refined meshes
|
| 118 |
+
- An interactive 3D mesh viewer
|
| 119 |
+
- A downloadable `.msh` file
|
| 120 |
+
|
| 121 |
+
This workflow reproduces the full ML-driven refinement pipeline used during training.'''
|
| 122 |
+
)
|
| 123 |
+
|
| 124 |
gr.HTML("""
|
| 125 |
<details style="margin-bottom: 18px;">
|
| 126 |
<summary style="font-size: 18px; cursor: pointer; font-weight: bold;">
|