@@ -154,7 +154,7 @@ def _download_special_files(self):
154
154
155
155
# Additional files to be mapped to the media directory
156
156
images = ["menu_20_gray.png" , "menu_20_white.png" , "nexus_front_page.png" , "nexus_logo.png" ]
157
- self ._download_static_files (images , "/static/website/images/" , "media" , "image " )
157
+ self ._download_static_files (images , "/static/website/images/" , "media" , "nexus images " )
158
158
159
159
# The old Ansys Nexus WebGL viewer
160
160
images = [
@@ -169,7 +169,7 @@ def _download_special_files(self):
169
169
"open.png" ,
170
170
"Point.cur" ,
171
171
]
172
- self ._download_static_files (images , "/static/website/images/" , "media" , "viewer image " )
172
+ self ._download_static_files (images , "/static/website/images/" , "media" , "viewer images I " )
173
173
174
174
# The new Ansys Nexus WebGL viewer
175
175
images = [
@@ -187,14 +187,16 @@ def _download_special_files(self):
187
187
"play.png" ,
188
188
]
189
189
self ._download_static_files (
190
- images , "/ansys/nexus/images/" , "ansys/nexus/images/" , "viewer image "
190
+ images , "/ansys/nexus/images/" , "ansys/nexus/images/" , "viewer images II "
191
191
)
192
192
images = ["js-inflate.js" , "js-unzip.js" , "jquery.min.js" ]
193
193
self ._download_static_files (
194
- images , "/ansys/nexus/utils/" , "ansys/nexus/utils/" , "viewer image "
194
+ images , "/ansys/nexus/utils/" , "ansys/nexus/utils/" , "viewer javascript support "
195
195
)
196
196
images = ["ANSYSViewer_min.js" , "viewer-loader.js" ]
197
- self ._download_static_files (images , "/ansys/nexus/" , "ansys/nexus/" , "viewer image" )
197
+ self ._download_static_files (
198
+ images , "/ansys/nexus/" , "ansys/nexus/" , "ansys-nexus-viewer js"
199
+ )
198
200
images = [
199
201
"jquery.contextMenu.min.css" ,
200
202
"jquery.contextMenu.min.js" ,
@@ -204,7 +206,37 @@ def _download_special_files(self):
204
206
images ,
205
207
"/ansys/nexus/novnc/vendor/jQuery-contextMenu/" ,
206
208
"ansys/nexus/novnc/vendor/jQuery-contextMenu" ,
207
- "viewer image" ,
209
+ "ansys-nexus-viewer vnc js" ,
210
+ )
211
+
212
+ image = [
213
+ "ArcballControls.js" ,
214
+ "DRACOLoader.js" ,
215
+ "GLTFLoader.js" ,
216
+ "OrbitControls.js" ,
217
+ "three.js" ,
218
+ ]
219
+ self ._download_static_files (
220
+ image , "/ansys/nexus/threejs/" , "ansys/nexus/threejs" , "threejs core"
221
+ )
222
+
223
+ image = [
224
+ "draco_decoder.js" ,
225
+ "draco_decoder.wasm" ,
226
+ "draco_encoder.js" ,
227
+ "draco_wasm_wrapper.js" ,
228
+ ]
229
+ self ._download_static_files (
230
+ image ,
231
+ "/ansys/nexus/threejs/libs/draco/" ,
232
+ "ansys/nexus/threejs/libs/draco" ,
233
+ "threejs draco" ,
234
+ )
235
+ self ._download_static_files (
236
+ image ,
237
+ "/ansys/nexus/threejs/libs/draco/gltf/" ,
238
+ "ansys/nexus/threejs/libs/draco/gltf" ,
239
+ "threejs draco gltf" ,
208
240
)
209
241
210
242
# Fonts
@@ -215,7 +247,7 @@ def _download_special_files(self):
215
247
"fa-solid-900.woff" ,
216
248
"fa-solid-900.woff2" ,
217
249
]
218
- self ._download_static_files (fonts , "/static/website/webfonts/" , "webfonts" , "font " )
250
+ self ._download_static_files (fonts , "/static/website/webfonts/" , "webfonts" , "fonts " )
219
251
220
252
@staticmethod
221
253
def _fix_viewer_component_paths (filename , data ):
@@ -422,6 +454,7 @@ def _download(self):
422
454
self ._make_dir ([self ._directory , "webfonts" ])
423
455
self ._make_dir ([self ._directory , "ansys" , "nexus" , "images" ])
424
456
self ._make_dir ([self ._directory , "ansys" , "nexus" , "utils" ])
457
+ self ._make_dir ([self ._directory , "ansys" , "nexus" , "threejs" , "libs" , "draco" , "gltf" ])
425
458
self ._make_dir ([self ._directory , "ansys" , "nexus" , "novnc" , "vendor" , "jQuery-contextMenu" ])
426
459
427
460
# get the webpage html source
0 commit comments