package Savage.Locations.MontereyPeninsulaCollege;

import org.web3d.x3d.jsail.Core.*;
import org.web3d.x3d.jsail.EnvironmentalEffects.*;
import org.web3d.x3d.jsail.EventUtilities.*;
import org.web3d.x3d.jsail.fields.*;
import org.web3d.x3d.jsail.Geometry3D.*;
import org.web3d.x3d.jsail.Grouping.*;
import org.web3d.x3d.jsail.Lighting.*;
import org.web3d.x3d.jsail.Navigation.*;
import org.web3d.x3d.jsail.Networking.*;
import org.web3d.x3d.jsail.Rendering.*;
import org.web3d.x3d.jsail.Scripting.*;
import org.web3d.x3d.jsail.Shape.*;
import org.web3d.x3d.jsail.Texturing.*;
import org.web3d.x3d.jsail.Time.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> Monterey Peninsula College (MPC) swimming pool, built several different ways, author can choose one by Switch node selection. </p>
 <p> Related links: Catalog page <a href="../../../../Locations/MontereyPeninsulaCollege/PoolMontereyPeninsulaCollegeIndex.html" target="_blank">PoolMontereyPeninsulaCollege</a>,  source <a href="../../../../Locations/MontereyPeninsulaCollege/PoolMontereyPeninsulaCollege.java">PoolMontereyPeninsulaCollege.java</a>, <a href="https://www.web3d.org/x3d/content/examples/X3dResources.html" target="_blank">X3D Resources</a>, <a href="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html" target="_blank">X3D Scene Authoring Hints</a>, and <a href="https://www.web3d.org/x3d/content/X3dTooltips.html" target="_blank">X3D Tooltips</a>. </p>
	<table style="color:black; border:0px solid; border-spacing:10px 0px;">
        <caption>Scene Meta Information</caption>
		<tr style="background-color:silver; border-color:silver;">
			<td style="text-align:center; padding:10px 0px;"><i>meta tags</i></td>
			<td style="text-align:left;   padding:10px 0px;">&nbsp; Document Metadata </td>
		</tr>

		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> title </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/PoolMontereyPeninsulaCollege.x3d">PoolMontereyPeninsulaCollege.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> Monterey Peninsula College (MPC) swimming pool, built several different ways, author can choose one by Switch node selection </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Don Brutzman and MV3204 class </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 9 April 2010 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 1 October 2023 </td>
		</tr>
		<tr style="color:red">
			<td style="text-align:right; vertical-align: text-top;"> <i> error </i> </td>
			<td> The following image test snapshots show inconsistent support by X3D players. Xj3D did not render the textures, SwirlX3D player did not render the scene. </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/TextureTransformViewBsContact.png">TextureTransformViewBsContact.png</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/TextureTransformViewInstantReality.png">TextureTransformViewInstantReality.png</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/TextureTransformViewOctagaVS.png">TextureTransformViewOctagaVS.png</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/TextureTransformViewFreeWrl.png">TextureTransformViewFreeWrl.png</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/TextureTransformViewXj3d.png">TextureTransformViewXj3d.png</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> info </i> </td>
			<td> This scene includes trace diagnostic for changing user navigation from EXAMINE to FLY when binding/unbinding the initial overhead-perspective Viewpoint </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> drawing </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/PoolMontereyPeninsulaCollegeSketch.png">PoolMontereyPeninsulaCollegeSketch.png</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/PoolMontereyPeninsulaCollegeDiagram.pdf">PoolMontereyPeninsulaCollegeDiagram.pdf</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/PoolMontereyPeninsulaCollegeDiagram.png">PoolMontereyPeninsulaCollegeDiagram.png</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/PoolMontereyPeninsulaCollegeDiagram.vsd">PoolMontereyPeninsulaCollegeDiagram.vsd</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> map </i> </td>
			<td> MontereyPeninsulaCollegeOpenStreetMap.png </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> drawing </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/snapshots/PoolCoordinateIndexValues.jpg">snapshots/PoolCoordinateIndexValues.jpg</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> drawing </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/snapshots/PoolCoordinateIndexValuesSketch.jpg">snapshots/PoolCoordinateIndexValuesSketch.jpg</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/snapshots/PoolSnapshotBoxesAbove.png">snapshots/PoolSnapshotBoxesAbove.png</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/snapshots/PoolSnapshotBoxesBelow.png">snapshots/PoolSnapshotBoxesBelow.png</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/snapshots/PoolSnapshotIndexedFaceSetAbove.png">snapshots/PoolSnapshotIndexedFaceSetAbove.png</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/snapshots/PoolSnapshotIndexedFaceSetBelow.png">snapshots/PoolSnapshotIndexedFaceSetBelow.png</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> photo </i> </td>
			<td> snapshots/UltrasonicDistanceMeasurer.jpg </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> TODO </i> </td>
			<td> information about ROV races </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> TODO </i> </td>
			<td> photo(s) of pool </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> TODO </i> </td>
			<td> document how to adjust Viewpoint centerOfRotation </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> subject </i> </td>
			<td> X3D swimming pool </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/PoolMontereyPeninsulaCollegeUsingBoxes.x3d">PoolMontereyPeninsulaCollegeUsingBoxes.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="http://mmog.ern.nps.edu/svn/mv3204/examples/PoolMontereyPeninsulaCollege.x3d" target="_blank">http://mmog.ern.nps.edu/svn/mv3204/examples/PoolMontereyPeninsulaCollege.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> identifier </i> </td>
			<td> <a href="https://www.web3d.org/x3d/content/examples/Savage/Locations/MontereyPeninsulaCollege/PoolMontereyPeninsulaCollege.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/Locations/MontereyPeninsulaCollege/PoolMontereyPeninsulaCollege.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> X3D-Edit, <a href="https://www.web3d.org/x3d/tools/X3D-Edit" target="_blank">https://www.web3d.org/x3d/tools/X3D-Edit</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> license </i> </td>
			<td> <a href="../../../../Locations/MontereyPeninsulaCollege/../../license.html">../../license.html</a> </td>
		</tr>
		<tr style="background-color:silver; border-color:silver;">
			<td style="text-align:center;" colspan="2">  &nbsp; </td>
		</tr>
	</table>

	<p>
		This program uses the
		<a href="https://www.web3d.org/specifications/java/X3DJSAIL.html" target="_blank">X3D Java Scene Access Interface Library (X3DJSAIL)</a>.
		It has been produced using the 
		<a href="https://www.web3d.org/x3d/stylesheets/X3dToJava.xslt" target="_blank">X3dToJava.xslt</a>
		stylesheet
	       (<a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/X3dToJava.xslt" target="_blank">version control</a>)
                which is used to create Java source code from an original <code>.x3d</code> model.
	</p>

	* @author Don Brutzman and MV3204 class
 */

public class PoolMontereyPeninsulaCollege
{
	/** Default constructor to create this object. */
	public PoolMontereyPeninsulaCollege ()
	{
	  initialize();
	}

	/** Create and initialize the X3D model for this object. */
	public final void initialize()
	{
            try { // catch-all
  x3dModel = new X3D().setProfile(X3D.PROFILE_IMMERSIVE).setVersion(X3D.VERSION_3_2)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("PoolMontereyPeninsulaCollege.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("Monterey Peninsula College (MPC) swimming pool, built several different ways, author can choose one by Switch node selection"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Don Brutzman and MV3204 class"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("9 April 2010"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("1 October 2023"))
    .addMeta(new meta().setName(meta.NAME_ERROR      ).setContent("The following image test snapshots show inconsistent support by X3D players. Xj3D did not render the textures, SwirlX3D player did not render the scene."))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("TextureTransformViewBsContact.png"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("TextureTransformViewInstantReality.png"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("TextureTransformViewOctagaVS.png"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("TextureTransformViewFreeWrl.png"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("TextureTransformViewXj3d.png"))
    .addMeta(new meta().setName(meta.NAME_INFO       ).setContent("This scene includes trace diagnostic for changing user navigation from EXAMINE to FLY when binding/unbinding the initial overhead-perspective Viewpoint"))
    .addMeta(new meta().setName(meta.NAME_DRAWING    ).setContent("PoolMontereyPeninsulaCollegeSketch.png"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("PoolMontereyPeninsulaCollegeDiagram.pdf"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("PoolMontereyPeninsulaCollegeDiagram.png"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("PoolMontereyPeninsulaCollegeDiagram.vsd"))
    .addMeta(new meta().setName("map").setContent("MontereyPeninsulaCollegeOpenStreetMap.png"))
    .addMeta(new meta().setName(meta.NAME_DRAWING    ).setContent("snapshots/PoolCoordinateIndexValues.jpg"))
    .addMeta(new meta().setName(meta.NAME_DRAWING    ).setContent("snapshots/PoolCoordinateIndexValuesSketch.jpg"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("snapshots/PoolSnapshotBoxesAbove.png"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("snapshots/PoolSnapshotBoxesBelow.png"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("snapshots/PoolSnapshotIndexedFaceSetAbove.png"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("snapshots/PoolSnapshotIndexedFaceSetBelow.png"))
    .addMeta(new meta().setName(meta.NAME_PHOTO      ).setContent("snapshots/UltrasonicDistanceMeasurer.jpg"))
    .addMeta(new meta().setName(meta.NAME_TODO       ).setContent("information about ROV races"))
    .addMeta(new meta().setName(meta.NAME_TODO       ).setContent("photo(s) of pool"))
    .addMeta(new meta().setName(meta.NAME_TODO       ).setContent("document how to adjust Viewpoint centerOfRotation"))
    .addMeta(new meta().setName(meta.NAME_SUBJECT    ).setContent("X3D swimming pool"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("PoolMontereyPeninsulaCollegeUsingBoxes.x3d"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("http://mmog.ern.nps.edu/svn/mv3204/examples/PoolMontereyPeninsulaCollege.x3d"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Savage/Locations/MontereyPeninsulaCollege/PoolMontereyPeninsulaCollege.x3d"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("X3D-Edit, https://www.web3d.org/x3d/tools/X3D-Edit"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("PoolMontereyPeninsulaCollege.x3d"))
    .addChild(new PointLight("LitPool").setLocation(37.5,100.0,32.0))
    .addChild(new Background().setSkyColor(new MFColor(new double[] {1.0,1.0,1.0})))
    .addComments(" Put CoordinateAxes with correct directional alignment at pool origin 0 0 0) ")
    .addChild(new Inline("CoordinateAxes").setUrl(new String[] {"../../Tools/Authoring/CoordinateAxes.x3d","https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxes.x3d","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d","../../Tools/Authoring/CoordinateAxes.wrl","https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxes.wrl","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl"}))
    .addComments(" Only one NavInfo can be bound at a time. Include \"ANY\" to allow user override. ")
    .addComments(" Note that our local units here are still meters. ")
    .addChild(new NavigationInfo("NavigationExamineMode").setAvatarSize(new double[] {0.25,1.6,2.0}).setSpeed(5).setType(new String[] {"EXAMINE","FLY","ANY"}))
    .addChild(new NavigationInfo("NavigationWalkMode").setAvatarSize(new double[] {0.25,1.6,2.0}).setSpeed(5).setType(new String[] {"WALK","ANY"}))
    .addChild(new NavigationInfo("NavigationFlyMode").setAvatarSize(new double[] {0.25,1.6,2.0}).setSpeed(5).setType(new String[] {"FLY","ANY"}))
    .addComments(" All pool model measurements are recorded in feet, therefore scale them into meters. X is length, Y is height, Z is width. ")
    .addChild(new Transform("ScaleFeetToMeters").setScale(0.3048,0.3048,0.3048)
      .addComments(" Box centers are at local coordinate 0 0 0, this translation shifts them to put corner at pool coordinate 0 0 0 ")
      .addChild(new Group("ViewingNavigation")
        .addComments(" Only one NavInfo can be bound at a time. Include \"ANY\" to allow user override. ")
        .addComments(" Viewpoints are placed here since their position is recorded in feet using the pool coordinate system ")
        .addChild(new Transform().setCenter(37.5,100.0,32.0).setRotation(1.0,0.0,0.0,-1.5708)
          .addChild(new Viewpoint("ViewOverheadLongWaysAcross").setDescription("High above pool, long-ways across, from 100 feet").setOrientation(0.0,0.0,1.0,3.1416).setPosition(37.5,100.0,32.0)))
        .addChild(new Transform().setCenter(37.5,120.0,32.0).setRotation(1.0,0.0,0.0,-1.5708)
          .addChild(new Viewpoint("ViewOverhead").setDescription("High above pool, long-ways up, from 120 feet").setCenterOfRotation(0.0,120.0,0.0).setOrientation(0.0,0.0,1.0,-1.5708).setPosition(37.5,120.0,32.0)))
        .addComments(" <ROUTE fromField='isBound' fromNode='ViewOverhead' toField='set_bind' toNode='NavigationExamineMode'/> ")
        .addChild(new Group()
          .addComments(" ======= ROUTE Trace ============================================== ")
          .addChild(new Script("Trace_ROUTE_ViewOverhead_isBound_TO_NavigationExamineMode_set_bind").setMustEvaluate(true).setSourceCode("""
ecmascript:
    function set_traceValue (eventValue, timeStamp)
    {
        Browser.println ('Script method set_traceValue invoked, which is now handing off to traceValueHandler()...');
        traceValueHandler (eventValue, timeStamp);
    }
    function traceValue (eventValue, timeStamp)
    {
        Browser.println ('Script method traceValue invoked, which is now handing off to traceValueHandler()...');
        traceValueHandler (eventValue, timeStamp);
    }
    function traceValueHandler (eventValue, timeStamp)
    {
      // input eventValue received for trace field
      if (timeStamp - timeStampPreviousReport >= reportInterval) {
        Browser.println ('Trace_ROUTE_ViewOverhead_isBound_TO_NavigationExamineMode_set_bind type=SFBool value=' + eventValue);
        timeStampPreviousReport = timeStamp;
        if  (eventValue == true)
             Browser.println ('User navigation should be EXAMINE');
        else Browser.println ('User navigation should be FLY');
      }
    }
    function timeOfDay (someTime) {
      hh = Math.floor (someTime /(60*60)) % 24;
      mm = Math.floor (someTime / 60)     % 60;
      ss = Math.floor (someTime)          % 60;
      if (hh < 9) hour   = '0' + hh;
      else        hour   =       hh;
      if (mm < 9) minute = '0' + mm;
      else        minute =       mm;
      if (ss < 9) second = '0' + ss;
      else        second =       ss;
      return '(' + hour + ':' + minute + ':' + second + ' GMT)';
    }
""")
            .addComments(" Trace ROUTEd values on X3D browser console ")
            .addField(new field().setName("reportInterval").setType(field.TYPE_SFTIME).setAccessType(field.ACCESSTYPE_INITIALIZEONLY).setValue(1.0).setAppinfo("Sampling frequency in seconds (0 means all values)"))
            .addField(new field().setName("traceValue").setType(field.TYPE_SFBOOL).setAccessType(field.ACCESSTYPE_INPUTONLY))
            .addField(new field().setName("timeStampPreviousReport").setType(field.TYPE_SFTIME).setAccessType(field.ACCESSTYPE_INITIALIZEONLY).setValue(-1)))
          .addChild(new ROUTE().setFromNode("ViewOverhead").setFromField("isBound").setToNode("Trace_ROUTE_ViewOverhead_isBound_TO_NavigationExamineMode_set_bind").setToField("traceValue"))
          .addComments(" ======= ROUTE Trace block complete ===================================================== "))
        .addComments(" other Viewpoints do not get EXAMINE navigation type ")
        .addChild(new Viewpoint().setDescription("Shallow end left side, from origin").setOrientation(0.0067,0.9998,0.0161,-2.3563).setPosition(-13.0,6.0,-13.0))
        .addChild(new Viewpoint().setDescription("Pool center left side").setOrientation(0.0,0.9955,0.0949,3.1413).setPosition(37.52,10.0,-20.0))
        .addChild(new Viewpoint().setDescription("Deep end left side").setOrientation(-0.0203,0.9988,0.0451,2.2984).setPosition(87.0,6.0,-12.0))
        .addChild(new Viewpoint().setDescription("Deep end center").setOrientation(-0.0857,0.9926,0.0857,1.5782).setPosition(95.0,10.0,32.0))
        .addChild(new Viewpoint().setDescription("Deep end right side").setOrientation(-0.1001,0.994,0.0449,0.8487).setPosition(87.0,6.0,76.0))
        .addChild(new Viewpoint().setDescription("Pool center right side").setOrientation(-1.0,0.002,0.0002,0.2235).setPosition(37.52,10.0,84.0))
        .addChild(new Viewpoint().setDescription("Shallow end right side").setOrientation(0.1001,0.994,0.0449,-0.8487).setPosition(-12.0,6.0,76.0))
        .addChild(new Viewpoint().setDescription("Shallow end center").setOrientation(0.0864,0.99251,0.0864,-1.578318).setPosition(-20.0,10.0,32.0)))
      .addChild(new Switch("SwitchWhichPool").setWhichChoice(2)
        .addComments(" Select one of the pools as follows, otherwise turn on the PoolSwitcherClock ")
        .addComments(" whichChoice=0: BoxPoolGroup, whichChoice=1: IfsPoolGroup, whichChoice=2: IfsPoolGroupTextured, whichChoice=3: SimpleElevationGridPoolGroup, whichChoice=4: DetailedElevationGridPoolGroup ")
        .addChild(new Group("BoxPoolGroup")
          .addChild(new Transform("ShiftBoxCornersToPoolCenter").setTranslation(37.5,-12.75,32.0)
            .addChild(new Shape("PoolFloor")
              .setGeometry(new Box().setSize(75.0,0.25,64.0))
              .setAppearance(new Appearance("AppearanceWall")
                .setMaterial(new Material().setDiffuseColor(0.5,0.9,0.9))))
            .addChild(new Transform("ShallowWall").setTranslation(-37.5,6.25,0.0)
              .addChild(new Shape("ShortWall")
                .setGeometry(new Box().setSize(0.25,12.75,64.0))
                .setAppearance(new Appearance().setUSE("AppearanceWall"))))
            .addChild(new Transform("DeepWall").setTranslation(37.5,6.25,0.0)
              .addChild(new Shape().setUSE("ShortWall")))
            .addChild(new Transform("LeftWall").setTranslation(0.0,6.25,-32.0)
              .addChild(new Shape("LongWall")
                .setGeometry(new Box().setSize(75.0,12.75,0.25))
                .setAppearance(new Appearance().setUSE("AppearanceWall"))))
            .addChild(new Transform("RightWall").setTranslation(0.0,6.25,32.0)
              .addChild(new Shape().setUSE("LongWall")))
            .addChild(new Transform("DeepFloor").setRotation(0.0,0.0,1.0,0.1732).setTranslation(32.5,.9,0.0)
              .addChild(new Shape()
                .setGeometry(new Box().setSize(10.152,0.25,64.0))
                .setAppearance(new Appearance().setUSE("AppearanceWall"))))
            .addChild(new Transform("DeepFloor2").setRotation(0.0,0.0,1.0,-0.2085).setTranslation(21.0,1.4,0.0)
              .addChild(new Shape()
                .setGeometry(new Box().setSize(13.288,0.25,64.0))
                .setAppearance(new Appearance().setUSE("AppearanceWall"))))
            .addChild(new Transform("DeepFloor3").setRotation(0.0,0.0,1.0,-0.2783).setTranslation(7.5,4.75,0.0)
              .addChild(new Shape()
                .setGeometry(new Box().setSize(14.560,0.25,64.0))
                .setAppearance(new Appearance().setUSE("AppearanceWall"))))
            .addChild(new Transform("DeepFloor4").setRotation(0.0,0.0,1.0,-0.0476).setTranslation(-10.0,7.25,0.0)
              .addChild(new Shape()
                .setGeometry(new Box().setSize(21.024,0.25,64.0))
                .setAppearance(new Appearance().setUSE("AppearanceWall"))))
            .addChild(new Transform("DeepFloor5").setRotation(0.0,0.0,1.0,-0.0588).setTranslation(-29.0,8.25,0.0)
              .addChild(new Shape()
                .setGeometry(new Box().setSize(17.029,0.25,64.0))
                .setAppearance(new Appearance().setUSE("AppearanceWall"))))))
        .addChild(new Group("IfsPoolGroup")
          .addChild(new Shape()
            .setGeometry(new IndexedFaceSet("IndexedFaceSetPool").setDEF("IndexedFaceSetPool").setConvex(false).setSolid(false).setCoordIndex(new int[] {0,3,7,4,-1,1,5,6,2,-1,4,7,12,8,-1,8,12,13,9,-1,9,13,14,10,-1,10,14,15,11,-1,11,15,6,5,-1,0,1,5,11,10,9,8,4,-1,3,2,6,15,14,13,12,7,-1})
              .setCoord(new Coordinate("PoolPoints").setPoint(new MFVec3f(new double[] {0.0,0.0,0.0,75.0,0.0,0.0,75.0,0.0,64.0,0.0,0.0,64.0,0.0,-4.0,0.0,75.0,-11.0,0.0,75.0,-11.0,64.0,0.0,-4.0,64.0,17.0,-5.0,0.0,38.0,-6.0,0.0,53.0,-10.0,0.0,65.0,-12.75,0.0,17.0,-5.0,64.0,38.0,-6.0,64.0,53.0,-10.0,64.0,65.0,-12.75,64.0}))))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(0.580392,1.0,0.976471)))))
        .addChild(new Group("IfsPoolGroupTextured")
          .addChild(new Shape()
            .addComments(" note that right-hand rule normals point inward ")
            .setGeometry(new IndexedFaceSet("IfsPoolSides").setDEF("IfsPoolSides").setConvex(false).setSolid(false).setCoordIndex(new int[] {0,3,7,4,-1,1,5,6,2,-1,0,4,8,9,10,11,5,1,-1,3,2,6,15,14,13,12,7,-1})
              .setCoord(new Coordinate().setUSE("PoolPoints")))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(0.580392,1.0,0.976471))))
          .addChild(new Shape()
            .addComments(" note that right-hand rule normals point upward ")
            .setGeometry(new IndexedFaceSet("IfsPoolBottom").setDEF("IfsPoolBottom").setConvex(false).setSolid(false).setCoordIndex(new int[] {4,7,12,8,-1,8,12,13,9,-1,9,13,14,10,-1,10,14,15,11,-1,11,15,6,5,-1})
              .setCoord(new Coordinate().setUSE("PoolPoints")))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(0.580392,1.0,0.976471))
              .setTexture(new ImageTexture("PoolDiagram").setUrl(new String[] {"PoolMontereyPeninsulaCollegeDiagram.png","https://www.web3d.org/x3d/content/examples/Savage/Locations/PoolMontereyPeninsulaCollegeDiagram.png"}))
              .setTextureTransform(new TextureTransform("CutUnusedPortionOfImage").setScale(-0.786,0.893).setTranslation(0.135,0.1335)))))
        .addChild(new Group("SimpleElevationGridPoolGroup")
          .addChild(new Shape()
            .addComments(" Add 2 elements in each direction to include the walls ")
            .addComments(" TODO wrong size ")
            .setGeometry(new ElevationGrid().setSolid(false).setXDimension(7).setXSpacing(10).setZDimension(6).setZSpacing(10).setHeight(new double[] {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-4.0,-5.0,-6.0,-10.0,-12.75,0.0,0.0,-4.0,-5.0,-6.0,-10.0,-12.75,0.0,0.0,-4.0,-5.0,-6.0,-10.0,-12.75,0.0,0.0,-4.0,-5.0,-6.0,-10.0,-12.75,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(0.3,0.3,0.7)))))
        .addChild(new Group("DetailedElevationGridPoolGroup")
          .addChild(new Shape()
            .addComments(" Detailed Elevation Grid Pool Edited by C.H. Yang ")
            .setGeometry(new ElevationGrid().setSolid(false).setXDimension(77).setZDimension(65).setHeight(getElevationGrid_7_123_height()))
            .addComments(" TODO detailed ElevationGrid version, perhaps copy/paste numerous values from a spreadsheet ")
            .addComments(" Add 2 elements in each direction to include the walls ")
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(0.3,0.3,0.7))))))
      .addChild(new Transform("ShiftWaterSurfaceDown").setTranslation(0.0,-1.0,0.0)
        .addChild(new Shape()
          .addComments(" note that right-hand rule normals point upward ")
          .setGeometry(new IndexedFaceSet("PoolSurface").setDEF("PoolSurface").setSolid(false).setCoordIndex(new int[] {0,3,2,1,-1})
            .setCoord(new Coordinate().setUSE("PoolPoints")))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(0.2,0.8,0.9).setShininess(1).setTransparency(0.9)))))
      .addComments(" Now add a deck around the edge of the pool to allow WALKing around, include scaled/transformed texture ")
      .addChild(new Group("Sidewalks")
        .addChild(new Shape("BottomSidewalk")
          .addComments(" note that right-hand rule normals point upward ")
          .setGeometry(new IndexedFaceSet().setColorPerVertex(false).setSolid(false).setColorIndex(new int[] {0}).setCoordIndex(new int[] {0,4,7,3,-1})
            .setCoord(new Coordinate("SidewalkPoints").setPoint(new MFVec3f(new double[] {-10.0,0.0,-10.0,0.0,0.0,-10.0,75.0,0.0,-10.0,85.0,0.0,-10.0,-10.0,0.0,0.0,0.0,0.0,0.0,75.0,0.0,0.0,85.0,0.0,0.0,-10.0,0.0,64.0,0.0,0.0,64.0,75.0,0.0,64.0,85.0,0.0,64.0,-10.0,0.0,74.0,0.0,0.0,74.0,75.0,0.0,74.0,85.0,0.0,74.0})))
            .setColor(new Color("SandyColor").setColor(new MFColor(new double[] {0.99,0.99,0.2}))))
          .setAppearance(new Appearance()
            .setTexture(new ImageTexture().setUSE("PoolDiagram"))
            .setTextureTransform(new TextureTransform().setScale(-1.0,1.0).setTranslation(0.0,0.012))))
        .addChild(new Shape("TopSidewalk")
          .addComments(" note that right-hand rule normals point upward, with same relative ordering of points as first sidewalk ")
          .setGeometry(new IndexedFaceSet().setColorPerVertex(false).setSolid(false).setColorIndex(new int[] {0}).setCoordIndex(new int[] {8,12,15,11,-1})
            .setCoord(new Coordinate().setUSE("SidewalkPoints"))
            .setColor(new Color().setUSE("SandyColor")))
          .setAppearance(new Appearance()
            .setTexture(new ImageTexture().setUSE("PoolDiagram"))
            .setTextureTransform(new TextureTransform().setScale(-1.0,1.0).setTranslation(0.0,-0.105))))
        .addChild(new Shape("LeftSidewalk")
          .addComments(" note that right-hand rule normals point upward, with same relative ordering of points as first sidewalk ")
          .setGeometry(new IndexedFaceSet().setColorPerVertex(false).setSolid(false).setColorIndex(new int[] {0}).setCoordIndex(new int[] {6,10,11,7,-1})
            .setCoord(new Coordinate().setUSE("SidewalkPoints"))
            .setColor(new Color().setUSE("SandyColor")))
          .setAppearance(new Appearance()
            .setTexture(new ImageTexture().setUSE("PoolDiagram"))
            .addComments(" Scaling cropped sidewalk area to image: 74' / 64' = 1.15684' / 64' = 1.2666, 95' / 75' = 1.312 ")
            .setTextureTransform(new TextureTransform().setRotation(1.570796).setScale(0.695,0.78).setTranslation(0.15,1.284))))
        .addChild(new Shape("RightSidewalk")
          .addComments(" note that right-hand rule normals point upward, with same relative ordering of points as first sidewalk ")
          .setGeometry(new IndexedFaceSet().setColorPerVertex(false).setSolid(false).setColorIndex(new int[] {0}).setCoordIndex(new int[] {4,8,9,5,-1})
            .setCoord(new Coordinate().setUSE("SidewalkPoints"))
            .setColor(new Color().setUSE("SandyColor")))
          .setAppearance(new Appearance()
            .setTexture(new ImageTexture().setUSE("PoolDiagram"))
            .addComments(" Scaling cropped sidewalk area to image: 74' / 64' = 1.156 ")
            .setTextureTransform(new TextureTransform().setRotation(1.570796).setScale(0.697,0.777).setTranslation(0.1515,-0.0024)))))
      .addComments(" Animation chain: set enabled='true' to see each of the different pool models, one after another ")
      .addChild(new TimeSensor("PoolSwitcherClock").setCycleInterval(24).setEnabled(false).setLoop(true))
      .addChild(new IntegerSequencer("PoolSequencer").setKey(new double[] {0.0,0.2,0.4,0.6,0.8,1.0}).setKeyValue(new int[] {0,1,2,3,4,0}))
      .addChild(new ROUTE().setFromNode("PoolSwitcherClock").setFromField("fraction_changed").setToNode("PoolSequencer").setToField("set_fraction"))
      .addChild(new ROUTE().setFromNode("PoolSequencer").setFromField("value_changed").setToNode("SwitchWhichPool").setToField("whichChoice"))
      .addComments(" TODO Alternatively consider side by side view, perhaps with transformed DEF/USE Viewpoints ")));
            }
            catch (Exception ex)
            {       
                System.err.println ("*** Further hints on X3DJSAIL errors and exceptions at");
                System.err.println ("*** https://www.web3d.org/specifications/java/X3DJSAIL.html");
                throw (ex);
            }
	}
	// end of initialize() method

		/** Define subarrays using type double[] */
		private double[] getElevationGrid_7_123_height_1()
		{
			double[] value = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0};
			return value;
		}
		private double[] getElevationGrid_7_123_height_2()
		{
			double[] value = {0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175};
			return value;
		}
		private double[] getElevationGrid_7_123_height_3()
		{
			double[] value = {-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35};
			return value;
		}
		private double[] getElevationGrid_7_123_height_4()
		{
			double[] value = {-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525};
			return value;
		}
		private double[] getElevationGrid_7_123_height_5()
		{
			double[] value = {-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,-4.0,-4.0625,-4.125,-4.1875,-4.25,-4.3125,-4.375,-4.4375,-4.5,-4.5625,-4.625,-4.6875,-4.75,-4.8125,-4.875,-4.9375,-5.0,-5.05,-5.1,-5.15,-5.2,-5.25,-5.3,-5.35,-5.4,-5.45,-5.5,-5.55,-5.6,-5.65,-5.7,-5.75,-5.8,-5.85,-5.9,-5.95,-5.975,-6.0,-6.2666,-6.5332,-6.7998,-7.0664,-7.333,-7.5996,-7.8662,-8.1328,-8.3994,-8.666,-8.9326,-9.1992,-9.4658,-9.7324,-10.0,-10.25,-10.5,-10.75,-11.0,-11.25,-11.5,-11.75,-12.0,-12.25,-12.5,-12.625,-12.75,-12.575,-12.4,-12.225,-12.05,-11.875,-11.7,-11.525,-11.35,-11.175,-11.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};
			return value;
		}
		private double[] getElevationGrid_7_123_height_6()
		{
			double[] value = {0.0,0.0,0.0,0.0,0.0};
			return value;
		}

		/** Large attribute array: ElevationGrid height field, scene-graph level=7, element #123, 5005 total numbers.
		 * Reassemble split array as single method to improve readability and runnability.
		 * Provide large array values via separate methods, hoping to avoid 'code too large' Java compilation errors. 
		 * Individual Java methods (including aggregated initializations) are limited to 64KB.
		 * @see https://stackoverflow.com/questions/2407912/code-too-large-compilation-error-in-java
		 * @see https://stackoverflow.com/questions/11437905/java-too-many-constants-jvm-error
		 */
		private MFFloat getElevationGrid_7_123_height()
		{
			MFFloat ElevationGrid_7_123_height = new MFFloat()/*2.finalize*/
				.append(new MFFloat(getElevationGrid_7_123_height_1()))
				.append(new MFFloat(getElevationGrid_7_123_height_2()))
				.append(new MFFloat(getElevationGrid_7_123_height_3()))
				.append(new MFFloat(getElevationGrid_7_123_height_4()))
				.append(new MFFloat(getElevationGrid_7_123_height_5()))
				.append(new MFFloat(getElevationGrid_7_123_height_6()));
			return ElevationGrid_7_123_height;
		}

	/** The initialized model object, created within initialize() method. */
	private X3D x3dModel;

	/** 
	 * Provide a 
	 * <a href="https://dzone.com/articles/java-copy-shallow-vs-deep-in-which-you-will-swim" target="_blank">shallow copy</a>
	 * of the X3D model.
	 * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html">X3D</a>
	 * @return PoolMontereyPeninsulaCollege model
	 */
	public X3D getX3dModel()
	{	  
		return x3dModel;
	}
	   
    /** 
     * Default main() method provided for test purposes, uses CommandLine to set global ConfigurationProperties for this object.
     * @param args array of input parameters, provided as arguments
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html#handleArguments-java.lang.String:A-">X3D.handleArguments(args)</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html#validationReport--">X3D.validationReport()</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/CommandLine.html">CommandLine</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/CommandLine.html#USAGE">CommandLine.USAGE</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/ConfigurationProperties.html">ConfigurationProperties</a>
     */
    public static void main(String args[])
    {
        System.out.println("Build this X3D model, showing validation diagnostics...");
        X3D thisExampleX3dModel = new PoolMontereyPeninsulaCollege().getX3dModel();
//      System.out.println("X3D model construction complete.");
	
        // next handle command line arguments
        boolean hasArguments = (args != null) && (args.length > 0);
        boolean validate = true; // default
        boolean argumentsLoadNewModel = false;
        String  fileName = new String();

        if (args != null)
        {
                for (String arg : args)
                {
                        if (arg.toLowerCase().startsWith("-v") || arg.toLowerCase().contains("validate"))
                        {
                                validate = true; // making sure
                        }
                        if (arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_X3D) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_CLASSICVRML) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_X3DB) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_VRML97) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_EXI) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_GZIP) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_ZIP) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_HTML) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_XHTML))
                        {
                                argumentsLoadNewModel = true;
                                fileName = arg;
                        }
                }
        }
        if      (argumentsLoadNewModel)
                System.out.println("WARNING: \"Savage.Locations.MontereyPeninsulaCollege.PoolMontereyPeninsulaCollege\" model invocation is attempting to load file \"" + fileName + "\" instead of simply validating itself... file loading ignored.");
        else if (hasArguments) // if no arguments provided, this method produces usage warning
                thisExampleX3dModel.handleArguments(args);
	
        if (validate)
        {
            //  System.out.println("--- TODO fix duplicated outputs ---"); // omit when duplicated outputs problem is solved/refactored
		String validationResults = thisExampleX3dModel.validationReport();
            //  System.out.println("-----------------------------------"); // omit when duplicated outputs problem is solved/refactored
                System.out.print("Savage.Locations.MontereyPeninsulaCollege.PoolMontereyPeninsulaCollege self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

                // experimental: test X3DJSAIL output files
                // Locations/MontereyPeninsulaCollege/PoolMontereyPeninsulaCollege_JavaExport.* file validation is checked when building X3D Example Archives
                String filenameX3D  = "Locations/MontereyPeninsulaCollege/PoolMontereyPeninsulaCollege_JavaExport.x3d"; 
                String filenameX3DV = "Locations/MontereyPeninsulaCollege/PoolMontereyPeninsulaCollege_JavaExport.x3dv"; 
                String filenameJSON = "Locations/MontereyPeninsulaCollege/PoolMontereyPeninsulaCollege_JavaExport.json";
                thisExampleX3dModel.toFileX3D        (filenameX3D);
                thisExampleX3dModel.toFileClassicVRML(filenameX3DV);
// TODO         thisExampleX3dModel.toFileJSON       (filenameJSON);
        }
    }
}
