// MicroAVS Application: 2.00
// Date: 8 September 1997 17:47:09
// DataNames: 1 fld2dsR_fld
// Methods: 1 10
// Actives: 1	 FLDBounds2D
// Comments:  
// End
MicroAVS.MicroAVS MicroAVS {
   MicroAVS.MAviewer3D MAviewer {
      objs_in => {
         MAviewerEditors.label_objs,<-.FLDBounds2D.obj_out};
      viewer_params {
         top_xform {
            mat = {
               1.6,0.,0.,0.,0.,1.6,0.,0.,0.,0.,1.6,0.,0.,0.,0.,1.
            };
            xlate = {-4.,-3.2,0.};
            ocenter = {2.5,2.,0.};
            dcenter = {4.,3.2,0.};
            center = {2.5,2.,0.};
         };
         auto_norm = 0;
      };
   };
   MicroAVS.MAfieldReader fld2dsR_fld {
      filename = "$XP_PATH<0>/data/FIELD/samples/fld2dsR.fld";
   };
   MicroAVS.field_networks.FLDBounds2D FLDBounds2D<NEvisible=1> {
      fld_in => <-.fld2dsR_fld.field;
      Params.bounds_params.mesh = 0;
   };
// For Demo Script 
   MicroAVS.MAdemo_templ Demo {
      GMOD.parse_v parse_scale {
         trigger =><-.demo_start;
         active =>trigger;
         on_inst = 0;
         relative => <-.<-.MAviewer.MAviewerEditors.TransformEditor.Params.
                        transform_editor_params;
      };


      GMOD.parse_v parse_bounds_meshon {
         trigger = 0;
         active => trigger;
         on_inst = 0;
         relative => <-.<-.FLDBounds2D.Params.bounds_params;
      };

      MicroAVS.MAdemo_sleep sleep1 {time=1; next = "parse_rotz";};


      GMOD.parse_v parse_rotz {
         trigger = 0;
         active => trigger;
         on_inst = 0;
         relative => <-.<-.MAviewer.MAviewerEditors.TransformEditor.Params.
                        transform_editor_params;
      };

      MicroAVS.MAdemo_sleep sleep2 {time=1; next = "parse_bounds_meshof";};

      parse_bounds_meshon parse_bounds_meshof;
   };
};
MicroAVS.MAviewer.viewer_params.auto_norm = 0;// Auto Normalize Off
MicroAVS.Demo.parse_scale {
   v_commands = "$push -usr\n Demo.status = 1; $pop\n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n scale = 0.9; $pop \n
                 $push -usr\n reset = 1; normalize = 1; center = 1; $pop \n
                 $push -usr\n Demo.parse_bounds_meshon.trigger = 1; $pop \n
                 ";
};
MicroAVS.Demo.parse_bounds_meshon {
   v_commands = "$push -usr\n mesh = 1; $pop \n
                 $push -usr\n Demo.sleep1.trigger = 1; $pop \n
                ";
};
MicroAVS.Demo.parse_rotz {
   v_commands = "$push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n Demo.sleep2.trigger = 1; $pop \n
                 ";
};
MicroAVS.Demo.parse_bounds_meshof {
   v_commands = "$push -usr\n mesh = 0; $pop \n
                 $push -usr\n Demo.status = 0; $pop\n
                ";
};
