Spaces:
Running
Running
Commit
•
153165c
1
Parent(s):
9c554be
viewer topo-only
Browse files- src/routes/Viewer.svelte +23 -16
src/routes/Viewer.svelte
CHANGED
@@ -97,20 +97,27 @@
|
|
97 |
<p>vertex count: {viewer.vertexCount}</p>
|
98 |
{/if}
|
99 |
</div>
|
100 |
-
|
101 |
-
<
|
102 |
-
<
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
<
|
113 |
-
|
114 |
-
|
115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
</div>
|
|
|
97 |
<p>vertex count: {viewer.vertexCount}</p>
|
98 |
{/if}
|
99 |
</div>
|
100 |
+
{#if viewer && !viewer.topoOnly}
|
101 |
+
<div class="mode-toggle">
|
102 |
+
<label>
|
103 |
+
<input
|
104 |
+
type="radio"
|
105 |
+
name="modeB"
|
106 |
+
value="default"
|
107 |
+
checked
|
108 |
+
on:change={() => viewer.setRenderMode("default")}
|
109 |
+
/>
|
110 |
+
<Cube class="mode-toggle-icon" />
|
111 |
+
</label>
|
112 |
+
<label>
|
113 |
+
<input
|
114 |
+
type="radio"
|
115 |
+
name="modeB"
|
116 |
+
value="wireframe"
|
117 |
+
on:change={() => viewer.setRenderMode("wireframe")}
|
118 |
+
/>
|
119 |
+
<WatsonHealth3DPrintMesh class="mode-toggle-icon" />
|
120 |
+
</label>
|
121 |
+
</div>
|
122 |
+
{/if}
|
123 |
</div>
|