diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2011-07-07 16:51:20 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2011-07-07 16:51:20 -0400 |
commit | 789728cddc88718d500127cd30076ab4017a6934 (patch) | |
tree | d5291b6ef39c04f2c6a6bf56c27c91f2bfd6a866 | |
parent | 9e5a8cc303a448985d726c205fa9ec089a8b3319 (diff) | |
download | wgmr-789728cddc88718d500127cd30076ab4017a6934.tar.gz wgmr-789728cddc88718d500127cd30076ab4017a6934.zip |
simple ray diagram plotted too
-rw-r--r-- | example_beam_trace.m | 1 | ||||
-rw-r--r-- | plot_beams_and_faces_figure.m | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/example_beam_trace.m b/example_beam_trace.m index 4245388..24fab15 100644 --- a/example_beam_trace.m +++ b/example_beam_trace.m @@ -47,6 +47,7 @@ beams={beam}; img=zeros(1000,1000); border_limits=[-2,-2, 2,2]; +figure(1); img = beam_trace(beams, faces, borders, border_limits, img ); fig_handle=2; diff --git a/plot_beams_and_faces_figure.m b/plot_beams_and_faces_figure.m index 6aebd8c..cdbe5ba 100644 --- a/plot_beams_and_faces_figure.m +++ b/plot_beams_and_faces_figure.m @@ -45,7 +45,10 @@ function plot_beams_and_faces_figure(border_limits, img, faces, fig_handle) yf=faces{i}.vertex1(2) + (faces{i}.vertex2(2)-faces{i}.vertex1(2))*t; plot(xf,yf, 'k-'); end + + axis('equal'); hold off; + end |