Mercurial > hg > orthanc-stl
comparison Resources/CMake/3dhop-4.3.patch @ 62:b798387b085c
added 3DHOP viewer version 4.3
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 15 Jun 2024 16:08:52 +0200 |
parents | |
children | a5c1be2ec26a |
comparison
equal
deleted
inserted
replaced
61:5dc3f3dcc092 | 62:b798387b085c |
---|---|
1 diff -urEb 3dhop.orig/3DHOP_all_tools.html 3dhop/3DHOP_all_tools.html | |
2 --- 3dhop.orig/3DHOP_all_tools.html 2024-06-15 15:43:28.329045772 +0200 | |
3 +++ 3dhop/3DHOP_all_tools.html 2024-06-15 15:50:04.629862005 +0200 | |
4 @@ -106,6 +106,25 @@ | |
5 </body> | |
6 | |
7 <script type="text/javascript"> | |
8 +// http://stackoverflow.com/a/21903119/881731 | |
9 +function GetUrlParameter(sParam) | |
10 +{ | |
11 + var sPageURL = decodeURIComponent(window.location.search.substring(1)); | |
12 + var sURLVariables = sPageURL.split('&'); | |
13 + | |
14 + for (var i = 0; i < sURLVariables.length; i++) { | |
15 + var sParameterName = sURLVariables[i].split('='); | |
16 + | |
17 + if (sParameterName[0] === sParam) { | |
18 + return sParameterName[1] === undefined ? '' : sParameterName[1]; | |
19 + } | |
20 + } | |
21 + | |
22 + return ''; | |
23 +}; | |
24 + | |
25 +var instanceId = GetUrlParameter('instance'); | |
26 + | |
27 var presenter = null; | |
28 | |
29 function setup3dhop() { | |
30 @@ -113,7 +132,7 @@ | |
31 | |
32 presenter.setScene({ | |
33 meshes: { | |
34 - "mesh_1" : { url: "models/gargo.nxz" } | |
35 + "mesh_1" : { url: "../3dhop-instances/" + instanceId + ".nxz" } | |
36 }, | |
37 modelInstances : { | |
38 "model_1" : { |