summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example_beam_trace.m13
1 files changed, 7 insertions, 6 deletions
diff --git a/example_beam_trace.m b/example_beam_trace.m
index 24fab15..95b5ff3 100644
--- a/example_beam_trace.m
+++ b/example_beam_trace.m
@@ -2,21 +2,22 @@ beam.k=[-1,0];
beam.origin=[2,0.5];
beam.face=NA;
beam.intensity = 1;
+beam.polarization = 1; % 1 for s and 2 for p
face1.vertex1=[-1,0];
face1.vertex2=[1,0];
-face1.n_right = 1;
-face1.n_left= 2.5;
+face1.n_right = [1, 1];
+face1.n_left= [2.5, 2.9];
face2.vertex1=[1,0];
face2.vertex2=[0,1];
-face2.n_right = 1;
-face2.n_left= 2.5;
+face2.n_right = [1, 1];
+face2.n_left= [2.5, 2.9];
face3.vertex1=[0,1];
face3.vertex2=[-1,0];
-face3.n_right = 1;
-face3.n_left= 2.5;
+face3.n_right = [1, 1];
+face3.n_left= [2.5, 2.9];
faces={face1,face2,face3};