# History file 'ex-wrl.h' to transform surfaces
# in model EX described in the form suitable
# for package MODEL into the VRML or GOCAD representations.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Input files required
  chk.pl: "data/ex/" "ex-mod.dat"
  chk.pl: "forms/"    "hsv.dat"

# General settings
# ~~~~~~~~~~~~~~~~
# Form of output file
  VRML='VRML2'
 #VRML='GOCAD'
# Name of output file
  WRL='ex-srf.wrl'  # VRML
 #WRL='ex-srf.mx'   # GOCAD

# Name of the file with the model
  MODEL='ex-mod.dat'

# Structural interfaces in the model
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# Temporary files
  VRTX='vrtx.tmp'  PLGN='plgn.tmp'  TRGL='trgl.tmp'

# Colour properties
  COLORS='hsv.dat'
  TRANSP=0.00  SPECULAR=0.22  SHININESS=0.10
  R=0.00  G=0.00  B=0.00  # Black background
  iniwrl:

# Colours correspond to the indices of surfaces
  COLUMN07='ISRF' # default value
  KOLSRF=7    VPER=8  VREF=1  CREF=0.

# Triangulating and plotting interfaces
  N1=11 N2=11 N3=20 D1=4. D2=4. D3=0.2  O1=0. O2=0. O3=-0.1
  modsrf:
  trgl:
  KOLUMN=7
  VALUE=1  VRTXN='ex-pts1.out'  TRGLN='ex-trg1.out'  trglsort:
  VALUE=2  VRTXN='ex-pts2.out'  TRGLN='ex-trg2.out'  trglsort:
  VALUE=3  VRTXN='ex-pts3.out'  TRGLN='ex-trg3.out'  trglsort:
  VALUE=4  VRTXN='ex-pts4.out'  TRGLN='ex-trg4.out'  trglsort:
  VALUE=5  VRTXN='ex-pts5.out'  TRGLN='ex-trg5.out'  trglsort:
  VALUE=6  VRTXN='ex-pts6.out'  TRGLN='ex-trg6.out'  trglsort:
  VALUE=7  VRTXN='ex-pts7.out'  TRGLN='ex-trg7.out'  trglsort:
  VALUE=8  VRTXN='ex-pts8.out'  TRGLN='ex-trg8.out'  trglsort:
  PROPERTIES='N1 N2 N3 ISRF'                       # just for GOCAD
  NAME='Surface1'   VRTX='ex-pts1.out'  TRGL='ex-trg1.out'  srfwrl:
  NAME='Surface2'   VRTX='ex-pts2.out'  TRGL='ex-trg2.out'  srfwrl:
  NAME='Surface3'   VRTX='ex-pts3.out'  TRGL='ex-trg3.out'  srfwrl:
  NAME='Surface4'   VRTX='ex-pts4.out'  TRGL='ex-trg4.out'  srfwrl:
  NAME='Surface5'   VRTX='ex-pts5.out'  TRGL='ex-trg5.out'  srfwrl:
  NAME='Surface6'   VRTX='ex-pts6.out'  TRGL='ex-trg6.out'  srfwrl:
  NAME='Surface7'   VRTX='ex-pts7.out'  TRGL='ex-trg7.out'  srfwrl:
  NAME='Surface8'   VRTX='ex-pts8.out'  TRGL='ex-trg8.out'  srfwrl:

# Adding model box wireframe
  LIN='ex-bnd.out'
  KOLLIN=0  R=1.00  G=1.00  B=1.00
  NAME='ModelBox'  PROPERTIES=' '  # just for GOCAD
  bndlin:
  linwrl:
