**************************************************************************
                             contour command
                        Leif Laaksonen CSC 2001
                        Timm Uhlmann       2003
                        Eero Häkkinen  CSC 2004
**************************************************************************
#
# Command to handle the various operations for a grid data to be 
# displayed as a isocontour surface
#

#
# Read a file with the name File.Name containing grid data and give
# the set the name Contour.name
#

conto$ur   file        File.Name Contour.Name

#
# Delete all contour information for all files
#

          -fil$e

#
# Delete all contour information for all files
#

           dele$te

#
# Print contour information about the files
#

           info

#
# Plot the isosurface for contour with the name Contour.Name
# using an isovalue Fvalue and colour Colour [Fvalue Colour ...]
# The colour can be given as a (1) name, (2) RGB integer value or
# (3) RGB floating values.
#

           plot        Contour.Name Fvalue  Colour Fvalue Colour  ...
           plot        Contour.Name Fvalue "Fvalue Fvalue Fvalue" ...
           plot        Contour.Name Fvalue "Ivalue Ivalue Ivalue" ...

#
# If contour mapping is used you have to give 
# (1) The contour for wich one wants to define an iso value 
# (2) The contour from which the property will be mapped
# (3) A min and max value inside which the colour scaling will be done
#

           plot {Contour.Name1 Contour.Name2} Fvalue  MinVal MaxVal  ...


#
# Change the transparent value for contour with the name Contour.Name
# to Fvalue. If there are several isocontour values defined apply on
# the one with index Ivalue. Fvalue is 1. for no transparency and 0.0
# for full transparency.
#

           alph$ablend Contour.Name Fvalue  Ivalue

#
# Use smoothing for the isocontour surface with the name Contour.Name
# and index Ivalue.
#

           smoo$th     Contour.Name on      Ivalue

#
# Do not use smoothing for the isocontour surface with the name 
# Contour.Name and index Ivalue.
#

           smoo$th     Contour.Name off     Ivalue

#
# Display isocontour surface with name the name Contour.Name and
# index Ivalue.
#

           disp$lay    Contour.Name on      Ivalue

#
# Do not display isocontour surface with name the name Contour.Name and
# index Ivalue.
#

           disp$lay    Contour.Name off     Ivalue

#
# Change the surface display type to solid for isocontour surface with
# the name Contour.Name and index Ivalue.
#

           type        Contour.Name soli$d  Ivalue

#
# Change the surface display type to mesh for isocontour surface with
# the name Contour.Name and index Ivalue.
#

           type        Contour.Name mesh    Ivalue

#
# Change the surface display type to line for isocontour surface with
# the name Contour.Name and index Ivalue.
#

           type        Contour.Name line    Ivalue

#
# It is possible to display a contour so that the contour polygon
# values are saved in an array. The default is direct which do not save
# the information. To get the polygon data look into the show command.
# It is impossible to differ the contour levels from the data array.
# The array is just an array of triangular meshes.

           meth$od     dire$ct
                       save

#
# Command to control the colour mapping of the values from one grid file
# on the surface of an other isocontour file
# ContourName#2 will now be mappend on the surface of ContourName#1
#

           mapp$ing ContourName#1 ContourName#2

#
# Command to combine a contour file to a particular structure
# Glue contour with name "Contour.Name" to structure number "Structure#"
#

           comb$ine   Contour.Name   Structure#

#
# Contour clip plane commands
# Put a clip plane at Fvalue with the clipping in the +/- direction
# along the defined axis.
# Put the defined clip (x, y or z axis) plane display on/off
#

           clip       x+  Fvalue
           clip       x-  Fvalue
           clip       y+  Fvalue
           clip       y-  Fvalue
           clip       z+  Fvalue
           clip       z-  Fvalue

           clip       x   on
           clip       x   off
           clip       y   on
           clip       y   off
           clip       z   on
           clip       z   off

# Put a clip plane of a line type contour at Fvalue along the defined axis.
#
           clip       x   Contour.Name Fvalue Ivalue
           clip       y   Contour.Name Fvalue Ivalue
           clip       z   Contour.Name Fvalue Ivalue


#
#	toggle face culling on/off
#

        cull$face    contname  	     on
				     off


  
**************************************************************************
LUL/2004
**************************************************************************