package Savage.Robots.JetFireTransformerToy;

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.Interpolation.*;
import org.web3d.x3d.jsail.Networking.*;
import org.web3d.x3d.jsail.PointingDeviceSensor.*;
import org.web3d.x3d.jsail.Rendering.*;
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> 3 Position Transformer of Jetfire Aircraft. </p>
 <p> Related links: Catalog page <a href="../../../../Robots/JetFireTransformerToy/JetFireTransformerIndex.html" target="_blank">JetFireTransformer</a>,  source <a href="../../../../Robots/JetFireTransformerToy/JetFireTransformer.java">JetFireTransformer.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="../../../../Robots/JetFireTransformerToy/JetFireTransformer.x3d">JetFireTransformer.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> 3 Position Transformer of Jetfire Aircraft. </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Kreg L. Kelly </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 23 September 2002 </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/Robots/JetFireTransformerToy/JetFireTransformer.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/Robots/JetFireTransformerToy/JetFireTransformer.x3d</a> </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="../../../../Robots/JetFireTransformerToy/../../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 Kreg L. Kelly
 */

public class JetFireTransformer
{
	/** Default constructor to create this object. */
	public JetFireTransformer ()
	{
	  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("JetFireTransformer.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("3 Position Transformer of Jetfire Aircraft."))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Kreg L. Kelly"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("23 September 2002"))
    .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/Robots/JetFireTransformerToy/JetFireTransformer.x3d"))
    .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 WorldInfo().setTitle("JetFireTransformer.x3d"))
    .addChild(new Background().setGroundAngle(new double[] {1.309,1.5702}).setGroundColor(new MFColor(new double[] {0.5,0.3,0.3,0.5,0.3,0.3,0.5,0.4,0.4})).setSkyAngle(new double[] {1.309,1.572}).setSkyColor(new MFColor(new double[] {0.0,0.2,0.7,0.0,0.5,1.0,1.0,1.0,1.0})))
    .addChild(new Transform("FuselageNose").setRotation(0.0,1.0,0.0,3.14).setScale(1.0,1.0,1.5).setTranslation(0.0,0.0,-5.0)
      .addComments(" Fuselage cone extrusion from Blue Angel by Etsuko Lippi ")
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setTexture(new ImageTexture().setUrl(new String[] {"fuselageHead.jpg","https://www.web3d.org/x3d/content/examples/Savage/Robots/JetFireTransformerToy/fuselageHead.jpg"})))
        .setGeometry(new Extrusion().setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {0.00,1.30,.494,1.196,.923,.923,1.196,.494,1.30,0.00,1.196,-.494,.923,-.923,.494,-1.196,0.00,-1.30,-.494,-1.196,-.923,-.923,-1.196,-.494,-1.30,-0.00,-1.196,.494,-.923,.923,-.494,1.196,0.00,1.30})).setScale(new MFVec2f(new double[] {0.47,0.37,0.37,0.27,0.18,0.15,0.10,0.08,0.06,0.04,0.03,0.015,0.009,0.009})).setSpine(new MFVec3f(new double[] {1.71,0.08,0.0,3.0,0.0,0.0,4.0,-0.1,0.0,4.15,-0.1,0.0,4.2,-0.1,0.0,4.22,-0.1,0.0,4.23,-0.1,0.0})))))
    .addChild(new Transform("controlPanel").setRotation(0.58,0.58,0.58,2.09).setScale(0.2,0.2,0.2).setTranslation(-1.5,0.32,-5.0)
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material())
          .setTexture(new ImageTexture().setUrl(new String[] {"../../AircraftFixedWing/F18BlueAngelUnitedStates/F18Cockpit.gif","https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F18BlueAngelUnitedStates/F18Cockpit.gif"}))
          .addComments(" Note: It is imaginary and unclassified. "))
        .setGeometry(new IndexedFaceSet().setCreaseAngle(1.75).setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,5,6,7,8,9,0})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {0.00,1.30,0.0,.494,1.196,0.0,.923,.923,0.0,1.196,.494,0.0,2.3,.494,0.0,2.3,-.494,0.0,1.196,-.494,0.0,.923,-.923,0.0,.494,-1.196,0.0,0.00,-1.30,0.0}))))))
    .addChild(new Transform("FuselageConsole").setRotation(1.0,0.05,0.0,3.14).setScale(0.3,0.3,0.3).setTranslation(-3.0,0.11,-5.0)
      .addChild(new Shape()
        .setAppearance(new Appearance("consoleAppearance")
          .setMaterial(new Material().setDiffuseColor(0.1,0.25,0.5).setSpecularColor(0.0,0.2,0.3)))
        .setGeometry(new Extrusion("consoleBase").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {0.00,1.30,.494,1.196,.923,.923,1.196,.494,1.30,0.00,1.196,-.494,.923,-.923,.494,-1.196,0.00,-1.30})).setScale(new MFVec2f(new double[] {0.1,0.05,0.4,0.45,0.8,0.8})).setSpine(new MFVec3f(new double[] {2.0,-0.4,0.0,3.0,-0.4,0.0,5.0,-0.3,0.0})))))
    .addChild(new Transform("FuselageBody").setRotation(0.0,1.0,0.0,3.14).setScale(1.0,1.0,1.5).setTranslation(0.0,0.0,-5.0)
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setTexture(new ImageTexture().setUrl(new String[] {"fuselageBody.jpg","https://www.web3d.org/x3d/content/examples/Savage/Robots/JetFireTransformerToy/fuselageBody.jpg"})))
        .setGeometry(new Extrusion("fuselageBody").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {0.00,1.30,.494,1.196,.923,.923,1.196,.494,1.30,0.00,1.196,-.494,.923,-.923,.494,-1.196,0.00,-1.30,-.494,-1.196,-.923,-.923,0.00,-0.5,0.00,0.5,-.923,.923,-.494,1.196,0.00,1.30})).setScale(new MFVec2f(new double[] {0.58,0.36,0.58,0.36,0.58,0.36,0.46,0.36,0.47,0.37})).setSpine(new MFVec3f(new double[] {-1.3,0.0750,0.0,-1.0,0.1000,0.0,0.0,0.2200,0.0,1.0,0.0800,0.0,1.73,0.08,0.0})))))
    .addChild(new Transform("MiddleVentralTransform").setRotation(0.0,1.0,0.0,-1.57).setTranslation(-1.0,0.0,-5.0)
      .addChild(new Shape()
        .setAppearance(new Appearance("MyBlueGrey")
          .setMaterial(new Material().setDiffuseColor(.7,.8,.8)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,-1,1,5,6,2,-1,0,4,5,1,-1,3,2,6,7,-1,14,15,16,17,-1,14,18,19,15,-1,15,19,20,16,-1,17,16,20,21,-1,21,20,5,4,-1,7,6,8,9,-1,9,8,10,11,-1,23,22,19,18,-1,13,12,22,23,-1,13,12,10,11,-1,14,18,23,13,11,9,7,3,0,4,21,17,-1,22,12,10,8,6,5,20,19,-1})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {1.0725,0.0,0.0,1.0725,0.0275,0.0,1.5125,0.0275,0.0,1.5125,0.0,0.0,0.99,0.0,-0.495,1.0725,0.275,-0.715,1.5125,0.275,-0.715,1.59,0.0,-0.495,1.865,0.275,-0.715,1.7275,0.0,-0.495,2.14,0.275,-1.65,2.14,0.0,-1.65,-2.14,0.275,-1.65,-2.14,0.0,-1.65,-1.5125,0.0,0.0,-1.5125,0.0275,0.0,-1.0725,0.0275,0.0,-1.0725,0.0,0.0,-1.59,0.0,-0.495,-1.5125,0.275,-0.715,-1.0725,0.275,-0.715,-0.99,0.0,-0.495,-1.865,0.275,-0.715,-1.7275,0.0,-0.495}))))))
    .addChild(new Transform("VentralPanelTransform").setRotation(0.0,1.0,0.0,-1.57).setTranslation(-0.5,0.11,-5.0)
      .addChild(new Inline().setUrl(new String[] {"VentralPanel.x3d","https://www.web3d.org/x3d/content/examples/Savage/Robots/JetFireTransformerToy/VentralPanel.x3d","VentralPanel.wrl","https://www.web3d.org/x3d/content/examples/Savage/Robots/JetFireTransformerToy/VentralPanel.wrl"})))
    .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(4.53,0.11,-5.0)
      .addChild(new Inline().setUrl(new String[] {"AftVentralPanel.x3d","https://www.web3d.org/x3d/content/examples/Savage/Robots/JetFireTransformerToy/AftVentralPanel.x3d","AftVentralPanel.wrl","https://www.web3d.org/x3d/content/examples/Savage/Robots/JetFireTransformerToy/AftVentralPanel.wrl"})))
    .addChild(new Transform().setScale(3.0,3.0,3.0)
      .addComments(" for development use ")
      .addComments(" <Inline DEF='CoordinateAxes' url='\"../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d\" \"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d\" \"https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxes.x3d\" \"../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl\" \"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl\" \"https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxes.wrl\"'/> "))
    .addChild(new Transform("CockpitGlass").setRotation(0.0,1.0,0.0,1.57).setScale(1.4,1.0,1.0).setTranslation(4.5,0.1,-0.755)
      .addChild(new Transform("CockpitFront").setScale(1.0,1.0,1.2).setTranslation(3.0,0.0,0.0)
        .addChild(new Shape()
          .setAppearance(new Appearance("CanopyColor")
            .setMaterial(new Material().setDiffuseColor(0.3,0.4,0.8).setTransparency(0.85)))
          .setGeometry(new IndexedFaceSet().setCreaseAngle(1.8).setSolid(false).setCoordIndex(new int[] {9,300,10,-1,10,300,301,-1,301,306,10,-1,2,308,309,-1})
            .setCoord(new Coordinate().setPoint(getCoordinate_7_47_point())))))
      .addChild(new Group()
        .addChild(new Transform("CanopyTransform").setCenter(0.0,0.0,-3.5)
          .addChild(new Transform().setScale(1.0,1.0,1.2).setTranslation(3.0,0.0,0.0)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("CanopyColor"))
              .setGeometry(new IndexedFaceSet().setCreaseAngle(1.8).setSolid(false).setCoordIndex(new int[] {16,17,112,302,-1,301,304,305,306,-1,306,305,186,179,-1,304,307,257,305,-1,305,257,187,186,-1,302,112,307,304,-1,9,16,302,300,-1,300,302,304,301,-1,17,112,310,-1,112,307,310,-1,307,257,310,-1,257,187,310,-1})
                .setCoord(new Coordinate().setPoint(getCoordinate_9_52_point())))))
          .addChild(new TimeSensor("Clock").setCycleInterval(4))
          .addChild(new TouchSensor("CanopyTouchSensorOpen").setDescription("open canopy"))
          .addChild(new OrientationInterpolator("CanopyOpenInterpolator").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFRotation(new double[] {1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.52,1.0,0.0,0.0,0.79})))
          .addChild(new ROUTE().setFromNode("CanopyTouchSensorOpen").setFromField("touchTime").setToNode("Clock").setToField("set_startTime"))
          .addChild(new ROUTE().setFromNode("Clock").setFromField("fraction_changed").setToNode("CanopyOpenInterpolator").setToField("set_fraction"))
          .addChild(new ROUTE().setFromNode("CanopyOpenInterpolator").setFromField("value_changed").setToNode("CanopyTransform").setToField("set_rotation"))
          .addComments(" Close animation ")
          .addChild(new Transform().setTranslation(3.1,0.0,0.0)
            .addChild(new TimeSensor("ClockClose").setCycleInterval(4))
            .addChild(new TouchSensor("CanopyTouchSensorClose").setDescription("close canopy"))
            .addChild(new OrientationInterpolator("CanopyCloseInterpolator").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFRotation(new double[] {1.0,0.0,0.0,0.79,1.0,0.0,0.0,0.52,1.0,0.0,0.0,0.0})))
            .addChild(new ROUTE().setFromNode("CanopyTouchSensorClose").setFromField("touchTime").setToNode("ClockClose").setToField("set_startTime"))
            .addChild(new ROUTE().setFromNode("ClockClose").setFromField("fraction_changed").setToNode("CanopyCloseInterpolator").setToField("set_fraction"))
            .addChild(new ROUTE().setFromNode("CanopyCloseInterpolator").setFromField("value_changed").setToNode("CanopyTransform").setToField("set_rotation"))))))
    .addChild(new Transform("CockpitSeat").setScale(0.25,0.25,0.25).setTranslation(-1.0,0.1,-5.0)
      .addComments(" TODO missing? ")
      .addChild(new Inline().setUrl(new String[] {"../../AircraftFixedWing/F18BlueAngelUnitedStates/F18CockpitSeat.x3d","https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F18BlueAngelUnitedStates/F18CockpitSeat.x3d","../../AircraftFixedWing/F18BlueAngelUnitedStates/F18CockpitSeat.wrl","https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F18BlueAngelUnitedStates/F18CockpitSeat.wrl"})))
    .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(4.85,0.0,-5.0)
      .addChild(new Inline().setUrl(new String[] {"AftBottomPanel.x3d","https://www.web3d.org/x3d/content/examples/Savage/Robots/JetFireTransformerToy/AftBottomPanel.x3d","AftBottomPanel.wrl","https://www.web3d.org/x3d/content/examples/Savage/Robots/JetFireTransformerToy/AftBottomPanel.wrl"})))
    .addChild(new Transform("LeftWingTransform").setRotation(0.0,1.0,0.0,1.57).setTranslation(4.0,0.11,-3.0)
      .addChild(new Inline().setUrl(new String[] {"LeftSweepWing.x3d","https://www.web3d.org/x3d/content/examples/Savage/Robots/JetFireTransformerToy/LeftSweepWing.x3d","LeftSweepWing.wrl","https://www.web3d.org/x3d/content/examples/Savage/Robots/JetFireTransformerToy/LeftSweepWing.wrl"})))
    .addChild(new Transform("RightWingTransform").setRotation(0.0,1.0,0.0,1.57).setTranslation(4.0,0.11,-7.0)
      .addChild(new Inline().setUrl(new String[] {"RightSweepWing.x3d","https://www.web3d.org/x3d/content/examples/Savage/Robots/JetFireTransformerToy/RightSweepWing.x3d","RightSweepWing.wrl","https://www.web3d.org/x3d/content/examples/Savage/Robots/JetFireTransformerToy/RightSweepWing.wrl"})))
    .addChild(new Transform().setRotation(0.0,0.0,1.0,3.14).setTranslation(0.3,-0.4,-5.0)
      .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57)
        .addChild(new Inline().setUrl(new String[] {"RobotHead.x3d","https://www.web3d.org/x3d/content/examples/Savage/Robots/JetFireTransformerToy/RobotHead.x3d","RobotHead.wrl","https://www.web3d.org/x3d/content/examples/Savage/Robots/JetFireTransformerToy/RobotHead.wrl"})))));
            }
            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[] getCoordinate_7_47_point_1()
		{
			double[] value = {-0.35,-0.32,-6.71,-0.44,-0.17,-5.91,0.0,0.25,-5.9,0.0,0.0,-6.7,-0.35,-0.5,-6.7,-0.45,-0.5,-5.9,-0.44,-0.17,-5.91,-0.35,-0.32,-6.71,-0.44,0.11,-5.01,-0.32,0.23,-5.0,0.0,0.25,-5.9,-0.45,-0.5,-5.0,-0.45,-0.5,-4.55,-0.44,0.25,-4.56,-0.45,-0.5,-3.93,-0.44,0.31,-4.05,-0.34,0.36,-4.55,-0.26,0.57,-3.55,0.6,0.54,0.65,0.62,0.53,1.09,0.7,0.5,2.05,4.62,0.05,2.42,4.62,0.08,1.58,3.79,0.18,0.71,0.69,0.59,-0.95,0.64,0.57,-0.27,0.64,0.57,0.0,2.78,0.32,0.0,1.45,0.49,-0.92,0.19,0.79,4.91,0.0,0.85,6.5,0.11,0.79,6.5,-0.33,-0.54,-6.7,-0.34,-0.68,-5.9,0.0,-0.7,-6.7,0.0,-0.85,-5.9,-0.3,-0.8,-5.0,0.0,-0.95,-5.0,-0.3,-0.8,-4.55,0.0,-0.95,-4.55,-0.3,-0.8,-3.9,0.0,-0.95,-3.55,-0.3,-0.8,-3.55,0.0,-0.43,-7.22,0.0,-0.43,-7.22,0.0,-0.7,-6.7,-0.33,-0.54,-6.7,-0.69,0.28,-4.03,-0.83,0.5,-3.58,-0.89,-0.64,-3.91,-0.93,-0.63,-3.54,-1.1,0.0,-3.55,-1.0,-0.25,-3.95,0.75,0.6,-1.6,-0.65,-0.7,-2.6,0.0,-0.95,-1.8,-1.13,-0.35,-2.63,-1.13,0.25,-2.62,-1.13,-0.35,-2.63,-1.15,-0.35,-1.6,-1.15,0.25,-1.6,-1.13,0.25,-2.62,-0.96,0.25,-3.57,-0.8,0.6,-2.6,-0.8,0.25,-1.6,-0.8,0.6,-2.6,-0.85,0.25,-0.95,-0.85,-0.35,-0.95,-0.9,-0.35,0.65,-0.9,0.25,0.65,-0.87,0.25,0.0,0.03,0.45,7.14,0.22,0.57,7.14,0.22,0.68,7.14,0.03,0.8,7.14,-0.65,-0.35,0.65,-0.65,-0.35,1.1,-0.46,-0.85,-1.8,-0.5,-0.85,-1.6,-0.8,-0.35,-1.6,-0.75,-0.35,-1.8,0.0,-0.95,-1.6,-0.55,-0.84,-0.95,-0.85,-0.35,-0.95,0.0,-0.95,-0.95,-0.33,-0.88,0.65,-0.65,-0.35,0.65,0.0,-0.95,0.65,-0.33,-0.88,1.1,-0.65,-0.35,1.1,0.0,-0.95,1.1,-0.69,0.68,-2.61,-0.41,0.84,-1.6,0.0,0.95,-1.6,0.0,0.85,-2.65,-0.75,0.6,-1.6,-0.41,0.84,-1.6,-0.69,0.68,-2.61,-0.36,0.86,-0.95,0.0,0.95,-0.95};
			return value;
		}
		private double[] getCoordinate_7_47_point_2()
		{
			double[] value = {-0.75,0.6,-1.6,-0.67,0.64,-0.95,-0.34,0.85,0.0,0.0,0.92,0.0,-0.55,0.7,0.0,-0.31,0.78,2.05,0.0,0.85,2.05,0.0,0.85,-3.55,-0.26,0.74,-3.55,0.0,0.85,-2.65,0.0,0.4,6.87,0.25,0.55,6.87,-0.26,0.74,-3.55,-0.69,0.59,-0.95,-0.67,0.64,-0.95,-0.64,0.57,-0.27,-0.55,0.7,0.0,-0.65,0.35,3.45,-0.55,0.35,4.0,-0.4,0.74,4.01,-0.49,0.72,3.51,-0.2,0.8,4.0,-0.2,0.8,4.55,-0.19,0.79,4.91,0.0,0.85,4.9,0.0,0.85,4.0,-0.35,0.35,4.9,-0.19,0.79,4.91,-0.53,-0.23,3.52,-0.45,-0.18,4.02,0.0,-0.6,3.55,0.0,-0.5,4.0,-0.45,-0.18,4.02,-0.53,-0.23,3.52,-0.26,-0.16,4.92,0.0,-0.35,4.9,-0.26,-0.16,4.92,0.0,0.4,6.5,-0.35,0.35,4.9,0.0,0.0,6.4,-0.25,0.7,6.5,-0.25,0.55,6.5,0.0,0.4,6.5,-0.11,0.79,6.5,-0.65,0.25,1.1,-0.65,0.25,0.65,-0.66,0.54,0.48,-0.6,0.54,0.65,-0.59,0.64,0.65,0.0,-0.6,3.55,-0.65,0.25,1.1,0.0,0.85,3.55,-0.49,0.72,3.51,0.0,0.85,3.55,-0.31,0.78,2.05,-0.7,0.5,2.05,-0.7,0.5,2.05,-0.62,0.6,1.09,-0.62,0.53,1.09,0.0,0.85,6.5,-0.25,0.7,6.87,0.0,0.85,6.87,-0.25,0.55,6.87,-0.22,0.68,7.14,-0.03,0.8,7.14,-0.22,0.57,7.14,-0.03,0.45,7.14,-1.45,0.49,-0.92,-0.11,0.79,6.5,-0.64,0.57,0.0,-2.78,0.32,0.0,-4.62,0.05,2.42,-4.62,0.08,1.58,-3.79,0.18,0.71,0.0,0.0,-6.7,0.44,-0.17,-5.91,0.35,-0.32,-6.71,0.45,-0.5,-5.9,0.35,-0.5,-6.7,0.32,0.23,-5.0,0.44,0.11,-5.01,0.45,-0.5,-5.0,0.44,0.25,-4.56,0.45,-0.5,-4.55,0.44,0.31,-4.05,0.45,-0.5,-3.93,0.34,0.36,-4.55,0.26,0.57,-3.55,0.22,0.68,7.14,0.22,0.57,7.14,0.25,0.55,6.87,0.25,0.7,6.87,0.25,0.7,6.87,0.0,0.4,6.87,0.25,0.55,6.5,0.25,0.55,6.5,0.25,0.7,6.5,0.11,0.79,6.5,0.65,0.35,3.45,0.65,0.25,1.1};
			return value;
		}
		private double[] getCoordinate_7_47_point_3()
		{
			double[] value = {0.7,0.5,2.05,0.34,-0.68,-5.9,0.33,-0.54,-6.7,0.3,-0.8,-5.0,0.3,-0.8,-4.55,0.3,-0.8,-3.9,0.3,-0.8,-3.55,0.35,-0.32,-6.71,0.35,-0.5,-6.7,0.33,-0.54,-6.7,0.83,0.5,-3.58,0.69,0.28,-4.03,1.0,-0.25,-3.95,1.1,0.0,-3.55,0.93,-0.63,-3.54,0.89,-0.64,-3.91,0.65,0.25,1.1,0.62,0.6,1.09,0.65,-0.7,-2.6,1.13,-0.35,-2.63,1.15,0.25,-1.6,1.15,-0.35,-1.6,1.13,-0.35,-2.63,1.13,0.25,-2.62,1.13,0.25,-2.62,0.96,0.25,-3.57,0.8,0.25,-1.6,0.8,0.6,-2.6,0.8,0.6,-2.6,0.49,0.72,3.51,0.85,0.25,-0.95,0.87,0.25,0.0,0.9,0.25,0.65,0.9,-0.35,0.65,0.85,-0.35,-0.95,0.31,0.78,2.05,0.9,-0.35,0.65,0.65,-0.35,1.1,0.65,-0.35,0.65,0.85,-0.35,-0.95,0.75,-0.35,-1.8,0.8,-0.35,-1.6,0.5,-0.85,-1.6,0.46,-0.85,-1.8,0.55,-0.84,-0.95,0.33,-0.88,0.65,0.33,-0.88,1.1,0.41,0.84,-1.6,0.69,0.68,-2.61,0.69,0.68,-2.61,0.41,0.84,-1.6,0.36,0.86,-0.95,0.67,0.64,-0.95,0.75,0.6,-1.6,0.34,0.85,0.0,0.55,0.7,0.0,0.26,0.74,-3.55,0.26,0.74,-3.55,0.67,0.64,-0.95,0.55,0.7,0.0,0.59,0.64,0.65,0.66,0.54,0.48,0.4,0.74,4.01,0.55,0.35,4.0,0.2,0.8,4.55,0.2,0.8,4.0,0.19,0.79,4.91,0.35,0.35,4.9,0.45,-0.18,4.02,0.53,-0.23,3.52,0.0,-0.5,4.0,0.55,0.35,4.0,0.35,0.35,4.9,0.26,-0.16,4.92,0.45,-0.18,4.02,0.65,0.25,0.65,0.33,-0.88,1.1,0.65,-0.35,1.1,0.0,-0.6,5.95,0.0,-0.45,6.2,0.2,0.8,4.0,0.34,0.85,0.0,0.31,0.78,2.05,0.8,-0.35,-1.6,0.75,-0.35,-1.8,2.2,0.15,6.7,2.2,0.15,6.35,0.2,0.8,4.55,0.0,1.7,4.9,0.0,2.4,5.65,0.0,2.75,6.15,0.0,2.85,6.7,0.0,0.95,4.0,0.0,0.95,3.55,-0.8,-0.35,-1.6,-0.75,-0.35,-1.8,-0.34,0.85,0.0,-0.4,0.74,4.01,-2.2,0.15,6.7,-2.2,0.15,6.35};
			return value;
		}
		private double[] getCoordinate_7_47_point_4()
		{
			double[] value = {-0.33,0.52,-5.0,0.0,0.85,-4.85,-0.34,0.68,-4.55,0.0,0.91,-3.44,0.0,0.98,-4.4,0.34,0.68,-4.55,0.33,0.52,-5.0,0.0,0.91,-3.44,0.33,0.52,-5.0,0.32,0.23,-5.0,0.0,0.25,5.9};
			return value;
		}


		/** Define subarrays using type double[] */
		private double[] getCoordinate_9_52_point_1()
		{
			double[] value = {-0.35,-0.32,-6.71,-0.44,-0.17,-5.91,0.0,0.25,-5.9,0.0,0.0,-6.7,-0.35,-0.5,-6.7,-0.45,-0.5,-5.9,-0.44,-0.17,-5.91,-0.35,-0.32,-6.71,-0.44,0.11,-5.01,-0.32,0.23,-5.0,0.0,0.25,-5.9,-0.45,-0.5,-5.0,-0.45,-0.5,-4.55,-0.44,0.25,-4.56,-0.45,-0.5,-3.93,-0.44,0.31,-4.05,-0.34,0.36,-4.55,-0.26,0.57,-3.55,0.6,0.54,0.65,0.62,0.53,1.09,0.7,0.5,2.05,4.62,0.05,2.42,4.62,0.08,1.58,3.79,0.18,0.71,0.69,0.59,-0.95,0.64,0.57,-0.27,0.64,0.57,0.0,2.78,0.32,0.0,1.45,0.49,-0.92,0.19,0.79,4.91,0.0,0.85,6.5,0.11,0.79,6.5,-0.33,-0.54,-6.7,-0.34,-0.68,-5.9,0.0,-0.7,-6.7,0.0,-0.85,-5.9,-0.3,-0.8,-5.0,0.0,-0.95,-5.0,-0.3,-0.8,-4.55,0.0,-0.95,-4.55,-0.3,-0.8,-3.9,0.0,-0.95,-3.55,-0.3,-0.8,-3.55,0.0,-0.43,-7.22,0.0,-0.43,-7.22,0.0,-0.7,-6.7,-0.33,-0.54,-6.7,-0.69,0.28,-4.03,-0.83,0.5,-3.58,-0.89,-0.64,-3.91,-0.93,-0.63,-3.54,-1.1,0.0,-3.55,-1.0,-0.25,-3.95,0.75,0.6,-1.6,-0.65,-0.7,-2.6,0.0,-0.95,-1.8,-1.13,-0.35,-2.63,-1.13,0.25,-2.62,-1.13,-0.35,-2.63,-1.15,-0.35,-1.6,-1.15,0.25,-1.6,-1.13,0.25,-2.62,-0.96,0.25,-3.57,-0.8,0.6,-2.6,-0.8,0.25,-1.6,-0.8,0.6,-2.6,-0.85,0.25,-0.95,-0.85,-0.35,-0.95,-0.9,-0.35,0.65,-0.9,0.25,0.65,-0.87,0.25,0.0,0.03,0.45,7.14,0.22,0.57,7.14,0.22,0.68,7.14,0.03,0.8,7.14,-0.65,-0.35,0.65,-0.65,-0.35,1.1,-0.46,-0.85,-1.8,-0.5,-0.85,-1.6,-0.8,-0.35,-1.6,-0.75,-0.35,-1.8,0.0,-0.95,-1.6,-0.55,-0.84,-0.95,-0.85,-0.35,-0.95,0.0,-0.95,-0.95,-0.33,-0.88,0.65,-0.65,-0.35,0.65,0.0,-0.95,0.65,-0.33,-0.88,1.1,-0.65,-0.35,1.1,0.0,-0.95,1.1,-0.69,0.68,-2.61,-0.41,0.84,-1.6,0.0,0.95,-1.6,0.0,0.85,-2.65,-0.75,0.6,-1.6,-0.41,0.84,-1.6,-0.69,0.68,-2.61,-0.36,0.86,-0.95,0.0,0.95,-0.95};
			return value;
		}
		private double[] getCoordinate_9_52_point_2()
		{
			double[] value = {-0.75,0.6,-1.6,-0.67,0.64,-0.95,-0.34,0.85,0.0,0.0,0.92,0.0,-0.55,0.7,0.0,-0.31,0.78,2.05,0.0,0.85,2.05,0.0,0.85,-3.55,-0.26,0.74,-3.55,0.0,0.85,-2.65,0.0,0.4,6.87,0.25,0.55,6.87,-0.26,0.74,-3.55,-0.69,0.59,-0.95,-0.67,0.64,-0.95,-0.64,0.57,-0.27,-0.55,0.7,0.0,-0.65,0.35,3.45,-0.55,0.35,4.0,-0.4,0.74,4.01,-0.49,0.72,3.51,-0.2,0.8,4.0,-0.2,0.8,4.55,-0.19,0.79,4.91,0.0,0.85,4.9,0.0,0.85,4.0,-0.35,0.35,4.9,-0.19,0.79,4.91,-0.53,-0.23,3.52,-0.45,-0.18,4.02,0.0,-0.6,3.55,0.0,-0.5,4.0,-0.45,-0.18,4.02,-0.53,-0.23,3.52,-0.26,-0.16,4.92,0.0,-0.35,4.9,-0.26,-0.16,4.92,0.0,0.4,6.5,-0.35,0.35,4.9,0.0,0.0,6.4,-0.25,0.7,6.5,-0.25,0.55,6.5,0.0,0.4,6.5,-0.11,0.79,6.5,-0.65,0.25,1.1,-0.65,0.25,0.65,-0.66,0.54,0.48,-0.6,0.54,0.65,-0.59,0.64,0.65,0.0,-0.6,3.55,-0.65,0.25,1.1,0.0,0.85,3.55,-0.49,0.72,3.51,0.0,0.85,3.55,-0.31,0.78,2.05,-0.7,0.5,2.05,-0.7,0.5,2.05,-0.62,0.6,1.09,-0.62,0.53,1.09,0.0,0.85,6.5,-0.25,0.7,6.87,0.0,0.85,6.87,-0.25,0.55,6.87,-0.22,0.68,7.14,-0.03,0.8,7.14,-0.22,0.57,7.14,-0.03,0.45,7.14,-1.45,0.49,-0.92,-0.11,0.79,6.5,-0.64,0.57,0.0,-2.78,0.32,0.0,-4.62,0.05,2.42,-4.62,0.08,1.58,-3.79,0.18,0.71,0.0,0.0,-6.7,0.44,-0.17,-5.91,0.35,-0.32,-6.71,0.45,-0.5,-5.9,0.35,-0.5,-6.7,0.32,0.23,-5.0,0.44,0.11,-5.01,0.45,-0.5,-5.0,0.44,0.25,-4.56,0.45,-0.5,-4.55,0.44,0.31,-4.05,0.45,-0.5,-3.93,0.34,0.36,-4.55,0.26,0.57,-3.55,0.22,0.68,7.14,0.22,0.57,7.14,0.25,0.55,6.87,0.25,0.7,6.87,0.25,0.7,6.87,0.0,0.4,6.87,0.25,0.55,6.5,0.25,0.55,6.5,0.25,0.7,6.5,0.11,0.79,6.5,0.65,0.35,3.45,0.65,0.25,1.1};
			return value;
		}
		private double[] getCoordinate_9_52_point_3()
		{
			double[] value = {0.7,0.5,2.05,0.34,-0.68,-5.9,0.33,-0.54,-6.7,0.3,-0.8,-5.0,0.3,-0.8,-4.55,0.3,-0.8,-3.9,0.3,-0.8,-3.55,0.35,-0.32,-6.71,0.35,-0.5,-6.7,0.33,-0.54,-6.7,0.83,0.5,-3.58,0.69,0.28,-4.03,1.0,-0.25,-3.95,1.1,0.0,-3.55,0.93,-0.63,-3.54,0.89,-0.64,-3.91,0.65,0.25,1.1,0.62,0.6,1.09,0.65,-0.7,-2.6,1.13,-0.35,-2.63,1.15,0.25,-1.6,1.15,-0.35,-1.6,1.13,-0.35,-2.63,1.13,0.25,-2.62,1.13,0.25,-2.62,0.96,0.25,-3.57,0.8,0.25,-1.6,0.8,0.6,-2.6,0.8,0.6,-2.6,0.49,0.72,3.51,0.85,0.25,-0.95,0.87,0.25,0.0,0.9,0.25,0.65,0.9,-0.35,0.65,0.85,-0.35,-0.95,0.31,0.78,2.05,0.9,-0.35,0.65,0.65,-0.35,1.1,0.65,-0.35,0.65,0.85,-0.35,-0.95,0.75,-0.35,-1.8,0.8,-0.35,-1.6,0.5,-0.85,-1.6,0.46,-0.85,-1.8,0.55,-0.84,-0.95,0.33,-0.88,0.65,0.33,-0.88,1.1,0.41,0.84,-1.6,0.69,0.68,-2.61,0.69,0.68,-2.61,0.41,0.84,-1.6,0.36,0.86,-0.95,0.67,0.64,-0.95,0.75,0.6,-1.6,0.34,0.85,0.0,0.55,0.7,0.0,0.26,0.74,-3.55,0.26,0.74,-3.55,0.67,0.64,-0.95,0.55,0.7,0.0,0.59,0.64,0.65,0.66,0.54,0.48,0.4,0.74,4.01,0.55,0.35,4.0,0.2,0.8,4.55,0.2,0.8,4.0,0.19,0.79,4.91,0.35,0.35,4.9,0.45,-0.18,4.02,0.53,-0.23,3.52,0.0,-0.5,4.0,0.55,0.35,4.0,0.35,0.35,4.9,0.26,-0.16,4.92,0.45,-0.18,4.02,0.65,0.25,0.65,0.33,-0.88,1.1,0.65,-0.35,1.1,0.0,-0.6,5.95,0.0,-0.45,6.2,0.2,0.8,4.0,0.34,0.85,0.0,0.31,0.78,2.05,0.8,-0.35,-1.6,0.75,-0.35,-1.8,2.2,0.15,6.7,2.2,0.15,6.35,0.2,0.8,4.55,0.0,1.7,4.9,0.0,2.4,5.65,0.0,2.75,6.15,0.0,2.85,6.7,0.0,0.95,4.0,0.0,0.95,3.55,-0.8,-0.35,-1.6,-0.75,-0.35,-1.8,-0.34,0.85,0.0,-0.4,0.74,4.01,-2.2,0.15,6.7,-2.2,0.15,6.35};
			return value;
		}
		private double[] getCoordinate_9_52_point_4()
		{
			double[] value = {-0.33,0.52,-5.0,0.0,0.85,-4.85,-0.34,0.68,-4.55,0.0,0.91,-3.44,0.0,0.98,-4.4,0.34,0.68,-4.55,0.33,0.52,-5.0,0.0,0.91,-3.44,0.33,0.52,-5.0,0.32,0.23,-5.0,0.0,0.57,-2.5};
			return value;
		}

		/** Large attribute array: Coordinate point field, scene-graph level=7, element #47, 933 total numbers made up of 311 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 getCoordinate_7_47_point()
		{
			MFVec3f Coordinate_7_47_point = new MFVec3f()/*2.finalize*/
				.append(new MFVec3f(getCoordinate_7_47_point_1()))
				.append(new MFVec3f(getCoordinate_7_47_point_2()))
				.append(new MFVec3f(getCoordinate_7_47_point_3()))
				.append(new MFVec3f(getCoordinate_7_47_point_4()));
			return Coordinate_7_47_point;
		}
		/** Large attribute array: Coordinate point field, scene-graph level=9, element #52, 933 total numbers made up of 311 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 getCoordinate_9_52_point()
		{
			MFVec3f Coordinate_9_52_point = new MFVec3f()/*2.finalize*/
				.append(new MFVec3f(getCoordinate_9_52_point_1()))
				.append(new MFVec3f(getCoordinate_9_52_point_2()))
				.append(new MFVec3f(getCoordinate_9_52_point_3()))
				.append(new MFVec3f(getCoordinate_9_52_point_4()));
			return Coordinate_9_52_point;
		}

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

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