dylanebert HF staff commited on
Commit
153165c
1 Parent(s): 9c554be

viewer topo-only

Browse files
Files changed (1) hide show
  1. 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
- <div class="mode-toggle">
101
- <label>
102
- <input
103
- type="radio"
104
- name="modeB"
105
- value="default"
106
- checked
107
- on:change={() => viewer.setRenderMode("default")}
108
- />
109
- <Cube class="mode-toggle-icon" />
110
- </label>
111
- <label>
112
- <input type="radio" name="modeB" value="wireframe" on:change={() => viewer.setRenderMode("wireframe")} />
113
- <WatsonHealth3DPrintMesh class="mode-toggle-icon" />
114
- </label>
115
- </div>
 
 
 
 
 
 
 
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>