package Savage.Buildings.SoccerComplex;

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.Geometry2D.*;
import org.web3d.x3d.jsail.Geometry3D.*;
import org.web3d.x3d.jsail.Grouping.*;
import org.web3d.x3d.jsail.Interpolation.*;
import org.web3d.x3d.jsail.Navigation.*;
import org.web3d.x3d.jsail.Networking.*;
import org.web3d.x3d.jsail.PointingDeviceSensor.*;
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> Complete Soccer Park with stadium, four full-size fields, and 120m x 130m training area with four futsal fields. </p>
 <p> Related links: Catalog page <a href="../../../../Buildings/SoccerComplex/TrainingAreaIndex.html" target="_blank">TrainingArea</a>,  source <a href="../../../../Buildings/SoccerComplex/TrainingArea.java">TrainingArea.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="../../../../Buildings/SoccerComplex/TrainingArea.x3d">TrainingArea.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> Complete Soccer Park with stadium, four full-size fields, and 120m x 130m training area with four futsal fields. </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Capt Beth Welliver </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 13 March 2008 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 20 October 2019 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> Side Board artwork from www.ussoccer.com </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> Stadium Structure and Goal from Savage Archive, <a href="https://www.web3d.org/x3d/content/examples/Savage/Buildings/SoccerStadium/index.html" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/Buildings/SoccerStadium/index.html</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/Buildings/SoccerComplex/TrainingArea.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/Buildings/SoccerComplex/TrainingArea.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="../../../../Buildings/SoccerComplex/../../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 Capt Beth Welliver
 */

