package Savage.AmphibiousVehicles.LCAC;

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

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> Landing Craft Air Cushioned (LCAC) amphibious assault vehicle. Carrying capacity is 60 to 75 tons. </p>
 <p> Related links: Catalog page <a href="../../../../AmphibiousVehicles/LCAC/LCACIndex.html" target="_blank">LCAC</a>,  source <a href="../../../../AmphibiousVehicles/LCAC/LCAC.java">LCAC.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="../../../../AmphibiousVehicles/LCAC/LCAC.x3d">LCAC.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> Landing Craft Air Cushioned (LCAC) amphibious assault vehicle. Carrying capacity is 60 to 75 tons. </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Jeffrey Weekley </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 22 June 2001 </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> <a href="../../../../AmphibiousVehicles/LCAC/lcac.pdf">lcac.pdf</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://www.fas.org/man/dod-101/sys/ship/lcac.htm" target="_blank">https://www.fas.org/man/dod-101/sys/ship/lcac.htm</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> lsd-44_990829-N-9593R-002.jpg </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="http://www.hazegray.org/features/nato/us/lcac" target="_blank">http://www.hazegray.org/features/nato/us/lcac</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://www.fas.org/man/dod-101/sys/ship/lsd-44_990829-N-9593R-002.jpg" target="_blank">https://www.fas.org/man/dod-101/sys/ship/lsd-44_990829-N-9593R-002.jpg</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> lcac-kb97_8.jpg </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://www.fas.org/man/dod-101/sys/ship/lcac-kb97_8.jpg" target="_blank">https://www.fas.org/man/dod-101/sys/ship/lcac-kb97_8.jpg</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> lcac-dvic076.jpg </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://www.fas.org/man/dod-101/sys/ship/lcac-dvic076.jpg" target="_blank">https://www.fas.org/man/dod-101/sys/ship/lcac-dvic076.jpg</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="http://www.surfpac.navy.mil/photorelease/2001/01-008LCAC.htm" target="_blank">http://www.surfpac.navy.mil/photorelease/2001/01-008LCAC.htm</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="http://www.surfpac.navy.mil/photorelease/2001/UssBoxerApril01.3.htm" target="_blank">http://www.surfpac.navy.mil/photorelease/2001/UssBoxerApril01.3.htm</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/AmphibiousVehicles/LCAC/LCAC.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/LCAC.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> subject </i> </td>
			<td> LCAC Pilot House </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> X3D-Edit 3.2, <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="../../../../AmphibiousVehicles/LCAC/../../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 Jeffrey Weekley
 */

