diff options
-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 |