public class TrainingArea
{
	/** Default constructor to create this object. */
	public TrainingArea ()
	{
	  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_1)
  .setHead(new head()
    .addComponent(new component().setName("Geometry2D").setLevel(2))
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("TrainingArea.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("Complete Soccer Park with stadium, four full-size fields, and 120m x 130m training area with four futsal fields."))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Capt Beth Welliver"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("13 March 2008"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("20 October 2019"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("Side Board artwork from www.ussoccer.com"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("Stadium Structure and Goal from Savage Archive, https://www.web3d.org/x3d/content/examples/Savage/Buildings/SoccerStadium/index.html"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Savage/Buildings/SoccerComplex/TrainingArea.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("TrainingArea.x3d"))
    .addChild(new Background().setGroundAngle(new double[] {0.0}).setGroundColor(new MFColor(new double[] {0.160784,0.039216,0.0})).setSkyAngle(new double[] {0.1,0.15,1.309,1.571}).setSkyColor(new MFColor(new double[] {0.4,0.4,0.1,0.4,0.4,0.1,0.0,0.1,0.3,0.0,0.2,0.6,0.8,0.8,0.8})))
    .addChild(new Viewpoint("StartingView").setDescription("At Entry Gate").setOrientation(0.0,1.0,0.0,1.57).setPosition(385.0,2.0,-82.5))
    .addChild(new Viewpoint("ComplexOverview").setDescription("Training Area and Stadium").setOrientation(0.1,1.0,0.1,-1.98).setPosition(-150.0,65.0,-75.0))
    .addChild(new Viewpoint().setDescription("Match Fields").setOrientation(.1,1.0,.1,-1.05).setPosition(-150.0,65.0,-50.0))
    .addChild(new Viewpoint().setDescription("Inside Training Area View One").setOrientation(0.0,1.0,0.0,-.78).setPosition(-60.0,2.5,63.0))
    .addChild(new Viewpoint().setDescription("Inside Training Area View Two").setOrientation(0.0,1.0,0.0,2.44).setPosition(55.0,3.0,-65.0))
    .addChild(new Viewpoint().setDescription("Corner of Stadium").setOrientation(0.0,1.0,0.0,3.95).setPosition(154.0,1.65,-38.0))
    .addComments(" <Viewpoint DEF='SpinningStadium' description='Standing at Center Circle of Stadium' orientation='0 1 0 0' position='223 1.5 5'/> ")
    .addChild(new Viewpoint().setDescription("Looking down into Stadium").setOrientation(0.0,1.0,.2,2.35).setPosition(334.0,77.0,-78.0))
    .addComments(" <Viewpoint description='Above Stadium Across Complex' orientation='0.05 .8 .05 1.37' position='650 130 5'/> ")
    .addChild(new Viewpoint().setDescription("Far Away Overview").setOrientation(0.0,1.0,0.0,1.57).setPosition(750.0,130.0,-82.5))
    .addChild(new TimeSensor("MasterTime").setCycleInterval(50))
    .addChild(new OrientationInterpolator("CameraRotation").setKey(new double[] {0.0000,0.0667,0.0889,0.1111,0.1333,0.1556,0.2444,0.251864444444444,0.259284444444444,0.266704444444444,0.274124444444444,0.2815,0.288964444444444,0.296384444444444,0.303804444444444,0.311224444444444,0.3186,0.34,0.4300,0.4600,0.5175,0.5750,0.6325,0.6667,0.6937,0.7207,0.7556,0.8222,0.822422222222222,0.822622222222222,0.8889,1.0000}).setKeyValue(new MFRotation(new double[] {0.00,1.00,0.00,1.57,0.00,1.00,0.00,0.8275,0.00,1.00,0.00,0.085,0.00,1.00,0.00,-0.6575,0.00,1.00,0.00,-1.98,0.10,1.00,0.00,-1.40,0.00,1.00,0.00,-0.78,0.00,1.00,0.00,-0.57066,0.00,1.00,0.00,-0.36132,0.00,1.00,0.00,-0.15198,0.00,1.00,0.00,0.0573599999999999,0.00,1.00,0.00,0.2667,0.00,1.00,0.00,0.47604,0.00,1.00,0.00,0.68538,0.00,1.00,0.00,0.89472,0.00,1.00,0.00,1.10406,0.00,1.00,0.00,1.3134,0.00,1.00,0.00,2.36,0.00,1.00,0.00,3.95,0.00,1.00,0.00,0.00,0.00,1.00,0.00,1.57,0.00,1.00,0.00,3.14,0.00,1.00,0.00,4.71,0.00,1.00,0.00,6.28,0.0,1.0,0.067,4.97,0.0,1.0,0.134,3.66,0.0,1.0,0.2,2.35,0.05,0.8,0.05,1.37,0.0333,0.867,0.0333,1.4367,0.0166,0.934,0.0166,1.5034,0.00,1.00,0.00,1.57,0.00,0.00,0.00,1.57})))
    .addChild(new ROUTE().setFromNode("MasterTime").setFromField("fraction_changed").setToNode("CameraRotation").setToField("set_fraction"))
    .addChild(new ROUTE().setFromNode("CameraRotation").setFromField("value_changed").setToNode("StartingView").setToField("orientation"))
    .addChild(new PositionInterpolator("CameraPosition").setKey(new double[] {0.0000,0.0222,0.1333,0.1422,0.1511,0.1600,0.1689,0.1778,0.2000,0.2444,0.2815,0.3186,0.3556,0.4300,0.4600,0.6667,0.8222,0.8500,0.8889,1.0000}).setKeyValue(new MFVec3f(new double[] {385.00,1.00,-82.50,385.00,2.5,-82.50,-112.00,8.00,-75.00,-116.60,14.40,-74.40,-121.20,20.80,-73.80,-125.80,27.20,-73.20,-130.40,33.60,-72.60,-135.00,40.00,-72.00,-150.00,65.00,-70.00,-60.00,2.00,63.00,-30.00,2.30,25.00,25.00,2.60,-25.00,55.00,3.00,-65.00,154.00,1.65,-38.00,223.00,1.50,5.00,223.00,1.50,5.00,334.00,77.00,-78.00,750.00,150.00,-82.50,750.00,150.00,-82.50,385.00,1.00,-82.50})))
    .addChild(new ROUTE().setFromNode("MasterTime").setFromField("fraction_changed").setToNode("CameraPosition").setToField("set_fraction"))
    .addChild(new ROUTE().setFromNode("CameraPosition").setFromField("value_changed").setToNode("StartingView").setToField("position"))
    .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(365.0,2.0,-80.0)
      .addChild(new Group("Sign")
        .addChild(new TouchSensor("TouchSign").setDescription("Touch sign to start tour"))
        .addChild(new BooleanFilter("FilterSign"))
        .addChild(new TimeTrigger("TriggerSign"))
        .addChild(new ROUTE().setFromNode("TouchSign").setFromField("isActive").setToNode("FilterSign").setToField("set_boolean"))
        .addChild(new ROUTE().setFromNode("FilterSign").setFromField("inputTrue").setToNode("TriggerSign").setToField("set_boolean"))
        .addChild(new ROUTE().setFromNode("TriggerSign").setFromField("triggerTime").setToNode("MasterTime").setToField("startTime"))
        .addChild(new Group("WholePole")
          .addChild(new Shape("Pole")
            .setGeometry(new Cylinder().setBottom(false).setHeight(4).setRadius(0.3).setSolid(false))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setAmbientIntensity(0.249999).setDiffuseColor(0.12549,0.12549,0.12549).setEmissiveColor(0.541176,0.541176,0.541176).setShininess(0.1).setSpecularColor(0.52549,0.52549,0.52549))))
          .addChild(new Transform().setScale(.55,.55,.55).setTranslation(0.0,2.1,0.0)
            .addChild(new Inline().setUrl(new String[] {"../SoccerStadium/SoccerBall.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/SoccerStadium/SoccerBall.x3d"}))))
        .addChild(new Transform().setTranslation(5.0,0.0,0.0)
          .addChild(new Group().setUSE("WholePole")))
        .addChild(new Transform().setTranslation(2.5,1.4,0.0)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(0.058824,0.098039,1.0).setEmissiveColor(0.078431,0.090196,1.0)))
            .setGeometry(new Box().setSize(4.4,1.2,.2)))
          .addChild(new Transform().setTranslation(0.0,0.0,.1)
            .addChild(new Shape()
              .setAppearance(new Appearance()
                .setTexture(new ImageTexture().setUrl(new String[] {"WelcomeSign.jpg","https://www.web3d.org/x3d/content/examples/Savage/Buildings/SoccerComplex/WelcomeSign.jpg"})))
              .setGeometry(new Box().setSize(4.38,1.18,.05)))))))
    .addChild(new Transform().setTranslation(175.0,-.2,-80.0)
      .addChild(new Group("GroundBox")
        .addChild(new Shape()
          .setGeometry(new Box().setSize(550.0,.01,450.0))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(0.0,0.901961,0.007843))))))
    .addChild(new Group("TrainingArea")
      .addChild(new Shape()
        .setGeometry(new Box("TrainingSurface").setSize(120.0,0.1,130.0))
        .setAppearance(new Appearance()
          .setTexture(new ImageTexture("SportTurf").setUrl(new String[] {"blueTurf.jpg","https://www.web3d.org/x3d/content/examples/Savage/Buildings/SoccerComplex/blueTurf.jpg"}))))
      .addChild(new Group("OneTwentyBoundary")
        .addChild(new Transform().setTranslation(-40.0,1.0,65.0)
          .addChild(new Inline("Sideboard").setUrl(new String[] {"SideBoards.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/SoccerComplex/SideBoards.x3d"})))
        .addChild(new Transform().setTranslation(-20.0,1.0,65.0)
          .addChild(new Inline().setUSE("Sideboard")))
        .addChild(new Transform().setTranslation(0.0,1.0,65.0)
          .addChild(new Inline().setUSE("Sideboard")))
        .addChild(new Transform().setTranslation(20.0,1.0,65.0)
          .addChild(new Inline().setUSE("Sideboard")))
        .addChild(new Transform().setTranslation(40.0,1.0,65.0)
          .addChild(new Inline().setUSE("Sideboard")))
        .addChild(new Transform().setTranslation(60.0,1.0,65.0)
          .addChild(new Inline().setUSE("Sideboard"))))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,3.14)
        .addChild(new Group().setUSE("OneTwentyBoundary")))
      .addChild(new Group("OneThirtyBoundary")
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(-60.0,1.0,40.0)
          .addChild(new Inline().setUSE("Sideboard")))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(-60.0,1.0,20.0)
          .addChild(new Inline().setUSE("Sideboard")))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(-60.0,1.0,0.0)
          .addChild(new Inline().setUSE("Sideboard")))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(-60.0,1.0,-20.0)
          .addChild(new Inline().setUSE("Sideboard")))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(-60.0,1.0,-40.0)
          .addChild(new Inline().setUSE("Sideboard")))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(-60.0,1.0,-60.0)
          .addChild(new Inline().setUSE("Sideboard"))))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,3.14)
        .addChild(new Group().setUSE("OneThirtyBoundary")))
      .addChild(new Group("GridLines")
        .addChild(new Transform("FiveByFiveGrid")
          .addChild(new Shape("FiveBoxEdge")
            .setAppearance(new Appearance("Line")
              .setMaterial(new Material().setDiffuseColor(1.0,1.0,1.0).setEmissiveColor(.5,.5,.5)))
            .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {-.05,.05,.05,.05,.05,-.05,-.05,-.05})).setSpine(new MFVec3f(new double[] {-50.0,.01,55.0,-40.0,.01,55.0,-40.0,.01,35.0,-50.0,.01,35.0,-50.0,.01,55.0}))))
          .addChild(new Shape("InsideLongLine")
            .setAppearance(new Appearance().setUSE("Line"))
            .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {-.05,.05,.05,.05,.05,-.05,-.05,-.05})).setSpine(new MFVec3f(new double[] {-45.0,.01,35.0,-45.0,.01,55.0}))))
          .addChild(new Shape("InsideShortLine")
            .setAppearance(new Appearance().setUSE("Line"))
            .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {-.05,.05,.05,.05,.05,-.05,-.05,-.05})).setSpine(new MFVec3f(new double[] {-50.0,.01,40.0,-40.0,.01,40.0}))))
          .addChild(new Transform().setTranslation(0.0,0.0,5.0)
            .addChild(new Shape().setUSE("InsideShortLine")))
          .addChild(new Transform().setTranslation(0.0,0.0,10.0)
            .addChild(new Shape().setUSE("InsideShortLine"))))
        .addChild(new Transform("TenByTenGrid")
          .addChild(new Shape("TenBoxEdge")
            .setAppearance(new Appearance().setUSE("Line"))
            .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {-.05,.05,.05,.05,.05,-.05,-.05,-.05})).setSpine(new MFVec3f(new double[] {-30.0,.01,55.0,-10.0,.01,55.0,-10.0,.01,35.0,-30.0,.01,35.0,-30.0,.01,55.0}))))
          .addChild(new Shape("InsideTenGrid")
            .setAppearance(new Appearance().setUSE("Line"))
            .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {-.05,.05,.05,.05,.05,-.05,-.05,-.05})).setSpine(new MFVec3f(new double[] {-30.0,.01,45.0,-10.0,.01,45.0}))))
          .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(-65.0,0.1,25.0)
            .addChild(new Shape().setUSE("InsideTenGrid"))))
        .addChild(new Transform("FutsalField")
          .addChild(new Shape("FutsalBoundary")
            .setAppearance(new Appearance().setUSE("Line"))
            .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {-.05,.05,.05,.05,.05,-.05,-.05,-.05})).setSpine(new MFVec3f(new double[] {10.0,.01,55.0,50.0,.01,55.0,50.0,.01,35.0,10.0,.01,35.0,10.0,.01,55.0}))))
          .addChild(new Shape("FutsalMidField")
            .setAppearance(new Appearance().setUSE("Line"))
            .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {-.05,.05,.05,.05,.05,-.05,-.05,-.05})).setSpine(new MFVec3f(new double[] {30.0,.01,55.0,30.0,.01,35.0}))))
          .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57).setTranslation(30.0,.01,45.0)
            .addChild(new Shape("FutsalCenterCircle")
              .setAppearance(new Appearance().setUSE("Line"))
              .setGeometry(new Circle2D().setRadius(3))))
          .addChild(new Transform().setRotation(0.0,1.0,0.0,-1.57).setScale(.3,.6,.4).setTranslation(50.0,0.0,45.0)
            .addChild(new Inline("FutsalGoal").setUrl(new String[] {"../SoccerStadium/GoalPost.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/SoccerStadium/GoalPost.x3d"})))
          .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(10.0,0.0,45.0)
            .addChild(new Inline().setUSE("FutsalGoal")))))
      .addChild(new Transform().setTranslation(0.0,0.0,-30.0)
        .addChild(new Group().setUSE("GridLines")))
      .addChild(new Transform().setTranslation(0.0,0.0,-60.0)
        .addChild(new Group().setUSE("GridLines")))
      .addChild(new Transform().setTranslation(0.0,0.0,-90.0)
        .addChild(new Group().setUSE("GridLines"))))
    .addChild(new Group("Fields")
      .addChild(new Transform().setTranslation(-55.0,0.0,-215.0)
        .addChild(new Group("FullField")
          .addChild(new Group("PitchOutline")
            .addChild(new Transform().setTranslation(37.5,0.0,55.0)
              .addChild(new Shape()
                .setGeometry(new Box("Pitch").setSize(85.0,0.01,120.0).setSolid(false))
                .setAppearance(new Appearance("Grass")
                  .setMaterial(new Material().setDiffuseColor(0.0,0.419608,0.015686).setEmissiveColor(0.2,0.321569,0.0))))))
          .addChild(new Group("Lines")
            .addChild(new Transform().setTranslation(37.5,0.01,0.0)
              .addChild(new Shape()
                .setGeometry(new Box("Endline").setSize(75.0,.02,.12).setSolid(false))
                .setAppearance(new Appearance("LineStyle")
                  .setMaterial(new Material().setDiffuseColor(1.0,1.0,1.0)))))
            .addChild(new Transform().setTranslation(0.0,0.01,27.5)
              .addChild(new Shape()
                .setGeometry(new Box("Sideline").setSize(.12,.02,55.0))
                .setAppearance(new Appearance().setUSE("LineStyle"))))
            .addChild(new Transform().setTranslation(75.0,0.01,27.5)
              .addChild(new Shape()
                .setGeometry(new Box().setUSE("Sideline"))
                .setAppearance(new Appearance().setUSE("LineStyle"))))
            .addChild(new Transform().setTranslation(17.34,0.01,8.25)
              .addChild(new Shape()
                .setGeometry(new Box("Side18").setSize(.12,.02,16.5).setSolid(false))
                .setAppearance(new Appearance().setUSE("LineStyle"))))
            .addChild(new Transform().setTranslation(57.66,0.01,8.25)
              .addChild(new Shape()
                .setGeometry(new Box().setUSE("Side18"))
                .setAppearance(new Appearance().setUSE("LineStyle"))))
            .addChild(new Transform().setTranslation(37.5,0.01,16.5)
              .addChild(new Shape()
                .setGeometry(new Box("Top18").setSize(40.32,.02,.12).setSolid(false))
                .setAppearance(new Appearance().setUSE("LineStyle"))))
            .addChild(new Transform("PenaltyArc").setRotation(0.0,-1.0,0.0,0.93).setTranslation(37.5,.01,9.14)
              .addChild(new Shape()
                .setAppearance(new Appearance().setUSE("LineStyle"))
                .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {-0.05,0.05,0.05,0.05,0.05,-0.05,-0.05,-0.05})).setSpine(getExtrusion_9_176_spine()))))
            .addChild(new Transform().setTranslation(28.34,0.01,2.75)
              .addChild(new Shape()
                .setGeometry(new Box("Side6").setSize(.12,.02,5.5))
                .setAppearance(new Appearance().setUSE("LineStyle"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57).setTranslation(37.5,0.01,11.0)
              .addChild(new Shape()
                .setAppearance(new Appearance().setUSE("LineStyle"))
                .setGeometry(new Disk2D("PenaltySpot").setOuterRadius(0.12))))
            .addChild(new Transform().setTranslation(46.66,0.01,2.75)
              .addChild(new Shape()
                .setGeometry(new Box().setUSE("Side6"))
                .setAppearance(new Appearance().setUSE("LineStyle"))))
            .addChild(new Transform().setTranslation(37.5,0.01,5.5)
              .addChild(new Shape()
                .setGeometry(new Box("Top6").setSize(18.32,.02,.12))
                .setAppearance(new Appearance().setUSE("LineStyle"))))
            .addChild(new Transform().setTranslation(37.5,0.01,55.0)
              .addChild(new Shape()
                .setGeometry(new Box("Midfield").setSize(75.0,.03,.12))
                .setAppearance(new Appearance().setUSE("LineStyle"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57)
              .addChild(new Transform().setRotation(0.0,1.0,0.0,3.14)
                .addChild(new Shape()
                  .setGeometry(new Arc2D("CornerArc").setEndAngle(0).setStartAngle(1.57))
                  .setAppearance(new Appearance().setUSE("LineStyle")))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57).setTranslation(75.0,0.01,0.0)
              .addChild(new Shape()
                .setGeometry(new Arc2D().setUSE("CornerArc"))
                .setAppearance(new Appearance().setUSE("Line")))))
          .addChild(new Transform().setRotation(0.0,1.0,0.0,3.14).setTranslation(75.0,0.01,110.0)
            .addChild(new Group().setUSE("Lines")))
          .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57).setTranslation(37.5,0.01,55.0)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("LineStyle"))
              .setGeometry(new Circle2D().setRadius(9.15))))
          .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57).setTranslation(37.5,0.01,55.0)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("LineStyle"))
              .setGeometry(new Disk2D("CenterSpot").setOuterRadius(0.12))))
          .addChild(new Group("Goal")
            .addComments(" Inline the goal from Savage Archive ")
            .addChild(new Transform().setTranslation(37.5,0.0,0.0)
              .addChild(new Inline("GoalPost").setUrl(new String[] {"../SoccerStadium/GoalPost.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/SoccerStadium/GoalPost.x3d"})))
            .addChild(new Transform().setRotation(0.0,1.0,0.0,3.14).setTranslation(37.5,0.0,110.0)
              .addChild(new Inline().setUSE("GoalPost"))))))
      .addChild(new Transform().setTranslation(45.0,0.0,-215.0)
        .addChild(new Group().setUSE("FullField")))
      .addChild(new Transform().setTranslation(150.0,0.0,-215.0)
        .addChild(new Group().setUSE("FullField")))
      .addChild(new Transform().setTranslation(255.0,0.0,-215.0)
        .addChild(new Group().setUSE("FullField"))))
    .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(200.0,0.0,307.0)
      .addChild(new Group("MainStadium")
        .addChild(new Transform().setRotation(0.0,1.0,0.0,3.14).setScale(1.2,1.0,1.1).setTranslation(300.0,0.0,20.0)
          .addChild(new Inline().setUrl(new String[] {"StadiumStructure.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/SoccerComplex/StadiumStructure.x3d"})))
        .addChild(new Transform().setTranslation(262.0,0.0,-35.0)
          .addChild(new Group().setUSE("FullField")))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(277.0,0.0,20.0)
          .addChild(new Group().setUSE("OneTwentyBoundary")))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(192.0,0.0,20.0)
          .addChild(new Group().setUSE("OneTwentyBoundary")))
        .addChild(new Group("EndlineBoards")
          .addChild(new Transform().setTranslation(342.0,1.0,80.0)
            .addChild(new Inline().setUSE("Sideboard")))
          .addChild(new Transform().setTranslation(322.0,1.0,80.0)
            .addChild(new Inline().setUSE("Sideboard")))
          .addChild(new Transform().setTranslation(302.0,1.0,80.0)
            .addChild(new Inline().setUSE("Sideboard")))
          .addChild(new Transform().setTranslation(282.0,1.0,80.0)
            .addChild(new Inline().setUSE("Sideboard"))))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,3.14).setTranslation(599.0,0.0,40.5)
          .addChild(new Group().setUSE("EndlineBoards")))))
    .addChild(new Group("Sidewalks")
      .addChild(new Shape()
        .setAppearance(new Appearance("Asphault")
          .setMaterial(new Material().setDiffuseColor(0.058824,0.098039,0.101961).setEmissiveColor(0.121569,0.2,0.2)))
        .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {2.5,.05,-2.5,.05,-2.5,-.05,2.5,-.05})).setSpine(new MFVec3f(new double[] {-70.0,.01,-82.5,350.0,.01,-82.5,350.0,.01,-250.0,-70.0,.01,-250.0,-70.0,.01,100.0,350.0,.01,100.0,350.0,.01,-82.5}))))
      .addChild(new Shape()
        .setAppearance(new Appearance().setUSE("Asphault"))
        .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {2.5,.05,-2.5,.05,-2.5,-.05,2.5,-.05})).setSpine(new MFVec3f(new double[] {350.0,.01,-82.5,375.0,.01,-82.5}))))
      .addChild(new Shape()
        .setAppearance(new Appearance().setUSE("Asphault"))
        .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {2.5,.05,-2.5,.05,-2.5,-.05,2.5,-.05})).setSpine(new MFVec3f(new double[] {350.0,.01,-82.5,350.0,.01,-250.0}))))
      .addChild(new Shape()
        .setAppearance(new Appearance().setUSE("Asphault"))
        .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {2.5,.05,-2.5,.05,-2.5,-.05,2.5,-.05})).setSpine(new MFVec3f(new double[] {60.0,.01,63.0,85.0,.01,63.0}))))
      .addChild(new Shape()
        .setAppearance(new Appearance().setUSE("Asphault"))
        .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {2.5,.05,-2.5,.05,-2.5,-.05,2.5,-.05})).setSpine(new MFVec3f(new double[] {60.0,.01,-62.0,85.0,.01,-62.0}))))
      .addChild(new Shape()
        .setAppearance(new Appearance().setUSE("Asphault"))
        .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {2.5,.05,-2.5,.05,-2.5,-.05,2.5,-.05})).setSpine(new MFVec3f(new double[] {-70.0,.01,-62.0,-60.0,.01,-62.0}))))
      .addChild(new Shape()
        .setAppearance(new Appearance().setUSE("Asphault"))
        .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {2.5,.05,-2.5,.05,-2.5,-.05,2.5,-.05})).setSpine(new MFVec3f(new double[] {-70.0,.01,62.0,-60.0,.01,62.0})))))
    .addChild(new Group("Courtyard")
      .addChild(new Transform().setTranslation(110.0,0.0,5.0)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setTexture(new ImageTexture("Concrete").setUrl(new String[] {"concreteTwo.jpg","https://www.web3d.org/x3d/content/examples/Savage/Buildings/SoccerComplex/concreteTwo.jpg"})))
          .setGeometry(new Box().setSize(100.0,.1,100.0))))
      .addChild(new Transform().setTranslation(100.0,-.1,75.0)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setTexture(new ImageTexture().setUSE("Concrete")))
          .setGeometry(new Box().setSize(30.0,.1,45.0))))
      .addChild(new Transform().setTranslation(100.0,-.1,-61.0)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setTexture(new ImageTexture().setUSE("Concrete")))
          .setGeometry(new Box().setSize(30.0,.1,39.0)))))
    .addChild(new Transform().setTranslation(-80.0,1.5,101.0)
      .addChild(new Group("PineTrees")
        .addChild(new Inline("Pine").setUrl(new String[] {"PineTrees.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/SoccerComplex/PineTrees.x3d"}))))
    .addChild(new Group("DoubleRowTrees")
      .addChild(new Group("LongRowTrees")
        .addChild(new Group("RowTrees")
          .addChild(new Transform().setTranslation(-80.0,1.5,91.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,81.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,71.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,61.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,51.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,41.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,31.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,21.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,11.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,1.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,-11.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,-21.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,-31.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,-41.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,-51.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,-61.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,-71.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,-81.0)
            .addChild(new Group().setUSE("PineTrees"))))
        .addChild(new Transform().setTranslation(0.0,0.0,-170.0)
          .addChild(new Group().setUSE("RowTrees"))))
      .addChild(new Transform().setTranslation(-5.0,0.0,5.0)
        .addChild(new Group().setUSE("LongRowTrees"))))
    .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(165.0,0.0,30.0)
      .addChild(new Group().setUSE("DoubleRowTrees")))
    .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(165.0,0.0,-345.0)
      .addChild(new Group().setUSE("DoubleRowTrees")))
    .addChild(new Group("LastTrees")
      .addChild(new Group("RemainingSideTrees")
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(255.0,0.0,30.0)
          .addChild(new Transform().setTranslation(-80.0,1.5,111.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,101.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,91.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,81.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,71.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,61.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,51.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,41.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,31.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,21.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(-80.0,1.5,11.0)
            .addChild(new Group().setUSE("PineTrees")))))
      .addChild(new Transform().setTranslation(5.0,0.0,5.0)
        .addChild(new Group().setUSE("RemainingSideTrees"))))
    .addChild(new Transform().setTranslation(0.0,0.0,-375.0)
      .addChild(new Group().setUSE("LastTrees")))
    .addChild(new Group("DoubleFrontRow")
      .addChild(new Group("FullFrontTrees")
        .addChild(new Group("FrontTrees")
          .addChild(new Transform().setTranslation(365.0,1.5,91.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(365.0,1.5,81.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(365.0,1.5,71.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(365.0,1.5,61.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(365.0,1.5,51.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(365.0,1.5,41.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(365.0,1.5,31.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(365.0,1.5,21.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(365.0,1.5,11.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(365.0,1.5,1.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(365.0,1.5,-11.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(365.0,1.5,-21.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(365.0,1.5,-31.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(365.0,1.5,-41.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(365.0,1.5,-51.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(365.0,1.5,-61.0)
            .addChild(new Group().setUSE("PineTrees")))
          .addChild(new Transform().setTranslation(365.0,1.5,-71.0)
            .addChild(new Group().setUSE("PineTrees"))))
        .addChild(new Transform().setTranslation(0.0,0.0,-190.0)
          .addChild(new Group().setUSE("FrontTrees"))))
      .addChild(new Transform().setTranslation(5.0,0.0,5.0)
        .addChild(new Group().setUSE("FullFrontTrees")))));
            }
            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[] getExtrusion_9_176_spine_1()
		{
			double[] value = {9.1440,0.0,0.0,9.1433,0.0,0.1163,9.1410,0.0,0.2326,9.1373,0.0,0.3489,9.1322,0.0,0.4651,9.1255,0.0,0.5812,9.1174,0.0,0.6972,9.1078,0.0,0.8131,9.0967,0.0,0.9289,9.0841,0.0,1.0446,9.0701,0.0,1.1600,9.0546,0.0,1.2753,9.0377,0.0,1.3904,9.0193,0.0,1.5052,8.9994,0.0,1.6198,8.9780,0.0,1.7342,8.9553,0.0,1.8482,8.9310,0.0,1.9620,8.9053,0.0,2.0755,8.8782,0.0,2.1886,8.8497,0.0,2.3013,8.8197,0.0,2.4137,8.7883,0.0,2.5257,8.7554,0.0,2.6373,8.7212,0.0,2.7484,8.6855,0.0,2.8591,8.6484,0.0,2.9694,8.6100,0.0,3.0792,8.5701,0.0,3.1884,8.5288,0.0,3.2972,8.4862,0.0,3.4054,8.4422,0.0,3.5131,8.3968,0.0,3.6202,8.3501,0.0,3.7267,8.3020,0.0,3.8326,8.2526,0.0,3.9379,8.2019,0.0,4.0426,8.1498,0.0,4.1466,8.0964,0.0,4.2499,8.0416,0.0,4.3525,7.9856,0.0,4.4545,7.9283,0.0,4.5557,7.8697,0.0,4.6562,7.8099,0.0,4.7559,7.7487,0.0,4.8549,7.6864,0.0,4.9530,7.6227,0.0,5.0504,7.5579,0.0,5.1470,7.4918,0.0,5.2427,7.4245,0.0,5.3376,7.3560,0.0,5.4316,7.2863,0.0,5.5247,7.2155,0.0,5.6169,7.1434,0.0,5.7083,7.0702,0.0,5.7987,6.9959,0.0,5.8881,6.9204,0.0,5.9766,6.8439,0.0,6.0642,6.7662,0.0,6.1508,6.6874,0.0,6.2363,6.6075,0.0,6.3209,6.5266,0.0,6.4044,6.4446,0.0,6.4869,6.3615,0.0,6.5684,6.2775,0.0,6.6488,6.1924,0.0,6.7281,6.1063,0.0,6.8063,6.0192,0.0,6.8834,5.9312,0.0,6.9594,5.8422,0.0,7.0343,5.7522,0.0,7.1081,5.6614,0.0,7.1807,5.5696,0.0,7.2521,5.4769,0.0,7.3223,5.3833,0.0,7.3914,5.2888,0.0,7.4593,5.1935,0.0,7.5260,5.0974,0.0,7.5914,5.0004,0.0,7.6556,4.9026,0.0,7.7186,4.8040,0.0,7.7804,4.7047,0.0,7.8409,4.6045,0.0,7.9001,4.5037,0.0,7.9580,4.4021,0.0,8.0146,4.2998,0.0,8.0700,4.1968,0.0,8.1240,4.0931,0.0,8.1768,3.9888,0.0,8.2282,3.8838,0.0,8.2782,3.7782,0.0,8.3270,3.6719,0.0,8.3743,3.5651,0.0,8.4204,3.4577,0.0,8.4650,3.3498,0.0,8.5083,3.2413,0.0,8.5503,3.1322,0.0,8.5908,3.0227,0.0,8.6299,2.9127,0.0,8.6677,2.8022,0.0,8.7040};
			return value;
		}
		private double[] getExtrusion_9_176_spine_2()
		{
			double[] value = {2.6913,0.0,8.7390};
			return value;
		}

		/** Large attribute array: Extrusion spine field, scene-graph level=9, element #176, 303 total numbers made up of 101 3-tuple values.
		 * 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 MFVec3f getExtrusion_9_176_spine()
		{
			MFVec3f Extrusion_9_176_spine = new MFVec3f()/*2.finalize*/
				.append(new MFVec3f(getExtrusion_9_176_spine_1()))
				.append(new MFVec3f(getExtrusion_9_176_spine_2()));
			return Extrusion_9_176_spine;
		}

	/** 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 TrainingArea 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 TrainingArea().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.Buildings.SoccerComplex.TrainingArea\" 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.Buildings.SoccerComplex.TrainingArea self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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