|
10 | 10 |
|
11 | 11 | <body> |
12 | 12 | <header> |
| 13 | + <label><strong>Visualization:</strong></label> |
| 14 | + |
13 | 15 | <label for="clipCheck">Clip Plane</label> |
14 | 16 | <input type="checkbox" id="clipCheck" unchecked /> |
15 | 17 | <label for="opacitySlider0">Background Opacity</label> |
|
18 | 20 | <label for="opacitySlider1">Overlay Opacity</label> |
19 | 21 | <input title="Control transparency of colored voxel-based segmentation" type="range" min="0" max="255" value="128" class="slider" id="opacitySlider1" /> |
20 | 22 | |
| 23 | + <br> |
| 24 | + <label><strong>Generation:</strong></label> |
| 25 | + |
21 | 26 | <label for="modelSelect">Segmentation Model</label> |
22 | 27 | <select id="modelSelect"> |
23 | 28 | </select> |
24 | 29 | |
25 | | - <button id="createMeshBtn">Create Mesh</button> |
| 30 | + <button disabled id="createMeshBtn">Create Mesh</button> |
26 | 31 | |
27 | | - <button id="saveBtn">Save Image</button> |
| 32 | + <br> |
| 33 | + <label><strong>Save results:</strong></label> |
| 34 | + |
| 35 | + <button disabled id="saveBtn">Save Image</button> |
28 | 36 | |
29 | | - <button id="saveMeshBtn">Save Mesh</button> |
| 37 | + <button disabled id="saveMeshBtn">Save Mesh</button> |
30 | 38 | |
| 39 | + <br> |
31 | 40 | <button id="aboutBtn">About</button> |
32 | 41 | |
33 | 42 | <label for="workerCheck" hidden>Use Webworker</label> |
34 | 43 | <input type="checkbox" hidden title="webworkers are faster but not supported by all browsers" id="workerCheck" checked /> |
35 | 44 | |
36 | 45 | <div id="loadingCircle" class="loading-circle hidden"></div> |
| 46 | + <label id="meshProcessingMsg" class="hidden"></label> |
37 | 47 |
|
38 | 48 | </header> |
39 | 49 | <main id="canvas-container"> |
|
55 | 65 | </footer> |
56 | 66 | <dialog id="remeshDialog"> |
57 | 67 | <form method="dialog"> |
58 | | - <p> |
59 | | - <label>Closing (mm)</label> |
60 | | - <input id="closeMM" type="number" min="0" value="4" max="100"> |
61 | | - </p> |
62 | | - <p> |
63 | | - <label> |
64 | | - Hollow: |
65 | | - <select id="hollowSelect" title="hollow meshes require less material but may be fragile"> |
66 | | - <option value="0">False: solid</option> |
67 | | - <option value="-1">1mm</option> |
68 | | - <option value="-2">2mm</option> |
69 | | - <option value="-4" selected>4mm</option> |
70 | | - <option value="-8">8mm</option> |
71 | | - <option value="-16">16mm</option> |
72 | | - </select> |
73 | | - </label> |
74 | | - </p> |
75 | | - <p> |
76 | | - <input type="checkbox" id="bubbleCheck" checked/> |
77 | | - <label>Fill bubbles</label> |
78 | | - </p> |
79 | | - <p> |
80 | | - <input type="checkbox" id="largestCheck" checked/> |
81 | | - <label>Largest cluster only</label> |
82 | | - </p> |
83 | 68 | <p> |
84 | 69 | <label for="smoothSlide">Smoothing</label> |
85 | 70 | <input |
86 | 71 | type="range" |
87 | 72 | min="0" |
88 | | - max="20" |
89 | | - value="0" |
| 73 | + max="30" |
| 74 | + value="3" |
90 | 75 | class="slider" |
91 | 76 | id="smoothSlide" |
92 | | - title="smoothing makes mesh less jagged, but can create self intersecting triangles" |
| 77 | + title="smoothing makes the mesh less jagged but requires longer computation" |
93 | 78 | /> |
94 | 79 | </p> |
95 | 80 | <p> |
96 | | - <label>Simplify Percent (1..100)</label> |
97 | | - <input title="adaptive triangle reduction reduces file size but can introduce defectss" id="shrinkPct" type="number" min="1" value="100" max="100"> |
| 81 | + <label>Simplify Percent (10..150)</label> |
| 82 | + <input title="triangle reduction reduces the file size and computation time but can reduce mesh quality, smaller values result in a smaller mesh" id="shrinkPct" type="number" min="10" value="75" max="150"> |
98 | 83 | </p> |
99 | 84 | <button id="cancelBtn" formmethod="dialog">Cancel</button> |
100 | 85 | <button autofocus id="applyBtn" value="default">Apply</button> |
|
0 commit comments