-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
199 lines (174 loc) · 7.32 KB
/
index.html
File metadata and controls
199 lines (174 loc) · 7.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!--
Copyright (C) 2019 by
Robert L. Read <read.robert@gmail.com>
David Jeschke <djeschke@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>SoftRobotMath</title>
<meta name="description" content="Segmented Helices">
<meta name="author" content="Robert L. Read">
<meta name="author" content="Megan Cadena">
<!--
<link rel="stylesheet" href="./jquery-ui-1.11.4.custom/jquery-ui.min.css">
<link rel="stylesheet" href="./jquery-ui-1.12.4.custom/jquery-ui.structure.min.css">
<link rel="stylesheet" href="./jquery-ui-1.12.4.custom/jquery-ui.theme.min.css">
-->
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="./css/main.css">
<link rel="icon" href="./images/favicon.ico">
<!-- This quit being available
<script type="text/javascript" src="https://latex.codecogs.com/latexit.js"></script>
-->
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="./js/scijs-newton-raphson.js"></script>
<script src="./js/tm_bundle.js"></script>
<script src="./js/axes.js"></script>
<script src="./js/three.js"></script>
<script src="./js/THREE.MeshLine.js"></script>
<script src="./js/OrbitControls.js"></script>
<script src="./js/Detector.js"></script>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="./js/d3-scale.min.js"></script>
<script src="https://d3js.org/d3-interpolate.v1.min.js"></script>
<script src="https://d3js.org/d3-array.v1.min.js"></script>
<script src="https://d3js.org/d3-collection.v1.min.js"></script>
<script src="https://d3js.org/d3-color.v1.min.js"></script>
<script src="https://d3js.org/d3-format.v1.min.js"></script>
<script src="https://d3js.org/d3-interpolate.v1.min.js"></script>
<script src="https://d3js.org/d3-time.v1.min.js"></script>
<script src="https://d3js.org/d3-time-format.v2.min.js"></script>
<script src="https://d3js.org/d3-scale.v1.min.js"></script>
<!-- I need some trig from this -->
<script src="https://unpkg.com/mathjs/lib/browser/math.js"></script>
<style>
codenza, code {}
codenza {display:block;white-space:pre-wrap}
</style>
</head>
<script>
var GLOBAL_DHELIX_PAGE = true;
</script>
<body>
<div id="threecontainer"></div>
<h2>Control Mode (Scroll Down for Usage Explanation)</h2>
<div id="titlearea">
</div>
<section>
<table style="width:100%">
<tr>
<th width='10%'>Coord</th>
<th width='10%'>Value</th>
<th width='60%'>Slider</th>
<th width='20%'>Text Input</th>
</tr>
<tr>
<td><label for="radius_a">Radius A</label></td>
<td> <input type="text" id="radius_a" readonly style="border:0; color:#f6931f; font-weight:bold;">
</td>
<td> <div id="radius_a_slider"></div> </td>
<td> <label>R a <input id="r_a" /> </label> </td>
</tr>
<tr>
<td><label for="radius_b">Radius B</label></td>
<td> <input type="text" id="radius_b" readonly style="border:0; color:#f6931f; font-weight:bold;">
</td>
<td> <div id="radius_b_slider"></div> </td>
<td> <label>R b <input id="r_b" /> </label> </td>
</tr>
<tr>
<td><label for="radius_c">Radius C</label></td>
<td> <input type="text" id="radius_c" readonly style="border:0; color:#f6931f; font-weight:bold;">
</td>
<td> <div id="radius_c_slider"></div> </td>
<td> <label>R c <input id="r_c" /> </label> </td>
</tr>
<tr style="border-bottom:5px solid black">
<td colspan="100%"> </td>
</tr>
<tr style="border-bottom:5px solid black">
<td colspan="100%"> </td>
</tr>
<tr>
<td><label for="theta">Theta</label></td>
<td> <input type="text" id="theta" readonly style="border:0; color:#f6931f; font-weight:bold;">
</td>
<td> <div id="theta_slider"></div> </td>
<td> <label>T d <input id="d_theta" /> </label> </td>
</tr>
<tr>
<td><label for="gamma">Gamma</label></td>
<td> <input type="text" id="gamma" readonly style="border:0; color:#f6931f; font-weight:bold;">
</td>
<td> <div id="gamma_slider"></div> </td>
<td> <label>G d <input id="d_gamma" /> </label> </td>
</tr>
</table>
</section>
<section id="inversetesting">
<table>
<tr>
<th width='10%'>Coord</th>
<th width='40%'>Value</th>
</tr>
<tr>
<td><label for="U_x">U_x</label></td>
<td> <input type="text" id="U_x" readonly style="border:1; color:#f6931f; font-weight:bold;">
</td>
</tr>
<tr>
<td><label for="H_y">H_y</label></td>
<td> <input type="text" id="H_y" readonly style="border:1; color:#f6931f; font-weight:bold;">
</td>
</tr>
<tr>
<td><label for="r_b">r_b_inv</label></td>
<td> <input type="text" id="r_b_inv" readonly style="border:1; color:#f6931f; font-weight:bold;">
</td>
</tr>
<tr>
<td><label for="Z_z">Z_z</label></td>
<td> <input type="text" id="Z_z" readonly style="border:1; color:#f6931f; font-weight:bold;">
</td>
</tr>
<tr>
<td><label for="c (inverted)">c_inv</label></td>
<td> <input type="text" id="c_inv" readonly style="border:1; color:#f6931f; font-weight:bold;">
</td>
</tr>
</table>
</section>
<section id="textsection">
<p> <strong>This is an interactive 3D simulation. To change the view, place your mouse in the view area, and
hold and "drag" the mouse to rotate the image.
The mouse wheel or a drag on your trackpad should zoom you in or out.</strong> </p>
<h2>Unit Tests</h2>
This code has extensive unit tests which are executed in-browser.
Clicking on the button below executes these tests.
Refer to the code and the console for details.
<p>
<button type="button" onclick="runUnitTests()">
Execute Tests!</button>
</p>
<h2>Licensing</h2>
<img src="https://www.gnu.org/graphics/gplv3-or-later.png"></img>
<p>All of the code on this site is released under the <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GNU General Public License Version 3</a>, and I hope you will
reuse it. The code, including technical documentation, can be found <a href="https://github.com/PubInv/segmented-helixes">in the repo</a>.</p>
<p>This project is part of <a href="https://pubinv.github.io/PubInv/">Public Invention</a>. To assist on this project, contact Robert L. Read < read.robert@gmail.com ></p>
</section>
<script src="./js/soft_robot_math.js"></script>
<script src="./js/main.js"></script>
</body>