package Savage.GroundVehicles.M1A2;

import org.web3d.x3d.jsail.Core.*;
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.Rendering.*;
import org.web3d.x3d.jsail.Shape.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> An M1A2 model, untextured, for stand alone viewing. </p>
 <p> Related links: Catalog page <a href="../../../../GroundVehicles/M1A2/M1A2Index.html" target="_blank">M1A2</a>,  source <a href="../../../../GroundVehicles/M1A2/M1A2.java">M1A2.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="../../../../GroundVehicles/M1A2/M1A2.x3d">M1A2.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> An M1A2 model, untextured, for stand alone viewing. </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Michael Martin </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 7 September 2004 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> subject </i> </td>
			<td> M1A2 "main battle tank" tank </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> modified </i> </td>
			<td> 20 October 2019 </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/GroundVehicles/M1A2/M1A2.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/GroundVehicles/M1A2/M1A2.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> license </i> </td>
			<td> <a href="../../../../GroundVehicles/M1A2/../../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 Michael Martin
 */

public class M1A2
{
	/** Default constructor to create this object. */
	public M1A2 ()
	{
	  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()
    .addComments(" Additional authoring resources for meta-tags: http://www.w3.org/TR/html4/struct/global.html#h-7.4.4 http://dublincore.org/documents/dces http://vancouver-webpages.com/META http://vancouver-webpages.com/META/about-mk-metas2.html Additional authoring resources for language codes: ftp://ftp.isi.edu/in-notes/bcp/bcp47.txt http://www.loc.gov/standards/iso639-2/langhome.html http://www.iana.org/numbers.html#L ")
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("M1A2.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("An M1A2 model, untextured, for stand alone viewing."))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Michael Martin"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("7 September 2004"))
    .addMeta(new meta().setName(meta.NAME_SUBJECT    ).setContent("M1A2 \"main battle tank\" tank"))
    .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_MODIFIED   ).setContent("20 October 2019"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Savage/GroundVehicles/M1A2/M1A2.x3d"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("M1A2.x3d"))
    .addChild(new Viewpoint().setDescription("M1A2").setJump(false).setPosition(0.0,1.0,10.0))
    .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setScale(1.867,1.867,1.867)
      .addChild(new Transform().setTranslation(0.0,0.375,0.0)
        .addChild(new Group("Hull")
          .addChild(new Shape()
            .setAppearance(new Appearance("Friendly")
              .addComments(" Light Grey is better than the original Blue ")
              .setMaterial(new Material().setDiffuseColor(.3,.3,.3)))
            .setGeometry(new IndexedFaceSet().setCoordIndex(new int[] {0,1,13,11,-1,1,2,3,4,5,13,-1,12,14,6,7,8,9,10,-1,12,11,13,14,-1,12,13,5,6,-1,15,26,28,16,-1,28,20,19,18,17,16,-1,27,25,24,23,22,21,29,-1,26,27,29,28,-1,28,29,21,20,-1,0,15,16,1,-1,1,16,17,2,-1,2,17,18,3,-1,3,18,19,4,-1,4,19,20,5,-1,6,5,20,21,22,7,-1,7,22,23,8,-1,8,23,24,9,-1,9,24,25,10,-1,10,25,27,26,11,12,-1,11,26,15,0})
              .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {.58,.27,2.09,.58,0.0,1.9,.58,-.15,1.12,.58,-.15,-1.73,.58,.15,-2.03,.58,.32,-2.04,.95,.32,-2.04,.95,.5,-2.05,.95,.49,-1.0,.95,.43,-.52,.95,.44,.93,.58,.36,1.41,.95,.36,1.41,.58,.32,1.41,.95,.32,1.41,-.58,.27,2.09,-.58,0.0,1.9,-.58,-.15,1.12,-.58,-.15,-1.73,-.58,.15,-2.03,-.58,.32,-2.04,-.95,.32,-2.04,-.95,.5,-2.05,-.95,.49,-1.0,-.95,.43,-.52,-.95,.44,.93,-.58,.36,1.41,-.95,.36,1.41,-.58,.32,1.41,-.95,.32,1.41})))))
          .addChild(new Viewpoint().setDescription("Turret Top").setJump(false).setOrientation(0.0,1.0,0.0,3.14).setPosition(0.0,1.4,-1.0))
          .addChild(new Transform().setTranslation(.77,0.0,0.0)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Friendly"))
              .setGeometry(new IndexedFaceSet().setCoordIndex(new int[] {0,1,2,3,4,5,6,7,8,9,-1,19,18,17,16,15,14,13,12,11,10,-1,0,9,19,10,-1,0,10,11,1,-1,1,11,12,2,-1,2,12,13,3,-1,3,13,14,4,-1,4,14,15,5,-1,5,15,16,6,-1,6,16,17,7,-1,7,17,18,8,-1,8,18,19,9,-1})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {.165,.27,1.78,.165,.18,1.91,.165,.04,1.93,.165,-.11,1.85,.165,-.37,1.3,.165,-.37,-1.4,.165,-.04,-1.9,.165,.08,-1.96,.165,.2,-1.95,.165,.28,-1.84,-.165,.27,1.78,-.165,.18,1.91,-.165,.04,1.93,-.165,-.11,1.85,-.165,-.37,1.3,-.165,-.37,-1.4,-.165,-.04,-1.9,-.165,.08,-1.96,-.165,.2,-1.95,-.165,.28,-1.84}))))))
          .addChild(new Transform().setTranslation(-.77,0.0,0.0)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Friendly"))
              .setGeometry(new IndexedFaceSet().setCoordIndex(new int[] {0,1,2,3,4,5,6,7,8,9,-1,19,18,17,16,15,14,13,12,11,10,-1,0,9,19,10,-1,0,10,11,1,-1,1,11,12,2,-1,2,12,13,3,-1,3,13,14,4,-1,4,14,15,5,-1,5,15,16,6,-1,6,16,17,7,-1,7,17,18,8,-1,8,18,19,9,-1})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {.165,.27,1.78,.165,.18,1.91,.165,.04,1.93,.165,-.11,1.85,.165,-.37,1.3,.165,-.37,-1.4,.165,-.04,-1.9,.165,.08,-1.96,.165,.2,-1.95,.165,.28,-1.84,-.165,.27,1.78,-.165,.18,1.91,-.165,.04,1.93,-.165,-.11,1.85,-.165,-.37,1.3,-.165,-.37,-1.4,-.165,-.04,-1.9,-.165,.08,-1.96,-.165,.2,-1.95,-.165,.28,-1.84}))))))
          .addChild(new Transform().setTranslation(.965,0.0,0.0)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Friendly"))
              .setGeometry(new IndexedFaceSet().setCoordIndex(new int[] {0,1,2,3,4,5,6,7,-1,15,14,13,12,11,10,9,8,-1,13,14,6,5,-1,14,15,7,6,-1,7,15,8,0,-1,0,8,9,1,-1,1,9,10,2,-1,2,10,11,3,-1,3,11,12,4,-1,5,4,12,13,-1})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {.015,.22,2.04,.015,0.0,1.85,.015,0.0,-1.51,.015,.22,-1.6,.015,.23,-2.04,.015,.35,-2.04,.015,.35,1.3,.015,.28,2.0,-.015,.22,2.04,-.015,0.0,1.85,-.015,0.0,-1.51,-.015,.22,-1.6,-.015,.23,-2.04,-.015,.35,-2.04,-.015,.35,1.3,-.015,.28,2.0}))))))
          .addChild(new Transform().setTranslation(-.965,0.0,0.0)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Friendly"))
              .setGeometry(new IndexedFaceSet().setCoordIndex(new int[] {0,1,2,3,4,5,6,7,-1,15,14,13,12,11,10,9,8,-1,13,14,6,5,-1,14,15,7,6,-1,7,15,8,0,-1,0,8,9,1,-1,1,9,10,2,-1,2,10,11,3,-1,3,11,12,4,-1,5,4,12,13,-1})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {.015,.22,2.04,.015,0.0,1.85,.015,0.0,-1.51,.015,.22,-1.6,.015,.23,-2.04,.015,.35,-2.04,.015,.35,1.3,.015,.28,2.0,-.015,.22,2.04,-.015,0.0,1.85,-.015,0.0,-1.51,-.015,.22,-1.6,-.015,.23,-2.04,-.015,.35,-2.04,-.015,.35,1.3,-.015,.28,2.0}))))))
          .addChild(new Transform().setTranslation(.765,0.0,0.0)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Friendly"))
              .setGeometry(new IndexedFaceSet().setCoordIndex(new int[] {0,6,7,1,-1,1,7,8,2,-1,2,8,9,3,-1,3,9,10,4,-1,4,10,11,5,-1,5,11,13,12,-1,0,12,13,6,-1,0,1,2,3,4,5,12,-1,6,13,11,10,9,8,7,-1})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {.185,.36,1.41,.185,.365,1.82,.185,.33,1.95,.185,.15,2.1,.185,.14,2.09,.185,.26,1.99,-.185,.36,1.41,-.185,.365,1.82,-.185,.33,1.95,-.185,.15,2.1,-.185,.14,2.09,-.185,.26,1.99,.185,.34,1.41,-.185,.34,1.41}))))))
          .addChild(new Transform().setTranslation(-.765,0.0,0.0)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Friendly"))
              .setGeometry(new IndexedFaceSet().setCoordIndex(new int[] {0,6,7,1,-1,1,7,8,2,-1,2,8,9,3,-1,3,9,10,4,-1,4,10,11,5,-1,5,11,13,12,-1,0,12,13,6,-1,0,1,2,3,4,5,12,-1,6,13,11,10,9,8,7,-1})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {.185,.36,1.41,.185,.365,1.82,.185,.33,1.95,.185,.15,2.1,.185,.14,2.09,.185,.26,1.99,-.185,.36,1.41,-.185,.365,1.82,-.185,.33,1.95,-.185,.15,2.1,-.185,.14,2.09,-.185,.26,1.99,.185,.34,1.41,-.185,.34,1.41})))))))
        .addChild(new Transform()
          .addChild(new Group("Turret")
            .addChild(new Transform().setCenter(0.0,0.0,.25).setTranslation(0.0,.63,-.15)
              .addChild(new Shape()
                .setAppearance(new Appearance().setUSE("Friendly"))
                .setGeometry(new IndexedFaceSet().setCoordIndex(new int[] {9,0,1,-1,9,1,2,-1,9,2,3,4,5,8,-1,5,6,8,-1,6,7,8,-1,7,0,9,8,-1,9,8,7,0,-1,0,10,11,12,1,-1,1,12,13,2,-1,2,13,14,15,3,-1,3,15,16,4,-1,16,15,14,17,-1,17,18,5,4,16,-1,18,19,6,5,-1,19,20,21,7,6,-1,7,21,10,0,-1,20,11,10,21,-1,20,19,12,11,-1,19,18,13,12,-1,18,17,14,13})
                  .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {.21,.15,1.28,.73,.15,1.01,.73,.21,.15,.69,.23,-1.0,-.69,.23,-1.0,-.73,.21,.15,-.73,.15,1.01,-.21,.15,1.28,-.22,.22,.21,.22,.22,.21,.22,-.05,1.41,.44,-.16,1.37,.9,-.16,1.13,.93,-.18,.2,.84,-.11,-1.01,.78,.07,-1.15,-.78,.07,-1.15,-.84,-.11,-1.01,-.93,-.18,.2,-.9,-.16,1.13,-.44,-.16,1.37,-.22,-.05,1.41})))))
              .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57).setTranslation(0.0,0.0,2.375)
                .addChild(new Transform().setCenter(0.0,-1.11,0.0).setRotation(1.0,0.0,0.0,0.0)
                  .addChild(new Shape("GunTube")
                    .setAppearance(new Appearance().setUSE("Friendly"))
                    .setGeometry(new Cylinder().setHeight(2.22).setRadius(.075)))
                  .addChild(new Transform().setScale(.8,1.0,1.1).setTranslation(0.0,-.2,-.03)
                    .addChild(new Shape("BoreEvac")
                      .setAppearance(new Appearance().setUSE("Friendly"))
                      .setGeometry(new Cylinder().setHeight(.42).setRadius(.105))))
                  .addChild(new Transform().setTranslation(-.15,-.9,0.0)
                    .addChild(new Shape("Coax")
                      .setAppearance(new Appearance().setUSE("Friendly"))
                      .setGeometry(new Cylinder().setHeight(.42).setRadius(.03))))))
              .addChild(new Transform().setTranslation(0.0,-.165,.25)
                .addChild(new Shape()
                  .setAppearance(new Appearance().setUSE("Friendly"))
                  .setGeometry(new Cylinder().setHeight(.1).setRadius(.665))))
              .addChild(new Transform().setTranslation(0.0,.075,-1.2)
                .addChild(new Shape()
                  .setAppearance(new Appearance().setUSE("Friendly"))
                  .setGeometry(new Box().setSize(1.4,.22,.28))))
              .addChild(new Transform().setRotation(0.0,1.0,0.0,-.37).setTranslation(-.3,.225,0.0)
                .addChild(new Shape("CommandersHatch")
                  .setAppearance(new Appearance().setUSE("Friendly"))
                  .setGeometry(new Cylinder().setHeight(.06).setRadius(.25)))
                .addChild(new Transform().setCenter(0.0,0.0,-.11).setRotation(1.0,0.0,0.0,-.15).setTranslation(0.0,.12,.35)
                  .addChild(new Shape()
                    .setAppearance(new Appearance().setUSE("Friendly"))
                    .setGeometry(new Box().setSize(.08,.08,.3)))
                  .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57).setTranslation(0.0,0.0,.35)
                    .addChild(new Shape()
                      .setAppearance(new Appearance().setUSE("Friendly"))
                      .setGeometry(new Cylinder().setHeight(.4).setRadius(.015))))
                  .addChild(new Transform().setTranslation(.12,0.0,.04)
                    .addChild(new Shape()
                      .setAppearance(new Appearance().setUSE("Friendly"))
                      .setGeometry(new Box().setSize(.16,.09,.07)))))
                .addChild(new Transform().setRotation(1.0,0.0,0.0,-0.785).setTranslation(0.0,.05,.2)
                  .addChild(new Shape()
                    .setAppearance(new Appearance().setUSE("Friendly"))
                    .setGeometry(new Box().setSize(.1,.1,.2)))))
              .addChild(new Transform().setRotation(0.0,1.0,0.0,.78).setTranslation(.3,.215,0.0)
                .addChild(new Shape("LoadersHatch")
                  .setAppearance(new Appearance().setUSE("Friendly"))
                  .setGeometry(new Cylinder().setHeight(.04).setRadius(.2)))
                .addChild(new Transform().setTranslation(0.0,.095,.2)
                  .addChild(new Shape()
                    .setAppearance(new Appearance().setUSE("Friendly"))
                    .setGeometry(new Box().setSize(.1,.15,.15)))
                  .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57).setTranslation(0.0,.05,.2)
                    .addChild(new Shape()
                      .setAppearance(new Appearance().setUSE("Friendly"))
                      .setGeometry(new Cylinder().setHeight(.25).setRadius(.015))))
                  .addChild(new Transform().setTranslation(.11,.03,.03)
                    .addChild(new Shape()
                      .setAppearance(new Appearance().setUSE("Friendly"))
                      .setGeometry(new Box().setSize(.16,.09,.07))))))
              .addChild(new Transform().setTranslation(.4,.275,.5)
                .addChild(new Shape("CITV")
                  .setAppearance(new Appearance().setUSE("Friendly"))
                  .setGeometry(new Cylinder().setHeight(.18).setRadius(.125))))
              .addChild(new Transform().setTranslation(-.4,.215,.6)
                .addChild(new Shape("Doghouse")
                  .setAppearance(new Appearance().setUSE("Friendly"))
                  .setGeometry(new Box().setSize(.38,.15,.33))))
              .addChild(new Transform().setTranslation(0.0,.31,-1.03)
                .addChild(new Shape("Crosswind")
                  .setAppearance(new Appearance().setUSE("Friendly"))
                  .setGeometry(new Cylinder().setHeight(.25).setRadius(.03)))
                .addChild(new Transform().setTranslation(0.0,.125,0.0)
                  .addChild(new Shape()
                    .setAppearance(new Appearance().setUSE("Friendly"))
                    .setGeometry(new Box().setSize(.18,.05,.06)))))
              .addChild(new Transform().setTranslation(.6,.695,-.9)
                .addChild(new Shape()
                  .setAppearance(new Appearance().setUSE("Friendly"))
                  .setGeometry(new Cylinder().setHeight(1).setRadius(.005))))
              .addChild(new Transform().setTranslation(-.6,.695,-.9)
                .addChild(new Shape()
                  .setAppearance(new Appearance().setUSE("Friendly"))
                  .setGeometry(new Cylinder().setHeight(1).setRadius(.005))))
              .addChild(new Transform().setTranslation(.22,.23,-.7)
                .addChild(new Shape()
                  .setAppearance(new Appearance().setUSE("Friendly"))
                  .setGeometry(new Box().setSize(.42,.04,.59))))
              .addChild(new Transform().setTranslation(-.22,.23,-.7)
                .addChild(new Shape()
                  .setAppearance(new Appearance().setUSE("Friendly"))
                  .setGeometry(new Box().setSize(.42,.04,.59))))
              .addChild(new Transform().setTranslation(-.76,.085,-.34)
                .addChild(new Shape("RSponsonBox")
                  .setAppearance(new Appearance().setUSE("Friendly"))
                  .setGeometry(new IndexedFaceSet().setCoordIndex(new int[] {0,1,2,3,-1,3,2,4,5,-1,1,0,5,4,-1,0,3,5,-1,2,1,4})
                    .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {.11,.135,.54,.11,.135,-.54,-.06,.135,-.54,-.11,.135,.54,-.06,-.075,-.54,-.11,-.135,.54}))))))
              .addChild(new Transform().setTranslation(.76,.085,-.34)
                .addChild(new Shape("LSponsonBox")
                  .setAppearance(new Appearance().setUSE("Friendly"))
                  .setGeometry(new IndexedFaceSet().setCcw(false).setCoordIndex(new int[] {0,1,2,3,-1,3,2,4,5,-1,1,0,5,4,-1,0,3,5,-1,2,1,4})
                    .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {-.11,.135,.54,-.11,.135,-.54,.06,.135,-.54,.11,.135,.54,.06,-.075,-.54,.11,-.135,.54}))))))
              .addChild(new Transform().setRotation(-1.0,-1.0,0.0,.6).setTranslation(-.83,.1,.33)
                .addChild(new Shape()
                  .setAppearance(new Appearance().setUSE("Friendly"))
                  .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {.08,.09,.12,.06,.04,-.09,-.04,-.09,-.12,.06,-.08,.09,.08,.09})).setScale(new MFVec2f(new double[] {.5,1.0,1.0,1.0,.8,1.0})).setSpine(new MFVec3f(new double[] {0.0,-.075,0.0,0.0,.025,0.0,0.0,.075,0.0})))))
              .addChild(new Transform().setRotation(-1.0,1.0,0.0,.6).setTranslation(.83,.1,.33)
                .addChild(new Shape()
                  .setAppearance(new Appearance().setUSE("Friendly"))
                  .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {.08,.09,.12,.06,.04,-.09,-.04,-.09,-.12,.06,-.08,.09,.08,.09})).setScale(new MFVec2f(new double[] {.5,1.0,1.0,1.0,.8,1.0})).setSpine(new MFVec3f(new double[] {0.0,-.075,0.0,0.0,.025,0.0,0.0,.075,0.0}))))))))
        .addChild(new Viewpoint().setDescription("Top Down").setJump(false).setOrientation(0.0,0.785,.785,3.14).setPosition(0.0,10.0,0.0))
        .addChild(new Viewpoint().setDescription("Left Side").setJump(false).setOrientation(0.0,1.0,0.0,1.57).setPosition(6.0,1.0,0.0))
        .addChild(new Viewpoint().setDescription("Back").setJump(false).setOrientation(0.0,1.0,0.0,3.14).setPosition(0.0,1.0,-6.0))
        .addChild(new Viewpoint().setDescription("Right Side").setJump(false).setOrientation(0.0,1.0,0.0,-1.57).setPosition(-6.0,1.0,0.0))
        .addChild(new Viewpoint().setDescription("Front").setJump(false).setPosition(0.0,1.0,6.0)))));
            }
            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 M1A2 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 M1A2().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.GroundVehicles.M1A2.M1A2\" 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.GroundVehicles.M1A2.M1A2 self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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