# History file 'len-wf.h' to display wavefronts and two-point rays
# in the model with a LENticular inclusion
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Input files required
  chk.pl: "data/len/" "len-src.dat"
  chk.pl: "data/len/" "len-cam.dat"
  chk.pl: "data/len/" "len-dli1.dat"
  chk.pl: "forms/"    "hsv.dat"
# Output files of 'len-mod.h' and 'len-crt.h' used here as input files
  chk.pl: "" "len-srfv.out"
  chk.pl: "" "len-srft.out"
  chk.pl: "" "len-bnd.out"
  chk.pl: "" "len-rec.out"
  chk.pl: "" "len-ray.out"
  chk.pl: "" "r01.out"
  chk.pl: "" "r01i.out"
  chk.pl: "" "s01.out"
  chk.pl: "" "t01.out"

# Setting of cameras (viewpoints) and lights
  UP1=0  UP2=0  UP3=1  CAMERA='len-cam.dat'
  DLIGHT='len-dli1.dat'  AMBIENT=0.00
  R=0.00  G=0.00  B=0.00  # Black background

# Colour properties
  COLORS='hsv.dat'
  TRANSP=0.00  SPECULAR=0.22  SHININESS=0.10

# Name and format of output file
  WRL='len-wf.tmp'  VRML='VRML2'
  iniwrl:

# Structural interfaces in the model (grey colour)
  KOLPOS=0   KOLNEG=0   R=0.7 G=0.7 B=0.7
  VRTX='len-srfv.out' TRGL='len-srft.out'
  srfwrl:

# Adding white model box wireframe
  LIN='len-bnd.out'
  KOLLIN=0  R=1.00  G=1.00  B=1.00
  linwrl:

# Adding coloured two-point rays
  LIN='len-ray.out'
  KOLLIN=4  COLORS='hsv.dat'  VPER=6.0  VREF=0.0  CREF=0.166667
                                                  CREF1=0.8
  linwrl:

# Adding violet source and blue receivers
  PTS='len-src.dat'
  KOLPTS=0  R=1.00  G=0.00  B=1.00
  ptswrl:
  PTS='len-rec.out'
  KOLPTS=0  R=0.00  G=0.00  B=1.00  SHIFT3=0.001
  ptswrl:

# Adding wavefronts in times 1, 3 and 5 seconds
  WRL='len-wf.tmp' WRLOUT='len-wf1.wrl'
  VRTX='vrtx.tmp'  TRGL='trgl.tmp'  PLGN='plgn.tmp'
#
  KOLPOS=0 KOLNEG=0
  WFTIME=1.  R=0 G=1 B=0
  wfsrf:
  #trgl:           #TRGL does not work in current version, the polygons
  TRGL='plgn.tmp'  #are used as input for srfwrl instead of triangles
  srfwrl:

  WRL='len-wf1.wrl'
  WFTIME=3.  R=0 G=0 B=1
  wfsrf:
  #trgl:           #TRGL does not work in current version, the polygons
  TRGL='plgn.tmp'  #are used as input for srfwrl instead of triangles
  srfwrl:

  WFTIME=5.  R=1 G=0 B=0
  wfsrf:
 #trgl:            #TRGL does not work in current version, the polygons
  TRGL='plgn.tmp'  #are used as input for srfwrl instead of triangles
  srfwrl:

# Adding wavefronts in times 2, 4 and 6 seconds
  WRL='len-wf.tmp' WRLOUT='len-wf2.wrl'
#
  WFTIME=2.  R=0.  G=0.5 B=0.5
  wfsrf:
  #trgl:           #TRGL does not work in current version, the polygons
  TRGL='plgn.tmp'  #are used as input for srfwrl instead of triangles
  srfwrl:

  WRL='len-wf2.wrl'
  WFTIME=4.  R=0.5 G=0.  B=0.5
  wfsrf:
  #trgl:           #TRGL does not work in current version, the polygons
  TRGL='plgn.tmp'  #are used as input for srfwrl instead of triangles
  srfwrl:

  WFTIME=6.  R=0.5 G=0.5 B=0.
  wfsrf:
 #trgl:            #TRGL does not work in current version, the polygons
  TRGL='plgn.tmp'  #are used as input for srfwrl instead of triangles
  srfwrl:
# ======================================================================

# Temporary files (may be deleted)
#   '*.tmp'

# Output VRML files containing 3-D sculptures of rays, interfaces,
# and wavefronts
#   len-wf1.wrl
#   len-wf2.wrl