public class LCAC
{
	/** Default constructor to create this object. */
	public LCAC ()
	{
	  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_0)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("LCAC.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("Landing Craft Air Cushioned (LCAC) amphibious assault vehicle. Carrying capacity is 60 to 75 tons."))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Jeffrey Weekley"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("22 June 2001"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("20 October 2019"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("lcac.pdf"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://www.fas.org/man/dod-101/sys/ship/lcac.htm"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("lsd-44_990829-N-9593R-002.jpg"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("http://www.hazegray.org/features/nato/us/lcac"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://www.fas.org/man/dod-101/sys/ship/lsd-44_990829-N-9593R-002.jpg"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("lcac-kb97_8.jpg"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://www.fas.org/man/dod-101/sys/ship/lcac-kb97_8.jpg"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("lcac-dvic076.jpg"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://www.fas.org/man/dod-101/sys/ship/lcac-dvic076.jpg"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("http://www.surfpac.navy.mil/photorelease/2001/01-008LCAC.htm"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("http://www.surfpac.navy.mil/photorelease/2001/UssBoxerApril01.3.htm"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/LCAC.x3d"))
    .addMeta(new meta().setName(meta.NAME_SUBJECT    ).setContent("LCAC Pilot House"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../../license.html")))
  .setScene(new Scene()
    .addChild(new Viewpoint().setDescription("LCAC").setPosition(0.0,0.0,50.0))
    .addChild(new NavigationInfo().setType(new String[] {"EXAMINE","FLY","ANY"}))
    .addChild(new Background("OpenOcean").setGroundAngle(new double[] {0.05,1.309,1.570796}).setGroundColor(new MFColor(new double[] {0.0,0.0,0.0,0.0,0.2,0.4,0.05,0.25,0.6,0.1,0.2,0.4})).setSkyAngle(new double[] {0.05,0.1,1.309,1.571}).setSkyColor(new MFColor(new double[] {0.8,0.8,0.2,0.1,0.1,0.6,0.1,0.1,0.6,0.1,0.25,0.8,0.6,0.6,0.9})))
    .addChild(new Background("SandyShallowBottom").setGroundAngle(new double[] {0.05,1.52,1.56,1.570796}).setGroundColor(new MFColor(new double[] {0.2,0.2,0.0,0.3,0.3,0.0,0.5,0.5,0.3,0.1,0.3,0.4,0.0,0.2,0.4})).setSkyAngle(new double[] {0.05,0.1,1.309,1.571}).setSkyColor(new MFColor(new double[] {0.8,0.8,0.2,0.1,0.1,0.6,0.1,0.1,0.6,0.1,0.25,0.8,0.6,0.6,0.9})))
    .addComments(" TODO use ViewpointGroup to achieve LOD effect for Viewpoints ")
    .addChild(new Group("Viewpoints")
      .addChild(new Viewpoint().setDescription("LCAC Overhead").setOrientation(.546,.632,.549,4.2563).setPosition(-9.6,53.4,0.0))
      .addChild(new Viewpoint().setDescription("LCAC from Above and Slightly Behind").setOrientation(-.564,-.816,-.127,.8298).setPosition(-28.9,22.5,34.0))
      .addChild(new Viewpoint().setDescription("Above in Front").setOrientation(-.101,.989,.107,1.5603).setPosition(45.4,11.7,.9))
      .addChild(new Viewpoint().setDescription("Pilot House").setOrientation(-.311,.922,.23,1.1436).setPosition(18.6,5.4,10.1))
      .addChild(new Viewpoint().setDescription("Inside Pilot House Looking Forward").setOrientation(0.0,-1.0,0.0,1.476).setPosition(9.9,3.9,5.4))
      .addChild(new Viewpoint().setDescription("Crew House").setOrientation(-.135,.982,.134,.8067).setPosition(15.0,3.2,1.6))
      .addChild(new Viewpoint().setDescription("Life Boat and Mast").setOrientation(0.042,.991,.125,3.7877).setPosition(5.8,5.8,-11.4))
      .addChild(new Viewpoint().setDescription("Inside Crew House").setOrientation(0.0,1.0,0.0,3.5433).setPosition(11.0,2.2,-6.3))
      .addChild(new Viewpoint().setDescription("Above Cargo Area").setOrientation(-.249,-.939,-.237,1.5847).setPosition(2.5,7.8,-.4))
      .addChild(new Viewpoint().setDescription("Pilot House and Blower").setOrientation(0.048,.994,0.098,4.1059).setPosition(.6,5.4,-.9))
      .addChild(new Viewpoint().setDescription("Above the LCAC Fan").setOrientation(-0.004,-1.0,-0.013,1.4137).setPosition(-23.7,7.8,5.9)))
    .addChild(new LOD().setRange(new double[] {800.0,2000.0,20000.0})
      .addComments(" Short range: high resolution ")
      .addChild(new Group("LCAC")
        .addChild(new Group("Hull")
          .addChild(new Transform("HullPlatform")
            .addChild(new Transform("PlatformTop")
              .addChild(new Shape()
                .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,5,6,7,8,-1})
                  .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {14.0,0.125,-7.275,-14.0,0.125,-7.275,-14.9,0.125,-7.0,-14.9,0.125,7.0,-14.0,0.125,7.275,14.0,0.125,7.275,14.9,0.125,7.0,14.9,0.125,-7.0,14.0,0.125,-7.275}))))
                .setAppearance(new Appearance()
                  .setMaterial(new Material().setDiffuseColor(0.5,0.55,0.55))))
              .addChild(new Transform("PlatformTopStrip")
                .addChild(new Shape()
                  .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,-1})
                    .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {-14.9,0.127,0.17275,-14.9,0.127,-0.17275,14.9,0.127,-0.17275,14.9,0.127,0.17275,-14.9,0.127,0.17275}))))
                  .setAppearance(new Appearance()
                    .setMaterial(new Material().setDiffuseColor(1.0,1.0,0.0)))))
              .addChild(new Transform("PlatformPortStrip")
                .addChild(new Shape()
                  .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,-1})
                    .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {-14.9,0.127,4.0,-14.9,0.127,3.875,14.9,0.127,3.875,14.9,0.127,4.0,-14.9,0.127,4.0}))))
                  .setAppearance(new Appearance()
                    .setMaterial(new Material().setDiffuseColor(0.66,0.66,0.1)))))
              .addChild(new Transform("PlatformStarboardStrip")
                .addChild(new Shape()
                  .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,-1})
                    .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {-14.9,0.127,-4.0,-14.9,0.127,-3.875,14.9,0.127,-3.875,14.9,0.127,-4.0,-14.9,0.127,-4.0}))))
                  .setAppearance(new Appearance()
                    .setMaterial(new Material().setDiffuseColor(0.66,0.66,0.1))))))
            .addChild(new Transform("FrontPlatform")
              .addChild(new Shape()
                .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,-1})
                  .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {14.9,-0.125,-7.0,14.9,0.125,-7.0,14.9,0.125,7.0,14.9,-0.125,7.0,14.9,-0.125,-7.0}))))
                .setAppearance(new Appearance()
                  .setMaterial(new Material().setDiffuseColor(0.5,0.55,0.55)))))
            .addChild(new Transform("PlatformBottom")
              .addChild(new Shape()
                .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,5,6,7,8,-1})
                  .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {14.0,-0.125,-7.275,-14.0,-0.125,-7.275,-14.9,-0.125,-7.0,-14.9,-0.125,7.0,-14.0,-0.125,7.275,14.0,-0.125,7.275,14.9,-0.125,7.0,14.9,-0.125,-7.0,14.0,-0.125,-7.275}))))
                .setAppearance(new Appearance()
                  .setMaterial(new Material().setDiffuseColor(0.5,0.55,0.55)))))
            .addChild(new Transform("BackPlatform")
              .addChild(new Shape()
                .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,-1})
                  .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {-14.9,-0.125,-7.0,-14.9,0.125,-7.0,-14.9,0.125,7.0,-14.9,-0.125,7.0,-14.9,-0.125,-7.0}))))
                .setAppearance(new Appearance()
                  .setMaterial(new Material().setDiffuseColor(0.5,0.55,0.55)))))
            .addChild(new Transform("StarboardSidePlatform")
              .addChild(new Shape()
                .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,-1})
                  .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {14.0,-0.125,-7.275,14.0,0.125,-7.275,-14.0,0.125,-7.275,-14.0,-0.125,-7.275,14.0,-0.125,-7.275}))))
                .setAppearance(new Appearance()
                  .setMaterial(new Material().setDiffuseColor(0.8,0.8,1.0)))))
            .addChild(new Transform("PortSidePlatform")
              .addChild(new Shape()
                .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,-1})
                  .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {14.0,-0.125,7.275,14.0,0.125,7.275,-14.0,0.125,7.275,-14.0,-0.125,7.275,14.0,-0.125,7.275}))))
                .setAppearance(new Appearance()
                  .setMaterial(new Material().setDiffuseColor(0.5,0.55,0.55)))))
            .addChild(new Transform("FrontCornerPort")
              .addChild(new Shape()
                .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,-1})
                  .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {14.9,-0.125,7.0,14.0,-0.125,7.275,14.0,0.125,7.275,14.9,0.125,7.0,14.9,-0.125,7.0}))))
                .setAppearance(new Appearance()
                  .setMaterial(new Material().setDiffuseColor(0.5,0.55,0.55)))))
            .addChild(new Transform("FrontCornerStarboard")
              .addChild(new Shape()
                .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,-1})
                  .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {14.9,-0.125,-6.75,14.0,-0.125,-7.275,14.0,0.125,-7.275,14.9,0.125,-6.75,14.9,-0.125,-6.75}))))
                .setAppearance(new Appearance()
                  .setMaterial(new Material().setDiffuseColor(0.5,0.55,0.55)))))
            .addChild(new Transform("AftCornerStarboard")
              .addChild(new Shape()
                .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,-1})
                  .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {-14.9,-0.125,-7.0,-14.0,-0.125,-7.275,-14.0,0.125,-7.275,-14.9,0.125,-7.0,-14.9,-0.125,-7.0}))))
                .setAppearance(new Appearance()
                  .setMaterial(new Material().setDiffuseColor(0.5,0.55,0.55)))))
            .addChild(new Transform("AftCornerPort")
              .addChild(new Shape()
                .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,-1})
                  .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {-14.9,-0.125,7.0,-14.0,-0.125,7.275,-14.0,0.125,7.275,-14.9,0.125,7.0,-14.9,-0.125,7.0}))))
                .setAppearance(new Appearance()
                  .setMaterial(new Material().setDiffuseColor(0.5,0.55,0.55))))))
          .addChild(new Transform("ForwardRamp").setTranslation(0.225,-0.125,0.0)
            .addChild(new Transform("RampTop")
              .addChild(new Shape()
                .setAppearance(new Appearance()
                  .setMaterial(new Material()))
                .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,-1})
                  .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {14.5,0.5,5.55,14.5,0.5,-5.55,14.5,2.75,-5.15,14.5,2.75,5.15,14.5,0.5,5.55}))))))
            .addChild(new Transform("Bottom")
              .addChild(new Shape()
                .setAppearance(new Appearance()
                  .setMaterial(new Material()))
                .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,-1})
                  .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {14.75,0.5,5.55,14.75,0.5,-5.55,14.5,2.75,-5.15,14.5,2.75,5.15,14.75,0.5,5.55}))))))
            .addChild(new Transform("PortSide")
              .addChild(new Shape()
                .setAppearance(new Appearance()
                  .setMaterial(new Material()))
                .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,-1})
                  .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {14.5,0.5,-5.55,14.75,0.5,-5.55,14.5,2.75,-5.15,14.5,0.5,-5.55}))))))
            .addChild(new Transform("StarboardSide")
              .addChild(new Shape()
                .setAppearance(new Appearance()
                  .setMaterial(new Material()))
                .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,-1})
                  .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {14.5,0.5,5.55,14.75,0.5,5.55,14.5,2.75,5.15,14.5,0.5,5.55}))))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57).setTranslation(14.625,0.475,0.0)
              .addChild(new Shape()
                .setAppearance(new Appearance()
                  .setMaterial(new Material()))
                .setGeometry(new Cylinder().setHeight(11.2).setRadius(0.125))))))
        .addChild(new Group("PilotHouseGroup")
          .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setScale(1.2,1.2,1.2).setTranslation(11.0,0.125,5.5)
            .addChild(new Inline("PilotHouse").setUrl(new String[] {"PilotHouse.x3d","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/PilotHouse.x3d","PilotHouse.wrl","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/PilotHouse.wrl"}))))
        .addChild(new Group("Fans")
          .addChild(new Transform("StarboardFan").setRotation(0.0,-1.0,0.0,1.57).setTranslation(-15.0,2.6,4.9)
            .addChild(new Inline("Fan").setUrl(new String[] {"Fan.x3d","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/Fan.x3d","Fan.wrl","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/Fan.wrl"})))
          .addChild(new Transform("PortFan").setRotation(0.0,-1.0,0.0,1.57).setTranslation(-15.0,2.6,-4.9)
            .addChild(new Inline().setUSE("Fan"))))
        .addChild(new Group("SkirtGroup")
          .addChild(new Transform().setRotation(-0.0,0.71,0.71,3.14).setScale(1.0,1.0,0.9).setTranslation(14.975,-1.95,0.0)
            .addChild(new Inline("Skirt").setUrl(new String[] {"Skirt.x3d","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/Skirt.x3d","Skirt.wrl","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/Skirt.wrl"}))))
        .addChild(new Group("BlowerHouses")
          .addChild(new Transform("BlowerHouseTransformStarboard").setScale(1.0,0.9,0.9).setTranslation(5.45,4.15,5.5)
            .addChild(new Inline("BlowerHouse").setUrl(new String[] {"BlowerHouse.x3d","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/BlowerHouse.x3d","BlowerHouse.wrl","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/BlowerHouse.wrl"})))
          .addChild(new Transform("BlowerHouseTransformPort").setScale(1.0,0.9,0.9).setTranslation(5.45,4.15,-5.5)
            .addChild(new Inline("PortBlowerHouse").setUrl(new String[] {"PortBlowerHouse.x3d","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/PortBlowerHouse.x3d","PortBlowerHouse.wrl","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/PortBlowerHouse.wrl"}))))
        .addChild(new Group("Railings")
          .addChild(new Group("StarboardRailings")
            .addChild(new Transform("Corner").setTranslation(13.5,0.85,6.75)
              .addChild(new Shape()
                .setAppearance(new Appearance("Metal")
                  .setMaterial(new Material().setDiffuseColor(0.85,0.9,0.85).setShininess(1).setSpecularColor(1.0,1.0,1.0)))
                .setGeometry(new Extrusion().setCreaseAngle(3.14).setCrossSection(new MFVec2f(new double[] {0.1,0.0,0.092,-0.038,0.071,-0.071,0.038,-0.092,0.0,-0.10,-0.038,-0.092,-0.071,-0.071,-0.092,-0.038,-0.10,0.0,-0.092,0.038,-0.071,0.071,-0.038,0.092,0.0,0.10,0.038,0.092,0.071,0.071,0.092,0.038,0.10,0.0})).setScale(new MFVec2f(new double[] {0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25})).setSpine(new MFVec3f(new double[] {-0.2,0.3,0.0,0.0,0.3,0.0,0.1,0.3,0.0,0.15,0.29,0.0,0.2,0.275,0.0,0.275,0.2,0.0,0.29,0.15,0.0,0.3,0.1,0.0,0.3,0.0,0.0})))))
            .addChild(new Transform("FirstStarboardRail").setTranslation(13.8,0.45,6.75)
              .addChild(new Shape()
                .setAppearance(new Appearance().setUSE("Metal"))
                .setGeometry(new Cylinder().setHeight(0.9).setRadius(0.025))))
            .addChild(new Transform("SecondStarboardRail").setTranslation(14.0,0.45,6.75)
              .addChild(new Shape()
                .setAppearance(new Appearance().setUSE("Metal"))
                .setGeometry(new Cylinder().setHeight(0.9).setRadius(0.025))))
            .addChild(new Transform("ThirdStarboardRail").setTranslation(14.25,0.45,6.5)
              .addChild(new Shape()
                .setAppearance(new Appearance().setUSE("Metal"))
                .setGeometry(new Cylinder().setHeight(0.9).setRadius(0.025))))
            .addChild(new Transform("FourthStarboardRail").setTranslation(14.5,0.45,6.25)
              .addChild(new Shape()
                .setAppearance(new Appearance().setUSE("Metal"))
                .setGeometry(new Cylinder().setHeight(0.9).setRadius(0.025))))
            .addChild(new Transform("FifthStarboardRail").setTranslation(14.5,0.45,5.75)
              .addChild(new Shape()
                .setAppearance(new Appearance().setUSE("Metal"))
                .setGeometry(new Cylinder().setHeight(0.9).setRadius(0.025))))
            .addChild(new Transform("BottomRail")
              .addChild(new Shape()
                .setAppearance(new Appearance().setUSE("Metal"))
                .setGeometry(new Extrusion().setCreaseAngle(3.14).setCrossSection(new MFVec2f(new double[] {0.1,0.0,0.092,-0.038,0.071,-0.071,0.038,-0.092,0.0,-0.10,-0.038,-0.092,-0.071,-0.071,-0.092,-0.038,-0.10,0.0,-0.092,0.038,-0.071,0.071,-0.038,0.092,0.0,0.10,0.038,0.092,0.071,0.071,0.092,0.038,0.10,0.0})).setScale(new MFVec2f(new double[] {0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25})).setSpine(new MFVec3f(new double[] {13.4,0.35,6.75,13.8,0.35,6.75,14.0,0.35,6.75,14.25,0.35,6.5,14.5,0.35,6.25,14.5,0.35,5.745})))))
            .addChild(new Transform("TopRail")
              .addChild(new Shape()
                .setAppearance(new Appearance().setUSE("Metal"))
                .setGeometry(new Extrusion().setCreaseAngle(3.14).setCrossSection(new MFVec2f(new double[] {0.1,0.0,0.092,-0.038,0.071,-0.071,0.038,-0.092,0.0,-0.10,-0.038,-0.092,-0.071,-0.071,-0.092,-0.038,-0.10,0.0,-0.092,0.038,-0.071,0.071,-0.038,0.092,0.0,0.10,0.038,0.092,0.071,0.071,0.092,0.038,0.10,0.0})).setScale(new MFVec2f(new double[] {0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25})).setSpine(new MFVec3f(new double[] {13.4,0.85,6.75,13.8,0.85,6.75,14.0,0.85,6.75,14.25,0.85,6.5,14.5,0.85,6.25,14.5,0.85,5.74})))))
            .addChild(new Transform("StarboardAftGuardRail").setRotation(0.0,-1.0,0.0,0.3).setScale(0.33,0.475,0.33).setTranslation(-14.0,0.79,6.8)
              .addChild(new Inline("GuardRail").setUrl(new String[] {"PortGuardRail.x3d","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/PortGuardRail.x3d","PortGuardRail.wrl","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/PortGuardRail.wrl"}))))
          .addChild(new Group("PortGuardRail")
            .addChild(new Transform().setRotation(0.0,-1.0,0.0,0.79).setScale(0.33,0.475,0.33).setTranslation(13.8,0.79,-6.5)
              .addChild(new Inline().setUSE("GuardRail")))
            .addChild(new Transform().setRotation(0.0,1.0,0.0,0.3).setScale(0.33,0.475,0.33).setTranslation(-14.0,0.79,-6.8)
              .addChild(new Inline().setUSE("GuardRail")))))
        .addChild(new Group("CrewHouseGroup")
          .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setScale(1.2,1.3,1.2).setTranslation(10.75,3.0,-5.6)
            .addChild(new Inline("CrewHouse").setUrl(new String[] {"CrewHouse.x3d","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/CrewHouse.x3d","CrewHouse.wrl","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/CrewHouse.wrl"}))))
        .addChild(new Group("LadderGroup")
          .addChild(new Transform().setTranslation(-3.8,0.25,-3.75)
            .addChild(new Inline("Ladder").setUrl(new String[] {"Ladder.x3d","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/Ladder.x3d","Ladder.wrl","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/Ladder.wrl"}))))
        .addChild(new Group("FanEngineHouses")
          .addChild(new Transform().setScale(1.35,1.1,1.1).setTranslation(-7.7,0.0,-4.25)
            .addChild(new Inline("PortFanEngineHouse").setUrl(new String[] {"PortFanEngineHouse.x3d","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/PortFanEngineHouse.x3d","PortFanEngineHouse.wrl","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/PortFanEngineHouse.wrl"})))
          .addChild(new Transform().setScale(1.35,1.1,1.1).setTranslation(-7.7,0.0,7.0)
            .addChild(new Inline("StarboardFanEngineHouse").setUrl(new String[] {"StarboardFanEngineHouse.x3d","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/StarboardFanEngineHouse.x3d","StarboardFanEngineHouse.wrl","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/StarboardFanEngineHouse.wrl"}))))
        .addChild(new Group("AftRamp")
          .addChild(new Transform().setScale(1.0,0.6,0.54).setTranslation(-29.7,-0.1,0.0)
            .addChild(new Transform().setUSE("ForwardRamp"))))
        .addChild(new Group("Cargo")
          .addChild(new Transform().setTranslation(0.0,1.5,0.0)
            .addChild(new Inline("AAV").setUrl(new String[] {"../AAV/AAV.x3d","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/AAV/AAV.x3d","../AAV/AAV.wrl","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/AAV/AAV.wrl"})))))
      .addComments(" Medium range: simple geometry ")
      .addChild(new Transform()
        .addChild(new Shape()
          .setGeometry(new Box().setSize(30.0,3.0,18.0))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(0.25,0.25,0.33))))
        .addChild(new Transform().setTranslation(0.0,3.0,7.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(24.0,4.0,3.0))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(0.65,0.65,0.8)))))
        .addChild(new Transform().setTranslation(0.0,3.0,-7.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(24.0,4.0,3.0))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(0.65,0.65,0.8)))))
        .addChild(new Transform().setTranslation(14.0,3.0,0.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(1.0,3.0,18.0))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(0.5,0.5,0.6)))))
        .addChild(new Transform().setTranslation(-13.5,3.0,0.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(1.0,3.0,18.0))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(0.5,0.5,0.6)))))
        .addChild(new Transform().setRotation(0.0,0.0,1.0,1.57).setTranslation(-14.0,4.0,8.0)
          .addChild(new Shape()
            .setGeometry(new Cylinder().setRadius(3))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(0.5,0.5,0.33)))))
        .addChild(new Transform().setRotation(0.0,0.0,1.0,1.57).setTranslation(-14.0,4.0,-8.0)
          .addChild(new Shape()
            .setGeometry(new Cylinder().setRadius(3))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(0.5,0.5,0.33))))))
      .addComments(" Long range: tactical symbol ")
      .addChild(new Billboard("LongRangeSymbol").setAxisOfRotation(0.0,0.0,0.0)
        .addChild(new Transform().setTranslation(0.0,30.0,0.0)
          .addChild(new Shape()
            .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,-1})
              .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {60.0,60.0,0.0,60.0,-60.0,0.0,-60.0,-60.0,0.0,-60.0,60.0,0.0,60.0,60.0,0.0}))))
            .setAppearance(new Appearance()
              .setTexture(new ImageTexture().setUrl(new String[] {"Hovercraft.png","https://www.web3d.org/x3d/content/examples/Savage/AmphibiousVehicles/LCAC/Hovercraft.png"}))))))
      .addChild(new WorldInfo().setInfo(new String[] {"Out of range: null node"}))));
            }
            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

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

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