Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
optical-design-viewer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
optical-design-viewer
Commits
c55e2dce
Commit
c55e2dce
authored
Jun 30, 2014
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ray info and link to project src
parent
ae4363a6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
4 deletions
+36
-4
index.css
index.css
+13
-0
index.html
index.html
+19
-4
lens_design.js
lens_design.js
+4
-0
No files found.
index.css
View file @
c55e2dce
...
...
@@ -78,6 +78,19 @@ input{
top
:
74px
;
}
#info
{
position
:
absolute
;
left
:
1014
;
top
:
225px
;
}
#srccode
{
position
:
absolute
;
left
:
925px
;
top
:
5px
;
z-index
:
3
;
}
.remove_button
{
font-size
:
16px
;
margin
:
0px
;
...
...
index.html
View file @
c55e2dce
...
...
@@ -50,10 +50,10 @@ Copyright (C) 2014 Elphel, Inc.
<td>
Aperture
<span
style=
"font-size:0.8em"
>
(Dia)
</span>
,
<span
style=
"font-size:0.8em"
>
mm
</span></td>
<td
width=
100
>
R
<span
style=
"font-size:0.8em"
>
(curve)
</span>
,
<span
style=
"font-size:0.8em"
>
mm
</span></td>
<td
width=
100
>
κ
</td>
<td
width=
100
>
α
<span
style=
"font-size:0.
6em"
>
1
</span></td>
<td
width=
100
>
α
<span
style=
"font-size:0.
6em"
>
2
</span></td>
<td
width=
100
>
α
<span
style=
"font-size:0.
6em"
>
3
</span></td>
<td
width=
95
>
α
<span
style=
"font-size:0.6em"
>
4
</span></td>
<td
width=
100
>
α
<span
style=
"font-size:0.
8em"
><sub>
1
</sub>
(r
<sup>
2
</sup>
)
</span></td>
<td
width=
100
>
α
<span
style=
"font-size:0.
8em"
><sub>
2
</sub>
(r
<sup>
4
</sup>
)
</span></td>
<td
width=
100
>
α
<span
style=
"font-size:0.
8em"
><sub>
3
</sub>
(r
<sup>
6
</sup>
)
</span></td>
<td
width=
95
>
α
<span
style=
"font-size:0.8em"
><sub>
4
</sub>
(r
<sup>
8
</sup>
)
</span></td>
<td><button
class=
'plus_button'
onclick=
"element_add_button()"
><b>
+
</b></button></td>
</tr>
</table>
...
...
@@ -91,5 +91,20 @@ Copyright (C) 2014 Elphel, Inc.
</tr>
</table>
</div>
<div
id=
"info"
>
<table
style=
"border:0px"
>
<tr>
<td
style=
"text-align:left"
>
Chief rays width,
<span
style=
"font-size:0.8em"
>
mm
</span></td>
<td
style=
"text-align:left"
><div
id=
"crw"
></div></td>
</tr>
<tr>
<td
style=
"text-align:left"
>
Marginal ray angle,
<span
style=
"font-size:0.8em"
>
°
</span></td>
<td
style=
"text-align:left"
><div
id=
"mra"
></div></td>
</tr>
</table>
</div>
<div
id=
'srccode'
>
<a
href=
'https://github.com/Elphel/optical-design-viewer'
>
source code
</a>
</div>
</body>
</html>
\ No newline at end of file
lens_design.js
View file @
c55e2dce
...
...
@@ -636,7 +636,11 @@ function rays_draw(){
//step1!
var
hh1
=
find_marginal_ray_half_height
(
0
,
0
,
0
,
0.1
,
old_cv
,
100
);
$
(
"#crw"
).
html
(
Math
.
round
(
2
*
hh1
*
1000
)
/
1000
);
var
c1
=
find_aperture_stop_ray
(
x
,
y
,
alpha
,
0
,
dalpha
,
old_cv
,
100
);
var
tmp
=
(
c1
[
2
]
>
90
)?(
c1
[
2
]
-
180
):(
c1
[
2
]);
tmp
=
Math
.
round
(
tmp
*
1000
)
/
1000
;
$
(
"#mra"
).
html
(
tmp
);
var
step
=
+
2
*
hh1
/
(
n
-
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment