package Savage.Weapons.Guns;

import org.web3d.x3d.jsail.Core.*;
import org.web3d.x3d.jsail.EnvironmentalEffects.*;
import org.web3d.x3d.jsail.EnvironmentalSensor.*;
import org.web3d.x3d.jsail.EventUtilities.*;
import org.web3d.x3d.jsail.fields.*;
import org.web3d.x3d.jsail.Geometry3D.*;
import org.web3d.x3d.jsail.Grouping.*;
import org.web3d.x3d.jsail.Interpolation.*;
import org.web3d.x3d.jsail.Navigation.*;
import org.web3d.x3d.jsail.Networking.*;
import org.web3d.x3d.jsail.PointingDeviceSensor.*;
import org.web3d.x3d.jsail.Scripting.*;
import org.web3d.x3d.jsail.Shape.*;
import org.web3d.x3d.jsail.Sound.*;
import org.web3d.x3d.jsail.Text.*;
import org.web3d.x3d.jsail.Texturing.*;
import org.web3d.x3d.jsail.Time.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> M198 Howitzer to scale. </p>
 <p> Related links: Catalog page <a href="../../../../Weapons/Guns/M198HowitzerWithExplosionIndex.html" target="_blank">M198HowitzerWithExplosion</a>,  source <a href="../../../../Weapons/Guns/M198HowitzerWithExplosion.java">M198HowitzerWithExplosion.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="../../../../Weapons/Guns/M198HowitzerWithExplosion.x3d">M198HowitzerWithExplosion.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> M198 Howitzer to scale </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> J.P. McDonough </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 7 January 2004 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 12 October 2023 </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/land/m198.htm" target="_blank">https://www.fas.org/man/dod-101/sys/land/m198.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/Weapons/Guns/M198HowitzerWithExplosion.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/Weapons/Guns/M198HowitzerWithExplosion.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> X3D-Edit 4.0, <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="../../../../Weapons/Guns/../../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 J.P. McDonough
 */

public class M198HowitzerWithExplosion
{
	/** Default constructor to create this object. */
	public M198HowitzerWithExplosion ()
	{
	  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("M198HowitzerWithExplosion.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("M198 Howitzer to scale"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("J.P. McDonough"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("7 January 2004"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("12 October 2023"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://www.fas.org/man/dod-101/sys/land/m198.htm"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Savage/Weapons/Guns/M198HowitzerWithExplosion.x3d"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("X3D-Edit 4.0, 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("M198HowitzerWithExplosion.x3d"))
    .addComments(" The howitzer performs the following actions: 1. Trails can be spread and closed manually. 2. Wheels can be raised and lowered by clicking on them from either position. 3. The travellock can be raised only. 4. A round is fired by clicking on the billboard. best viewed from the \"ride the round\" view in order to see effects on target. Will only hit target if tube is not moved first. 5. Tube elevates and traverses. ")
    .addChild(new Sound().setMaxBack(100).setMaxFront(100).setMinBack(0.01).setMinFront(0.01)
      .setSource(new AudioClip("CannonFireSound").setDescription("Cannon fire sound").setUrl(new String[] {"../../GroundVehicles/T72M/CannonFire.wav","https://www.web3d.org/x3d/content/examples/Savage/GroundVehicles/T72M/CannonFire.wav"})))
    .addChild(new Viewpoint("betweenTrails").setDescription("between Trails").setOrientation(-1.0,0.0,0.0,0.0).setPosition(0.0,1.4,10.0))
    .addChild(new Viewpoint("sideViewClose").setDescription("Side View Close").setOrientation(0.007,0.997,0.076,1.7635).setPosition(9.8,2.2,-1.8))
    .addChild(new Viewpoint("sideView").setDescription("from Side").setOrientation(0.0,1.0,0.0,1.57).setPosition(320.0,10.0,-160.0))
    .addChild(new Viewpoint("underTube").setDescription("under Tube").setOrientation(-0.02,-0.982,-0.19,3.1266).setPosition(0.0,5.7,-7.4))
    .addChild(new Viewpoint("downBarrel").setDescription("down Barrel").setOrientation(0.012,-0.925,-0.381,3.138).setPosition(-0.1,7.1,-6.2))
    .addComments(" Roughly to scale. ")
    .addChild(new Group("M198_Howitzer")
      .addChild(new Group("LowerCar")
        .addChild(new Shape()
          .setGeometry(new Cylinder("LowerCarriage1").setHeight(.5))
          .setAppearance(new Appearance("camiPaint")
            .setMaterial(new Material("cami").setAmbientIntensity(0.25).setDiffuseColor(0.054,0.233,0.39).setShininess(0))
            .setTexture(new ImageTexture("camo").setRepeatS(false).setRepeatT(false).setUrl(new String[] {"greenCamo.jpg","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/greenCamo.jpg"}))))
        .addChild(new Transform("rightTrailMover").setTranslation(.1,0.0,0.0)
          .addChild(new Transform("RightTrail").setRotation(0.0,1.0,0.0,-1.1).setTranslation(0.0,-.3,0.0)
            .addChild(new Transform("brakeResevoir").setRotation(0.0,1.0,0.0,1.57).setTranslation(2.0,.27,0.0)
              .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57).setScale(1.6,1.0,1.2)
                .addChild(new Shape()
                  .setGeometry(new Cylinder().setHeight(1.2).setRadius(.15))
                  .setAppearance(new Appearance().setUSE("camiPaint")))))
            .addChild(new Transform("basePlateClamp").setRotation(0.0,1.0,0.0,1.7).setScale(.05,.05,.05).setTranslation(2.7,.6,-.2)
              .addChild(new Shape("clamp")
                .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {0.0,0.0,1.0,0.0,1.0,2.0,3.0,2.0,3.0,3.0,0.0,3.0,0.0,0.0})).setSolid(false).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,2.0,0.0,0.0})))
                .setAppearance(new Appearance().setUSE("camiPaint"))))
            .addChild(new Transform().setRotation(0.0,1.0,0.0,-1.7).setScale(.05,.05,.05).setTranslation(1.7,.6,-.2)
              .addChild(new Shape().setUSE("clamp")))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,-1.57)
              .addChild(new Transform().setScale(.22,.3,.19)
                .addChild(new Shape("trail")
                  .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {0.0,0.0,0.0,3.0,16.0,2.2,20.0,1.0,20.0,-1.0,18.5,-1.0,18.0,0.0,0.0,0.0})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,1.5,0.0})))
                  .setAppearance(new Appearance().setUSE("camiPaint"))))))
          .addChild(new Transform("RightSpade").setRotation(0.0,1.0,0.0,.5).setScale(.07,.1,.1).setTranslation(2.9,-0.45,3.45)
            .addChild(new Transform().setRotation(0.0,1.0,0.0,3.14)
              .addChild(new Transform().setRotation(1.0,0.0,0.0,-1.57)
                .addChild(new Shape("spade")
                  .setAppearance(new Appearance().setUSE("camiPaint"))
                  .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {0.0,0.0,5.0,0.0,4.0,-5.0,4.0,-4.0,3.85,-3.5,3.75,-3.0,3.5,-2.0,3.0,-1.0,0.0,-.5,0.0,0.0})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,20.0,0.0,0.0})))))))
          .addChild(new CylinderSensor("trailSpreader").setDescription("Used to spread the trails").setMaxAngle(0).setMinAngle(-.5))
          .addChild(new ROUTE().setFromNode("trailSpreader").setFromField("rotation_changed").setToNode("rightTrailMover").setToField("set_rotation")))
        .addChild(new Transform("leftTrailMover").setTranslation(-.1,0.0,0.0)
          .addChild(new Transform("leftTrail").setRotation(0.0,1.0,0.0,-2.1).setTranslation(-.5,-.3,-.25)
            .addChild(new Transform("lbasePlateClamp").setRotation(0.0,1.0,0.0,1.7).setScale(.05,.05,.05).setTranslation(2.7,.6,-.2)
              .addChild(new Shape().setUSE("clamp")))
            .addChild(new Transform().setRotation(0.0,1.0,0.0,-1.7).setScale(.05,.05,.05).setTranslation(1.7,.6,-.2)
              .addChild(new Shape().setUSE("clamp")))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,-1.57)
              .addChild(new Transform().setScale(.22,.3,.19)
                .addChild(new Shape().setUSE("trail")))))
          .addChild(new Transform("leftSpade").setRotation(0.0,1.0,0.0,-.523).setScale(.07,.1,.1).setTranslation(-1.9,-0.45,3.9)
            .addChild(new Transform().setCenter(.5,0.0,.5).setRotation(0.0,1.0,0.0,3.14)
              .addChild(new Transform().setRotation(1.0,0.0,0.0,-1.57)
                .addChild(new Shape().setUSE("spade")))))
          .addChild(new CylinderSensor("lTrailSpreader").setDescription("Used to spread the trails").setMaxAngle(.5))
          .addChild(new ROUTE().setFromNode("lTrailSpreader").setFromField("rotation_changed").setToNode("leftTrailMover").setToField("set_rotation")))
        .addChild(new Transform().setTranslation(0.0,-.25,-.75)
          .addChild(new Shape("basePlate")
            .setGeometry(new Cone().setBottomRadius(.75).setHeight(.25))
            .setAppearance(new Appearance().setUSE("camiPaint"))))
        .addChild(new Group("wheelRaiser")
          .addChild(new Transform("AnimationTransform").setRotation(1.0,0.0,0.0,.1)
            .addChild(new Switch("ButtonChoice").setWhichChoice(0)
              .addChild(new Group()
                .addChild(new Transform().setScale(4.0,1.0,1.0).setTranslation(0.0,-.3,-.3)
                  .addChild(new Shape("ClearSphere")
                    .setAppearance(new Appearance()
                      .setMaterial(new Material("Transparent").setEmissiveColor(1.0,1.0,1.0).setTransparency(1.0)))
                    .setGeometry(new Sphere().setRadius(.5))))
                .addChild(new TouchSensor("ClearSphere1").setDescription("used to raise and lower the wheels"))
                .addChild(new OrientationInterpolator("wheelUp").setKey(new double[] {0.0,.25,.5,.75,.85,1.0}).setKeyValue(new MFRotation(new double[] {1.0,0.0,0.0,0.0,1.0,0.0,0.0,.5,1.0,0.0,0.0,.75,1.0,0.0,0.0,1.25,1.0,0.0,0.0,1.7,1.0,0.0,0.0,2.0})))
                .addChild(new PositionInterpolator("MoveBoxUp").setKey(new double[] {0.0,.5,1.0}).setKeyValue(new MFVec3f(new double[] {0.0,-3.0,0.0,0.0,0.0,0.0,0.0,3.0,0.0})))
                .addChild(new TimeSensor("BoxUpTimer").setCycleInterval(3))
                .addChild(new ROUTE().setFromNode("BoxUpTimer").setFromField("fraction_changed").setToNode("wheelUp").setToField("set_fraction"))
                .addChild(new ROUTE().setFromNode("wheelUp").setFromField("value_changed").setToNode("AnimationTransform").setToField("set_rotation"))
                .addChild(new ROUTE().setFromNode("ClearSphere1").setFromField("touchTime").setToNode("BoxUpTimer").setToField("startTime")))
              .addChild(new Group()
                .addChild(new Transform().setScale(4.0,1.0,1.0).setTranslation(0.0,-.3,-.3)
                  .addChild(new Shape().setUSE("ClearSphere")))
                .addChild(new TouchSensor("ClearSphere2").setDescription("used to raise and lower the wheels"))
                .addChild(new OrientationInterpolator("wheelDown").setKey(new double[] {0.0,.25,.5,.75,.85,1.0}).setKeyValue(new MFRotation(new double[] {1.0,0.0,0.0,2.0,1.0,0.0,0.0,1.7,1.0,0.0,0.0,1.25,1.0,0.0,0.0,.75,1.0,0.0,0.0,.5,1.0,0.0,0.0,0.0})))
                .addChild(new PositionInterpolator("MoveBoxDown").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFVec3f(new double[] {0.0,3.0,0.0,0.0,0.0,0.0,0.0,-3.0,0.0})))
                .addChild(new TimeSensor("BoxDownTimer").setCycleInterval(3))
                .addChild(new ROUTE().setFromNode("BoxDownTimer").setFromField("fraction_changed").setToNode("wheelDown").setToField("set_fraction"))
                .addChild(new ROUTE().setFromNode("wheelDown").setFromField("value_changed").setToNode("AnimationTransform").setToField("set_rotation"))
                .addChild(new ROUTE().setFromNode("ClearSphere2").setFromField("touchTime").setToNode("BoxDownTimer").setToField("startTime"))))
            .addChild(new Group("rightWheel")
              .addChild(new Transform("rightWheel1").setTranslation(.2,-.8,-.3)
                .addChild(new Transform("rightTire").setRotation(0.0,0.0,1.0,-1.57).setTranslation(1.0,.4,0.0)
                  .addChild(new Shape("tire")
                    .setGeometry(new Cylinder().setHeight(.2).setRadius(.4))
                    .setAppearance(new Appearance()
                      .setMaterial(new Material("black").setDiffuseColor(0.1,0.1,0.1).setShininess(0)))))
                .addChild(new Transform("rightRim").setRotation(0.0,0.0,1.0,-1.57).setTranslation(1.0,.4,0.0)
                  .addChild(new Shape("rim")
                    .setGeometry(new Cylinder().setHeight(.22).setRadius(.25))
                    .setAppearance(new Appearance().setUSE("camiPaint")))))
              .addChild(new Transform().setRotation(1.0,0.0,0.0,-1.75)
                .addChild(new Transform("rWheelLift").setRotation(0.0,1.0,0.0,1.57).setScale(.25,.25,.25).setTranslation(1.0,0.0,0.0)
                  .addChild(new Transform()
                    .addChild(new Shape()
                      .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {-1.0,0.0,-0.9,0.435889894354067,-0.8,0.6,-0.7,0.714142842854285,-0.6,0.8,-0.5,0.866025403784439,-0.4,0.916515138991168,-0.3,0.953939201416946,-0.2,0.979795897113271,-0.1,0.99498743710662,0.0,1.0,0.1,0.99498743710662,0.2,0.979795897113271,0.3,0.953939201416946,0.4,0.916515138991168,0.5,0.866025403784439,0.6,0.8,0.7,0.714142842854285,0.8,0.6,0.9,0.435889894354067,1.0,0.0,0.9,-0.435889894354067,0.8,-0.6,0.7,-0.714142842854285,0.6,-0.8,0.5,-0.866025403784439,0.4,-0.916515138991168,0.3,-0.953939201416946,0.2,-0.979795897113271,0.1,-0.99498743710662,0.0,-1.0,-0.1,-0.99498743710662,-0.2,-0.979795897113271,-0.3,-0.953939201416946,-0.4,-0.916515138991168,-0.5,-0.866025403784439,-0.6,-0.8,-0.7,-0.714142842854285,-0.8,-0.6,-0.9,-0.435889894354067,-1.0,0.0})).setScale(new MFVec2f(new double[] {1.0,1.0,1.0,1.0})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,0.0,.3})))
                      .setAppearance(new Appearance().setUSE("camiPaint"))))
                  .addChild(new Transform().setTranslation(1.5,1.5,.45)
                    .addChild(new Shape()
                      .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {-1.0,0.0,-0.9,0.435889894354067,-0.8,0.6,-0.7,0.714142842854285,-0.6,0.8,-0.5,0.866025403784439,-0.4,0.916515138991168,-0.3,0.953939201416946,-0.2,0.979795897113271,-0.1,0.99498743710662,0.0,1.0,0.1,0.99498743710662,0.2,0.979795897113271,0.3,0.953939201416946,0.4,0.916515138991168,0.5,0.866025403784439,0.6,0.8,0.7,0.714142842854285,0.8,0.6,0.9,0.435889894354067,1.0,0.0,0.9,-0.435889894354067,0.8,-0.6,0.7,-0.714142842854285,0.6,-0.8,0.5,-0.866025403784439,0.4,-0.916515138991168,0.3,-0.953939201416946,0.2,-0.979795897113271,0.1,-0.99498743710662,0.0,-1.0,-0.1,-0.99498743710662,-0.2,-0.979795897113271,-0.3,-0.953939201416946,-0.4,-0.916515138991168,-0.5,-0.866025403784439,-0.6,-0.8,-0.7,-0.714142842854285,-0.8,-0.6,-0.9,-0.435889894354067,-1.0,0.0})).setScale(new MFVec2f(new double[] {1.0,1.0,1.0,1.0})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,0.0,.3})))
                      .setAppearance(new Appearance().setUSE("camiPaint"))))
                  .addChild(new Transform().setRotation(0.0,0.0,1.0,1.0).setTranslation(1.0,1.0,0.3)
                    .addChild(new Shape()
                      .setGeometry(new Box().setSize(2.0,1.0,.3))
                      .setAppearance(new Appearance().setUSE("camiPaint")))))))
            .addChild(new Group("leftWheel")
              .addChild(new Transform("leftWheel1").setTranslation(-1.2,-.35,-.35)
                .addChild(new Transform("leftTire").setRotation(0.0,0.0,1.0,-1.57)
                  .addChild(new Shape().setUSE("tire")))
                .addChild(new Transform("leftRim").setRotation(0.0,0.0,1.0,-1.57)
                  .addChild(new Shape().setUSE("rim"))))
              .addChild(new TouchSensor("wheelSensor").setDescription("Point at box to spin it"))
              .addChild(new TimeSensor("CLOCK").setCycleInterval(4).setEnabled(false).setLoop(true))
              .addChild(new OrientationInterpolator("wheelInterpolator").setKey(new double[] {0.0,0.25,0.50,0.75,1.0}).setKeyValue(new MFRotation(new double[] {1.0,0.0,0.0,-1.57,1.0,0.0,0.0,0.0,1.0,0.0,0.0,1.57,1.0,0.0,0.0,3.14,1.0,0.0,0.0,-1.57})))
              .addChild(new Transform().setRotation(1.0,0.0,0.0,-3.1)
                .addChild(new Transform("wheelLift").setRotation(0.0,1.0,0.0,-1.57).setScale(.25,.25,.25).setTranslation(-1.0,0.0,0.0)
                  .addChild(new Transform()
                    .addChild(new Shape()
                      .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {-1.0,0.0,-0.9,0.435889894354067,-0.8,0.6,-0.7,0.714142842854285,-0.6,0.8,-0.5,0.866025403784439,-0.4,0.916515138991168,-0.3,0.953939201416946,-0.2,0.979795897113271,-0.1,0.99498743710662,0.0,1.0,0.1,0.99498743710662,0.2,0.979795897113271,0.3,0.953939201416946,0.4,0.916515138991168,0.5,0.866025403784439,0.6,0.8,0.7,0.714142842854285,0.8,0.6,0.9,0.435889894354067,1.0,0.0,0.9,-0.435889894354067,0.8,-0.6,0.7,-0.714142842854285,0.6,-0.8,0.5,-0.866025403784439,0.4,-0.916515138991168,0.3,-0.953939201416946,0.2,-0.979795897113271,0.1,-0.99498743710662,0.0,-1.0,-0.1,-0.99498743710662,-0.2,-0.979795897113271,-0.3,-0.953939201416946,-0.4,-0.916515138991168,-0.5,-0.866025403784439,-0.6,-0.8,-0.7,-0.714142842854285,-0.8,-0.6,-0.9,-0.435889894354067,-1.0,0.0})).setScale(new MFVec2f(new double[] {1.0,1.0,1.0,1.0})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,0.0,.3})))
                      .setAppearance(new Appearance().setUSE("camiPaint"))))
                  .addChild(new Transform().setTranslation(1.5,1.5,.45)
                    .addChild(new Shape()
                      .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {-1.0,0.0,-0.9,0.435889894354067,-0.8,0.6,-0.7,0.714142842854285,-0.6,0.8,-0.5,0.866025403784439,-0.4,0.916515138991168,-0.3,0.953939201416946,-0.2,0.979795897113271,-0.1,0.99498743710662,0.0,1.0,0.1,0.99498743710662,0.2,0.979795897113271,0.3,0.953939201416946,0.4,0.916515138991168,0.5,0.866025403784439,0.6,0.8,0.7,0.714142842854285,0.8,0.6,0.9,0.435889894354067,1.0,0.0,0.9,-0.435889894354067,0.8,-0.6,0.7,-0.714142842854285,0.6,-0.8,0.5,-0.866025403784439,0.4,-0.916515138991168,0.3,-0.953939201416946,0.2,-0.979795897113271,0.1,-0.99498743710662,0.0,-1.0,-0.1,-0.99498743710662,-0.2,-0.979795897113271,-0.3,-0.953939201416946,-0.4,-0.916515138991168,-0.5,-0.866025403784439,-0.6,-0.8,-0.7,-0.714142842854285,-0.8,-0.6,-0.9,-0.435889894354067,-1.0,0.0})).setScale(new MFVec2f(new double[] {1.0,1.0,1.0,1.0})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,0.0,.3})))
                      .setAppearance(new Appearance().setUSE("camiPaint"))))
                  .addChild(new Transform().setRotation(0.0,0.0,1.0,1.0).setTranslation(1.0,1.0,0.3)
                    .addChild(new Shape()
                      .setGeometry(new Box().setSize(2.0,1.0,.3))
                      .setAppearance(new Appearance().setUSE("camiPaint")))))))))
        .addChild(new Group("AnimationControl")
          .addChild(new IntegerTrigger("SetBoxDown").setIntegerKey(0))
          .addChild(new IntegerTrigger("SetBoxUp").setIntegerKey(1))
          .addChild(new ROUTE().setFromNode("ClearSphere1").setFromField("isActive").setToNode("SetBoxUp").setToField("set_boolean"))
          .addChild(new ROUTE().setFromNode("ClearSphere2").setFromField("isActive").setToNode("SetBoxDown").setToField("set_boolean"))
          .addChild(new ROUTE().setFromNode("SetBoxUp").setFromField("triggerValue").setToNode("ButtonChoice").setToField("whichChoice"))
          .addChild(new ROUTE().setFromNode("SetBoxDown").setFromField("triggerValue").setToNode("ButtonChoice").setToField("whichChoice"))))
      .addChild(new Group("upperCarriagePiece")
        .addChild(new Transform("rotateUpperCarriage").setCenter(0.0,-2.5,0.0)
          .addChild(new Group("upperCarriage")
            .addChild(new Transform("rightTrunion").setRotation(1.0,0.0,0.0,1.57).setTranslation(.6,1.2,.65)
              .addChild(new Transform().setRotation(0.0,1.0,0.0,3.14)
                .addChild(new Shape("left_stantion")
                  .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {0.0,4.0,2.0,43.0,-4.0,5.0,-7.0,10.0,-712.0,-9.0,2.0,-9.0,0.0,-4.0,0.0,4.0})).setScale(new MFVec2f(new double[] {.1,.1,.1,.1})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,.2,0.0,0.0})))
                  .setAppearance(new Appearance().setUSE("camiPaint")))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57).setTranslation(-.4,1.2,.65)
              .addChild(new Transform().setRotation(0.0,1.0,0.0,3.14)
                .addChild(new Shape().setUSE("left_stantion"))))
            .addChild(new Transform("leftHandwheel").setRotation(0.0,1.0,0.0,-1.57).setScale(.8,.8,.8).setTranslation(-.75,1.0,.5)
              .addComments(" This handwheel was copied from the Savage library from the LW155 howitzer ")
              .addChild(new LOD("Crank").setRange(new double[] {25.0})
                .addChild(new Group("handwheelGroup")
                  .addChild(new Transform("CircularHandle")
                    .addChild(new Shape()
                      .setGeometry(new Extrusion().setBeginCap(false).setCreaseAngle(1.57).setCrossSection(new MFVec2f(new double[] {0.1,0.0,0.092,-0.038,0.071,-0.071,0.038,-0.092,0.0,-0.1,-0.038,-0.092,-0.071,-0.071,-0.092,-0.038,-0.1,0.0,-0.092,0.038,-0.071,0.071,-0.038,0.092,0.0,0.1,0.038,0.092,0.071,0.071,0.092,0.038,0.1,0.0})).setEndCap(false).setScale(new MFVec2f(new double[] {0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6,0.6})).setSpine(new MFVec3f(new double[] {0.3,0.0,0.0,0.276,-0.114,0.0,0.213,-0.213,0.0,0.114,-0.276,0.0,0.0,-0.3,0.0,-0.114,-0.276,0.0,-0.213,-0.213,0.0,-0.276,-0.114,0.0,-0.3,0.0,0.0,-0.276,0.114,0.0,-0.213,0.213,0.0,-0.114,0.276,0.0,0.0,0.3,0.0,0.114,0.276,0.0,0.213,0.213,0.0,0.276,0.114,0.0,0.3,0.0,0.0})))
                      .setAppearance(new Appearance()
                        .setMaterial(new Material().setDiffuseColor(.1,.10,.1)))))
                  .addChild(new Transform("CrankShaft").setTranslation(0.0,0.0,-0.05)
                    .addChild(new Transform("Shaft").setRotation(1.0,0.0,0.0,1.57)
                      .addChild(new Shape()
                        .setGeometry(new Cylinder().setHeight(0.02).setRadius(0.08))
                        .setAppearance(new Appearance()
                          .setMaterial(new Material().setDiffuseColor(.1,.1,.1)))))
                    .addChild(new Transform("Top").setRotation(1.0,0.0,0.0,1.57).setTranslation(0.0,0.0,-0.1)
                      .addChild(new Shape()
                        .setGeometry(new Cylinder().setHeight(0.2).setRadius(0.05))
                        .setAppearance(new Appearance()
                          .setMaterial(new Material().setDiffuseColor(.1,.1,.1)))))
                    .addChild(new Transform("TopBall").setTranslation(0.0,0.0,-0.01)
                      .addChild(new Shape()
                        .setGeometry(new Sphere().setRadius(0.05))
                        .setAppearance(new Appearance()
                          .setMaterial(new Material().setDiffuseColor(.1,.1,.1))))))
                  .addChild(new Transform("Struts")
                    .addChild(new Transform("StrutOne").setRotation(1.0,0.0,0.0,0.21).setTranslation(0.0,0.04,-0.05725)
                      .addChild(new Shape()
                        .setGeometry(new Extrusion().setCreaseAngle(3.14).setCrossSection(new MFVec2f(new double[] {0.01,0.0,0.0092,-0.0038,0.0071,-0.0071,0.0038,-0.0092,0.0,-0.01,-0.0038,-0.0092,-0.0071,-0.0071,-0.0092,-0.0038,-0.01,0.0,-0.0092,0.0038,-0.0071,0.0071,-0.0038,0.0092,0.0,0.01,0.0038,0.0092,0.0071,0.0071,0.0092,0.0038,0.01,0.0})).setScale(new MFVec2f(new double[] {4.0,2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.0,4.0})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,0.125,0.0,0.0,0.25,0.0,0.0,0.255,0.0,0.0,0.275,0.0})))
                        .setAppearance(new Appearance()
                          .setMaterial(new Material().setDiffuseColor(.1,.1,.1)))))
                    .addChild(new Transform("StrutTwo").setRotation(0.0,0.0,1.0,2.09)
                      .addChild(new Transform().setUSE("StrutOne")))
                    .addChild(new Transform("StrutThree").setRotation(0.0,0.0,-1.0,2.09)
                      .addChild(new Transform().setUSE("StrutOne")))))
                .addChild(new WorldInfo().setInfo(new String[] {"null node"}))))
            .addChild(new Transform("rightHandwheel").setRotation(0.0,1.0,0.0,1.57).setScale(.8,.8,.8).setTranslation(.75,1.0,.5)
              .addChild(new LOD().setUSE("Crank")))
            .addChild(new Transform("traversingWheel").setRotation(0.0,1.0,0.0,-.85).setScale(.5,.5,.5).setTranslation(-.68,.5,.6)
              .addChild(new LOD().setUSE("Crank")))
            .addChild(new Transform().setTranslation(0.0,.25,0.0)
              .addChild(new Shape("traversingPlatform")
                .setGeometry(new Cylinder().setHeight(.35).setRadius(.8))
                .setAppearance(new Appearance().setUSE("camiPaint"))))
            .addChild(new Transform("rightUpperCylinder").setRotation(0.0,0.0,1.0,1.57).setTranslation(0.0,1.5,.2)
              .addChild(new Transform().setCenter(0.0,0.0,1.0).setRotation(0.0,0.0,1.0,-3.14)
                .addChild(new Transform()
                  .addChild(new Transform("ruc").setCenter(0.0,0.0,.3)
                    .addChild(new Transform("rucL").setRotation(1.0,0.0,0.0,-1.57).setTranslation(0.0,-.48,0.0)
                      .addChild(new Transform().setTranslation(0.0,.050,0.0)
                        .addChild(new Shape("upperCylinder1")
                          .setGeometry(new Cylinder().setHeight(.45).setRadius(.075))
                          .setAppearance(new Appearance().setUSE("camiPaint"))))
                      .addChild(new Transform().setTranslation(0.0,-.22,0.0)
                        .addChild(new Shape("linkBolt")
                          .setGeometry(new Sphere().setRadius(.05))
                          .setAppearance(new Appearance()
                            .setMaterial(new Material().setUSE("black")))))
                      .addChild(new Transform("shrinkCylinder").setTranslation(0.0,.22,0.0)
                        .addChild(new Shape("upperExtender")
                          .setGeometry(new Cylinder().setHeight(.55).setRadius(.060))
                          .setAppearance(new Appearance()
                            .setTexture(new ImageTexture().setUrl(new String[] {"baffle.jpg","https://www.web3d.org/x3d/content/examples/Savage/Weapons/Guns/baffle.jpg"}))))))
                    .addChild(new Transform("rucR").setRotation(1.0,0.0,0.0,-1.57).setTranslation(0.0,.48,0.0)
                      .addChild(new Transform().setTranslation(0.0,.050,0.0)
                        .addChild(new Shape().setUSE("upperCylinder1")))
                      .addChild(new Transform().setTranslation(0.0,-.22,0.0)
                        .addChild(new Shape().setUSE("linkBolt")))
                      .addChild(new Transform("shrinkCylinderR").setTranslation(0.0,.22,0.0)
                        .addChild(new Shape().setUSE("upperExtender")))))))))
          .addChild(new Transform("barrelGroup").setRotation(0.0,0.0,1.0,-1.57)
            .addChild(new Transform("barrelMover1").setCenter(-1.,0.0,.45).setRotation(0.0,0.0,1.0,.01).setTranslation(.2,0.0,0.0)
              .addChild(new CylinderSensor("tubeSensor").setDescription("sensor for tube elevation").setMaxAngle(0).setMinAngle(-.65))
              .addChild(new ROUTE().setFromNode("tubeSensor").setFromField("rotation_changed").setToNode("barrelMover1").setToField("set_rotation"))
              .addChild(new Transform("theBarrel")
                .addChild(new Group("barrel")
                  .addChild(new Transform("recoilTransform").setRotation(0.0,0.0,1.0,1.57).setTranslation(-.20,0.0,-.2)
                    .addChild(new Transform("recoilMover")
                      .addChild(new Transform("tube1").setRotation(1.0,0.0,0.0,-.84).setTranslation(0.0,2.45,-1.0)
                        .addChild(new Transform().setTranslation(0.0,-2.5,0.0)
                          .addChild(new Shape()
                            .setGeometry(new Extrusion("tube").setCrossSection(new MFVec2f(new double[] {-1.0,0.0,-0.9,0.435889894354067,-0.8,0.6,-0.7,0.714142842854285,-0.6,0.8,-0.5,0.866025403784439,-0.4,0.916515138991168,-0.3,0.953939201416946,-0.2,0.979795897113271,-0.1,0.99498743710662,0.0,1.0,0.1,0.99498743710662,0.2,0.979795897113271,0.3,0.953939201416946,0.4,0.916515138991168,0.5,0.866025403784439,0.6,0.8,0.7,0.714142842854285,0.8,0.6,0.9,0.435889894354067,1.0,0.0,0.9,-0.435889894354067,0.8,-0.6,0.7,-0.714142842854285,0.6,-0.8,0.5,-0.866025403784439,0.4,-0.916515138991168,0.3,-0.953939201416946,0.2,-0.979795897113271,0.1,-0.99498743710662,0.0,-1.0,-0.1,-0.99498743710662,-0.2,-0.979795897113271,-0.3,-0.953939201416946,-0.4,-0.916515138991168,-0.5,-0.866025403784439,-0.6,-0.8,-0.7,-0.714142842854285,-0.8,-0.6,-0.9,-0.435889894354067,-1.0,0.0})).setScale(new MFVec2f(new double[] {.2,.2,.2,.2,.18,.18,.18,.18,.2,.2})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,3.5,0.0,0.0,3.6,0.0,0.0,4.7,0.0,0.0,5.2,0.0})))
                            .setAppearance(new Appearance().setUSE("camiPaint")))
                          .addChild(new Transform("shinyPiece").setTranslation(0.0,3.0,0.0)
                            .addChild(new Shape()
                              .setGeometry(new Cylinder().setHeight(1.1).setRadius(.205))
                              .setAppearance(new Appearance("shiny")
                                .setMaterial(new Material().setDiffuseColor(.7,.7,.7))))))
                        .addChild(new Transform("breech").setTranslation(0.0,-2.5,0.0)
                          .addChild(new Shape()
                            .setGeometry(new Cylinder().setHeight(.1).setRadius(.2))
                            .setAppearance(new Appearance().setUSE("shiny")))))
                      .addChild(new Transform("muzzle_break").setTranslation(0.0,.05,0.0)
                        .addChild(new Transform().setRotation(1.0,0.0,0.0,.75).setTranslation(.25,4.48,-3.6)
                          .addChild(new Transform().setRotation(0.0,0.0,1.0,1.57)
                            .addChild(new Transform().setRotation(1.0,0.0,0.0,3.14).setScale(1.6,.7,.85)
                              .addChild(new Shape("muzzleBreak")
                                .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {0.0,0.0,3.0,0.0,3.0,-3.0,2.8,-3.2,2.3,-3.7,2.0,-4.0,1.0,-4.0,.8,-3.8,.3,-3.3,0.0,-3.0,0.0,0.0})).setScale(new MFVec2f(new double[] {.25,.25,.25,.25})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,.25,0.0,0.0})))
                                .setAppearance(new Appearance().setUSE("camiPaint"))))))
                        .addChild(new Transform().setRotation(1.0,0.0,0.0,.75).setTranslation(.25,4.4,-3.2)
                          .addChild(new Shape()
                            .setGeometry(new Box().setSize(.01,.3,.4))
                            .setAppearance(new Appearance()
                              .setMaterial(new Material().setDiffuseColor(.1,.1,.1)))))
                        .addChild(new Transform().setRotation(1.0,0.0,0.0,.75).setTranslation(-.225,4.4,-3.2)
                          .addChild(new Shape()
                            .setGeometry(new Box().setSize(.01,.3,.4))
                            .setAppearance(new Appearance()
                              .setMaterial(new Material().setDiffuseColor(.1,.1,.1)))))
                        .addChild(new Transform().setRotation(1.0,0.0,0.0,-.84).setTranslation(0.0,4.64,-3.45)
                          .addChild(new Shape()
                            .setGeometry(new Cylinder().setHeight(.02).setRadius(.17))
                            .setAppearance(new Appearance()
                              .setMaterial(new Material().setDiffuseColor(.1,.1,.1)))))))
                    .addChild(new Transform("sideBars").setTranslation(0.0,-.2,0.0)
                      .addChild(new Transform("rightSideBar").setRotation(1.0,0.0,0.0,.75).setTranslation(.45,1.9,-.250)
                        .addChild(new Shape("sideBar")
                          .setGeometry(new Box().setSize(.2,.2,2.2))
                          .setAppearance(new Appearance().setUSE("camiPaint"))))
                      .addChild(new Transform("leftSideBar1").setRotation(1.0,0.0,0.0,.75).setTranslation(-.45,1.9,-.250)
                        .addChild(new Shape().setUSE("sideBar")))
                      .addChild(new Transform("lTravelLockAnchor").setRotation(1.0,0.0,0.0,-2.3).setTranslation(-.55,1.7,-.2)
                        .addChild(new Shape()
                          .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {0.0,0.0,0.0,.15,.15,.15,.15,0.0,0.0,0.0})).setScale(new MFVec2f(new double[] {1.0,.85,.75,.75,.5,.5})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,.1,0.0,0.0,.2,0.0})))
                          .setAppearance(new Appearance().setUSE("camiPaint"))))
                      .addChild(new Transform("travelLockAnchor").setRotation(1.0,0.0,0.0,-2.3).setTranslation(.4,1.7,-.2)
                        .addChild(new Shape()
                          .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {0.0,0.0,0.0,.15,.15,.15,.15,0.0,0.0,0.0})).setScale(new MFVec2f(new double[] {1.0,.85,.75,.75,.5,.5})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,.1,0.0,0.0,.2,0.0})))
                          .setAppearance(new Appearance().setUSE("camiPaint"))))
                      .addChild(new Transform().setRotation(1.0,0.0,0.0,.65).setTranslation(.48,2.4,-1.)
                        .addChild(new Shape("upperTravelLocker")
                          .setGeometry(new Box().setSize(.07,.2,.04))
                          .setAppearance(new Appearance().setUSE("camiPaint"))))
                      .addChild(new Transform().setRotation(1.0,0.0,0.0,.65).setTranslation(-.48,2.4,-1.0)
                        .addChild(new Shape().setUSE("upperTravelLocker"))))
                    .addChild(new Transform().setRotation(1.0,0.0,0.0,-.84).setTranslation(0.0,1.65,-.1)
                      .addChild(new Shape("barrelCover")
                        .setGeometry(new Cylinder().setHeight(2.5).setRadius(.4))
                        .setAppearance(new Appearance().setUSE("camiPaint"))))
                    .addChild(new Transform("travelLockPiece").setRotation(1.0,0.0,0.0,-.76).setTranslation(-.5,1.72,-.75)
                      .addChild(new Transform("travelLockOrient").setCenter(0.0,-.5,0.0).setRotation(1.0,0.0,0.0,-2.25)
                        .addChild(new Transform()
                          .addChild(new Shape("travelLock")
                            .setGeometry(new Cylinder().setHeight(1).setRadius(.05))
                            .setAppearance(new Appearance().setUSE("camiPaint"))))
                        .addChild(new Transform().setTranslation(1.0,0.0,0.0)
                          .addChild(new Shape().setUSE("travelLock")))
                        .addChild(new Transform().setRotation(0.0,0.0,1.0,.78).setScale(1.0,1.38,1.0).setTranslation(.5,0.0,0.0)
                          .addChild(new Shape().setUSE("travelLock")))
                        .addChild(new Transform().setCenter(0.0,0.0,-.705).setRotation(0.0,0.0,1.0,-.78).setScale(1.0,1.38,1.0).setTranslation(.5,0.0,0.0)
                          .addChild(new Shape().setUSE("travelLock")))
                        .addChild(new Transform("connectingCylinder").setRotation(0.0,0.0,1.0,1.57).setScale(1.0,.1,1.0).setTranslation(0.0,.5,0.0)
                          .addChild(new Shape().setUSE("travelLock")))
                        .addChild(new Transform().setRotation(0.0,0.0,1.0,1.57).setScale(1.0,.1,1.0).setTranslation(0.0,-.5,0.0)
                          .addChild(new Shape().setUSE("travelLock")))
                        .addChild(new Transform().setRotation(0.0,0.0,1.0,1.57).setScale(1.0,.1,1.0).setTranslation(1.0,.5,0.0)
                          .addChild(new Shape().setUSE("travelLock")))
                        .addChild(new Transform().setRotation(0.0,0.0,1.0,1.57).setScale(1.0,.1,1.0).setTranslation(1.0,-.5,0.0)
                          .addChild(new Shape().setUSE("travelLock"))))
                      .addChild(new OrientationInterpolator("travelLockOrientor").setKey(new double[] {0.0,.25,.5,.75,.85,1.0}).setKeyValue(new MFRotation(new double[] {1.0,0.0,0.0,-2.25,1.0,0.0,0.0,-1.7,1.0,0.0,0.0,-1.25,1.0,0.0,0.0,-.75,1.0,0.0,0.0,-.5,1.0,0.0,0.0,0.0})))
                      .addChild(new TouchSensor("travelLockSensor").setDescription("rasies and lowers travel lock"))
                      .addChild(new TimeSensor("travelLockClock").setCycleInterval(5))
                      .addChild(new ROUTE().setFromNode("travelLockSensor").setFromField("touchTime").setToNode("travelLockClock").setToField("set_startTime"))
                      .addChild(new ROUTE().setFromNode("travelLockClock").setFromField("fraction_changed").setToNode("travelLockOrientor").setToField("set_fraction"))
                      .addChild(new ROUTE().setFromNode("travelLockOrientor").setFromField("value_changed").setToNode("travelLockOrient").setToField("set_rotation")))
                    .addChild(new Transform("theRound").setRotation(1.0,0.0,0.0,-.77).setTranslation(0.0,3.7,-2.5)
                      .addChild(new Transform("theRoundSpinner")
                        .addChild(new Transform()
                          .addChild(new Transform().setScale(.2,1.0,.2)
                            .addChild(new Shape("artyRound")
                              .setAppearance(new Appearance().setUSE("camiPaint"))
                              .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {-1.0,0.0,-0.9,0.435889894354067,-0.8,0.6,-0.7,0.714142842854285,-0.6,0.8,-0.5,0.866025403784439,-0.4,0.916515138991168,-0.3,0.953939201416946,-0.2,0.979795897113271,-0.1,0.99498743710662,0.0,1.0,0.1,0.99498743710662,0.2,0.979795897113271,0.3,0.953939201416946,0.4,0.916515138991168,0.5,0.866025403784439,0.6,0.8,0.7,0.714142842854285,0.8,0.6,0.9,0.435889894354067,1.0,0.0,0.9,-0.435889894354067,0.8,-0.6,0.7,-0.714142842854285,0.6,-0.8,0.5,-0.866025403784439,0.4,-0.916515138991168,0.3,-0.953939201416946,0.2,-0.979795897113271,0.1,-0.99498743710662,0.0,-1.0,-0.1,-0.99498743710662,-0.2,-0.979795897113271,-0.3,-0.953939201416946,-0.4,-0.916515138991168,-0.5,-0.866025403784439,-0.6,-0.8,-0.7,-0.714142842854285,-0.8,-0.6,-0.9,-0.435889894354067,-1.0,0.0})).setScale(new MFVec2f(new double[] {.35,.35,.5,.5,.5,.5,.3,.3,.01,.01})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,.15,0.0,0.0,.8,0.0,0.0,.9,0.0,0.0,1.0,0.0}))))))
                        .addChild(new TimeSensor("spinTimer").setCycleInterval(3).setLoop(true))
                        .addChild(new OrientationInterpolator("roundSpinner").setKey(new double[] {0.0,0.25,0.50,0.75,1.0}).setKeyValue(new MFRotation(new double[] {0.0,1.0,0.0,-1.57,0.0,1.0,0.0,0.0,0.0,1.0,0.0,1.57,0.0,1.0,0.0,3.14,0.0,1.0,0.0,-1.57}))))
                      .addChild(new PositionInterpolator("roundPathInterpolator").setKey(new double[] {0.057,0.0858823529,0.088235294,0.117647059,0.147058824,0.176470588,0.205882353,0.235294118,0.264705882,0.294117647,0.323529412,0.352941176,0.382352941,0.411764706,0.441176471,0.470588235,0.5,0.529411765,0.558823529,0.588235294,0.617647059,0.647058824,0.676470588,0.705882353,0.735294118,0.764705882,0.794117647,0.823529412,0.852941176,0.882352941,0.911764706,0.941176471,0.970588235}).setKeyValue(new MFVec3f(new double[] {0.0,3.8,-2.6,0.0,30.6227766,-10.0,0.0,59.2455532,-20.0,0.0,85.86832981,-30.0,0.0,110.4911064,-40.0,0.0,133.113883,-50.0,0.0,153.7366596,-60.0,0.0,172.3594362,-70.0,0.0,188.9822128,-80.0,0.0,203.6049894,-90.0,0.0,216.227766,-100.0,0.0,226.8505426,-110.0,0.0,235.4733192,-120.0,0.0,242.0960958,-130.0,0.0,246.7188724,-140.0,0.0,249.341649,-150.0,0.0,249.9644256,-160.0,0.0,248.5872022,-170.0,0.0,245.2099788,-180.0,0.0,239.8327554,-190.0,0.0,232.455532,-200.0,0.0,223.0783086,-210.0,0.0,211.7010852,-220.0,0.0,198.3238618,-230.0,0.0,182.9466384,-240.0,0.0,165.569415,-250.0,0.0,146.1921916,-260.0,0.0,124.8149682,-270.0,0.0,101.4377448,-280.0,0.0,76.06052145,-290.0,0.0,48.68329805,-300.0,0.0,19.30607465,-310.0,0.0,-1.0,-320.0})))
                      .addChild(new OrientationInterpolator("roundOrientationInterpolator").setKey(new double[] {0.029411765,0.058823529,0.088235294,0.117647059,0.147058824,0.176470588,0.205882353,0.235294118,0.264705882,0.294117647,0.323529412,0.352941176,0.382352941,0.411764706,0.441176471,0.470588235,0.5,0.529411765,0.558823529,0.588235294,0.617647059,0.647058824,0.676470588,0.705882353,0.735294118,0.764705882,0.794117647,0.823529412,0.852941176,0.882352941,0.911764706,0.941176471,0.970588235}).setKeyValue(new MFRotation(new double[] {1.0,0.0,0.0,-1.03580267483729,1.0,0.0,0.0,-1.07069156372618,1.0,0.0,0.0,-1.10558045261507,1.0,0.0,0.0,-1.14046934150396,1.0,0.0,0.0,-1.17535823039285,1.0,0.0,0.0,-1.21024711928174,1.0,0.0,0.0,-1.24513600817063,1.0,0.0,0.0,-1.28002489705952,1.0,0.0,0.0,-1.31491378594841,1.0,0.0,0.0,-1.34980267483729,1.0,0.0,0.0,-1.38469156372618,1.0,0.0,0.0,-1.41958045261507,1.0,0.0,0.0,-1.45446934150396,1.0,0.0,0.0,-1.48935823039285,1.0,0.0,0.0,-1.52424711928174,1.0,0.0,0.0,-1.55913600817063,1.0,0.0,0.0,-1.59402489705952,1.0,0.0,0.0,-1.6289137859484,1.0,0.0,0.0,-1.66380267483729,1.0,0.0,0.0,-1.69869156372618,1.0,0.0,0.0,-1.73358045261507,1.0,0.0,0.0,-1.76846934150396,1.0,0.0,0.0,-1.80335823039285,1.0,0.0,0.0,-1.83824711928174,1.0,0.0,0.0,-1.87313600817063,1.0,0.0,0.0,-1.90802489705952,1.0,0.0,0.0,-1.9429137859484,1.0,0.0,0.0,-1.97780267483729,1.0,0.0,0.0,-2.01269156372618,1.0,0.0,0.0,-2.04758045261507,1.0,0.0,0.0,-2.08246934150396,1.0,0.0,0.0,-2.11735823039285,1.0,0.0,0.0,-2.15224711928174})))
                      .addChild(new Viewpoint("rideTheRound").setDescription("ride the round").setOrientation(1.0,0.0,0.0,.45).setPosition(0.0,-5.0,10.0)))
                    .addChild(new TimeSensor("RECOILTIMER").setCycleInterval(5))
                    .addChild(new PositionInterpolator("recoil").setKey(new double[] {0.0,.2,.4,.6,.8,1.0}).setKeyValue(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,-.20,.25,0.0,-.40,.5,0.0,-.20,.25,0.0,-.10,.15,0.0,0.0,0.0})))
                    .addChild(new ROUTE().setFromNode("RECOILTIMER").setFromField("fraction_changed").setToNode("recoil").setToField("set_fraction"))
                    .addChild(new ROUTE().setFromNode("recoil").setFromField("value_changed").setToNode("recoilMover").setToField("set_translation")))
                  .addChild(new Transform("shotEffects").setRotation(1.0,0.0,0.0,1.57).setTranslation(-4.7,0.0,-3.5)
                    .addChild(new Transform("hotGas").setRotation(0.0,0.0,1.0,-.76).setTranslation(-.3,-.3,0.0)
                      .addChild(new Group()
                        .addChild(new Transform("BallTransform").setScale(.000001,.000001,.0000001)
                          .addChild(new Shape()
                            .setGeometry(new Sphere("EXPSHAPE").setRadius(25))
                            .setAppearance(new Appearance()
                              .addComments(" explosion.png is from the Pearl Harbor scene from www.planetnine.com. ")
                              .setTexture(new ImageTexture("explosion").setUrl(new String[] {"../../GroundVehicles/T72M/explosion.png","https://www.web3d.org/x3d/content/examples/Savage/GroundVehicles/T72M/explosion.png","https://www.web3d.org/x3d/content/examples/Savage/Weapons/Missiles/explosion.png"})))))
                        .addChild(new PositionInterpolator("BALLSIZE").setKey(new double[] {0.0,0.1,0.2,.3,.4,.5,.6,.7,.8,.9,1.0}).setKeyValue(new MFVec3f(new double[] {0.0,0.0,0.0,.003,.001,.003,.006,.002,.006,.01,.003,.01,.015,.006,.015,.02,.02,.02,.01,.01,.01,.006,.006,.006,.003,.003,.003,0.0,0.0,0.0,0.0,0.0,0.0})))
                        .addChild(new TimeSensor("BOOMCLOCK").setCycleInterval(.85))))
                    .addChild(new Transform().setRotation(0.0,0.0,1.0,-.76)
                      .addChild(new Transform("BoomTransform").setScale(0.00001,0.0001,0.00001).setTranslation(0.0,0.0,0.0)
                        .addChild(new Shape()
                          .setGeometry(new Extrusion().setBeginCap(false).setCreaseAngle(1.57).setCrossSection(new MFVec2f(new double[] {1.0,0.0,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.0,-1.0,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.0,-0.0,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.0,1.0,0.38,0.92,0.71,0.71,0.92,0.38,1.0,0.0})).setEndCap(false).setSpine(new MFVec3f(new double[] {2.0,0.0,0.0,1.85,0.0,0.77,1.41,0.0,1.41,0.77,0.0,1.85,0.0,0.0,2.0,-0.77,0.0,1.85,-1.41,0.0,1.41,-1.85,0.0,0.77,-2.0,0.0,0.0,-1.85,0.0,-0.77,-1.41,0.0,-1.41,-0.77,0.0,-1.85,0.0,0.0,-2.0,0.77,0.0,-1.85,1.41,0.0,-1.41,1.85,0.0,-0.77,2.0,0.0,0.0})))
                          .setAppearance(new Appearance()
                            .setMaterial(new Material("BoomMaterial"))
                            .setTexture(new ImageTexture().setUrl(new String[] {"../../ShipsMilitary/FrigateYavuzTurkey/Boom1.jpg","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/FrigateYavuzTurkey/Boom1.jpg"}))))
                        .addChild(new ScalarInterpolator("TransparencyInterp").setKey(new double[] {0.0,0.04,0.1,0.7,1.0}).setKeyValue(new double[] {1.0,0.2,0.3,1.0,1.0}))
                        .addChild(new PositionInterpolator("ScaleInterp").setKey(new double[] {0.0,0.04,0.1,0.7,1.0}).setKeyValue(new MFVec3f(new double[] {0.00001,0.00001,0.00001,0.05,0.4,0.05,0.4,0.6,0.4,0.5,0.9,0.5,0.00001,0.0001,0.00001})))
                        .addChild(new TimeSensor("BoomTimer").setCycleInterval(5.0)))
                      .addChild(new ROUTE().setFromNode("BOOMCLOCK").setFromField("fraction_changed").setToNode("BALLSIZE").setToField("set_fraction"))
                      .addChild(new ROUTE().setFromNode("BALLSIZE").setFromField("value_changed").setToNode("BallTransform").setToField("set_scale"))
                      .addChild(new ROUTE().setFromNode("BoomTimer").setFromField("fraction_changed").setToNode("ScaleInterp").setToField("set_fraction"))
                      .addChild(new ROUTE().setFromNode("ScaleInterp").setFromField("value_changed").setToNode("BoomTransform").setToField("set_scale"))
                      .addChild(new ROUTE().setFromNode("BoomTimer").setFromField("fraction_changed").setToNode("TransparencyInterp").setToField("set_fraction"))
                      .addChild(new ROUTE().setFromNode("TransparencyInterp").setFromField("value_changed").setToNode("BoomMaterial").setToField("set_transparency"))))))
              .addChild(new Transform("elevMechMover1")
                .addChild(new Transform()
                  .addChild(new Transform().setRotation(0.0,0.0,1.0,1.57)
                    .addChild(new Transform().setRotation(1.0,0.0,0.0,-.25).setTranslation(.45,1.7,-.3)
                      .addChild(new Shape("elevatingMech1")
                        .setGeometry(new Cylinder().setHeight(1.3).setRadius(.08))
                        .setAppearance(new Appearance().setUSE("camiPaint")))
                      .addChild(new Transform().setTranslation(0.0,-1.0,0.0)
                        .addChild(new Shape("lowerElevMechExtender")
                          .setGeometry(new Cylinder().setHeight(1).setRadius(.070))
                          .setAppearance(new Appearance()
                            .setMaterial(new Material().setDiffuseColor(.7,.7,.7))))))
                    .addChild(new Transform().setRotation(1.0,0.0,0.0,-.25).setTranslation(-.45,1.7,-0.3)
                      .addChild(new Shape().setUSE("elevatingMech1"))
                      .addChild(new Transform().setTranslation(0.0,-1.0,0.0)
                        .addChild(new Shape().setUSE("lowerElevMechExtender"))))))))
            .addChild(new Script("upperCylinderMover").setSourceCode("""
ecmascript:

function barrelRotation (value, eventTime ) {
	angle = value[3];
	outputAngle = .75 * angle;
	upperRotation = new SFRotation ( 0, 1, 0, outputAngle);
	extendCylinder = new SFVec3f ( 0, .22 + (-.7 * angle), 0);	
	shrinkCylinder = new SFVec3f (1, 1.02 * (.85 - angle), 1);
}
""")
              .addField(new field().setName("barrelRotation").setType(field.TYPE_SFROTATION).setAccessType(field.ACCESSTYPE_INPUTONLY))
              .addField(new field().setName("upperRotation").setType(field.TYPE_SFROTATION).setAccessType(field.ACCESSTYPE_OUTPUTONLY))
              .addField(new field().setName("shrinkCylinder").setType(field.TYPE_SFVEC3F).setAccessType(field.ACCESSTYPE_OUTPUTONLY))
              .addField(new field().setName("extendCylinder").setType(field.TYPE_SFVEC3F).setAccessType(field.ACCESSTYPE_OUTPUTONLY)))
            .addChild(new ROUTE().setFromNode("tubeSensor").setFromField("rotation_changed").setToNode("upperCylinderMover").setToField("barrelRotation"))
            .addChild(new ROUTE().setFromNode("upperCylinderMover").setFromField("upperRotation").setToNode("ruc").setToField("set_rotation"))
            .addChild(new ROUTE().setFromNode("upperCylinderMover").setFromField("extendCylinder").setToNode("shrinkCylinder").setToField("set_translation"))
            .addChild(new ROUTE().setFromNode("upperCylinderMover").setFromField("shrinkCylinder").setToNode("shrinkCylinder").setToField("set_scale"))
            .addChild(new ROUTE().setFromNode("upperCylinderMover").setFromField("extendCylinder").setToNode("shrinkCylinderR").setToField("set_translation"))
            .addChild(new ROUTE().setFromNode("upperCylinderMover").setFromField("shrinkCylinder").setToNode("shrinkCylinderR").setToField("set_scale")))
          .addChild(new CylinderSensor("carriage_sensor").setDescription("sensor for upper carriage deflection").setMaxAngle(.90).setMinAngle(-.90))
          .addChild(new ROUTE().setFromNode("carriage_sensor").setFromField("rotation_changed").setToNode("rotateUpperCarriage").setToField("set_rotation")))))
    .addChild(new Background().setBackUrl(new String[] {"sky2.jpg","https://www.web3d.org/x3d/content/examples/Savage/Weapons/Guns/sky2.jpg"}).setFrontUrl(new String[] {"sky2.jpg","https://www.web3d.org/x3d/content/examples/Savage/Weapons/Guns/sky2.jpg"}).setLeftUrl(new String[] {"sky2.jpg","https://www.web3d.org/x3d/content/examples/Savage/Weapons/Guns/sky2.jpg"}).setRightUrl(new String[] {"sky2.jpg","https://www.web3d.org/x3d/content/examples/Savage/Weapons/Guns/sky2.jpg"}).setTopUrl(new String[] {"sky2.jpg","https://www.web3d.org/x3d/content/examples/Savage/Weapons/Guns/sky2.jpg"}))
    .addChild(new Viewpoint("target").setDescription("as seen from target").setOrientation(0.0,0.995,-0.097,3.14).setPosition(0.0,10.0,-372.0))
    .addChild(new Transform("theGround").setTranslation(0.0,-1.5,0.0)
      .addChild(new Transform().setScale(100.0,.3,100.0)
        .addChild(new Inline().setUrl(new String[] {"../../../Vrml2Sourcebook/Chapter14-ElevationGrid/Figure14.5ElevationGridTerrain.x3d","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter14-ElevationGrid/Figure14.5ElevationGridTerrain.x3d","../../../Vrml2Sourcebook/Chapter14-ElevationGrid/Figure14.5ElevationGridTerrain.wrl","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter14-ElevationGrid/Figure14.5ElevationGridTerrain.wrl"}))))
    .addChild(new ROUTE().setFromNode("wheelSensor").setFromField("isOver").setToNode("CLOCK").setToField("set_enabled"))
    .addChild(new ROUTE().setFromNode("CLOCK").setFromField("fraction_changed").setToNode("wheelInterpolator").setToField("set_fraction"))
    .addChild(new ROUTE().setFromNode("wheelInterpolator").setFromField("value_changed").setToNode("leftWheel1").setToField("set_rotation"))
    .addChild(new Transform("fireTheRound").setTranslation(5.0,3.0,-5.0)
      .addChild(new Billboard("fireMe")
        .addChild(new Transform().setTranslation(-1.0,-.35,0.0)
          .addChild(new Shape()
            .setGeometry(new Text().setString(new String[] {"FIRE!"})
              .setFontStyle(new FontStyle().setJustify(FontStyle.JUSTIFY_MIDDLE_MIDDLE)))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setEmissiveColor(.9,.9,.9)))))
        .addChild(new Shape()
          .setGeometry(new Box("sign").setSize(4.0,2.0,.2))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setTransparency(.6))
            .setTexture(new ImageTexture().setUSE("camo")))))
      .addChild(new TouchSensor("shootRound").setDescription("touch muzzlebreak to shoot round"))
      .addChild(new TimeSensor("clock3").setCycleInterval(15)))
    .addChild(new Transform("targetSphere").setTranslation(0.0,0.0,-320.0)
      .addChild(new Transform()
        .addChild(new Shape()
          .setGeometry(new Box().setSize(10.0,1.0,10.0))
          .setAppearance(new Appearance()
            .setTexture(new ImageTexture().setUrl(new String[] {"bin-laden-target.jpg","https://www.web3d.org/x3d/content/examples/Savage/Weapons/Guns/bin-laden-target.jpg"}))))
        .addChild(new ProximitySensor("explosionsoundsensor").setSize(200.0,400.0,300.0)))
      .addChild(new Transform("explosionvideo").setTranslation(0.0,1.0,0.0)
        .addChild(new Shape()
          .setGeometry(new Box().setSize(10.0,1.0,10.0))
          .setAppearance(new Appearance()
            .setTexture(new MovieTexture("impact").setUrl(new String[] {"Impact.avi","https://www.web3d.org/x3d/content/examples/Savage/Weapons/Guns/Impact.avi"}))
            .setMaterial(new Material().setTransparency(.3)))))
      .addChild(new Sound("explosionSounds").setMaxBack(100).setMaxFront(100).setMinBack(.01).setMinFront(.01)
        .setSource(new AudioClip("explosionSound").setDescription("explosion sound").setUrl(new String[] {"ShellExplode.au","https://www.web3d.org/x3d/content/examples/Savage/Weapons/Guns/ShellExplode.au"})))
      .addChild(new ProximitySensor("explosionsensor").setSize(30.0,30.0,30.0))
      .addChild(new ROUTE().setFromNode("explosionsensor").setFromField("enterTime").setToNode("impact").setToField("startTime"))
      .addChild(new ROUTE().setFromNode("explosionsoundsensor").setFromField("enterTime").setToNode("explosionSound").setToField("startTime")))
    .addChild(new Transform().setScale(.2,1.0,.2).setTranslation(5.0,0.0,0.0)
      .addChild(new Shape().setUSE("artyRound")))
    .addChild(new Transform().setScale(.2,1.0,.2).setTranslation(5.2,0.0,0.0)
      .addChild(new Shape().setUSE("artyRound")))
    .addChild(new Transform().setScale(.2,1.0,.2).setTranslation(5.4,0.0,0.0)
      .addChild(new Shape().setUSE("artyRound")))
    .addChild(new Transform())
    .addChild(new ROUTE().setFromNode("shootRound").setFromField("touchTime").setToNode("BoomTimer").setToField("set_startTime"))
    .addChild(new ROUTE().setFromNode("shootRound").setFromField("touchTime").setToNode("RECOILTIMER").setToField("set_startTime"))
    .addChild(new ROUTE().setFromNode("shootRound").setFromField("touchTime").setToNode("BOOMCLOCK").setToField("set_startTime"))
    .addChild(new ROUTE().setFromNode("shootRound").setFromField("touchTime").setToNode("clock3").setToField("set_startTime"))
    .addChild(new ROUTE().setFromNode("shootRound").setFromField("touchTime").setToNode("CannonFireSound").setToField("startTime"))
    .addChild(new ROUTE().setFromNode("clock3").setFromField("fraction_changed").setToNode("roundPathInterpolator").setToField("set_fraction"))
    .addChild(new ROUTE().setFromNode("clock3").setFromField("fraction_changed").setToNode("roundOrientationInterpolator").setToField("set_fraction"))
    .addChild(new ROUTE().setFromNode("roundPathInterpolator").setFromField("value_changed").setToNode("theRound").setToField("set_translation"))
    .addChild(new ROUTE().setFromNode("roundOrientationInterpolator").setFromField("value_changed").setToNode("theRound").setToField("set_rotation"))
    .addChild(new ROUTE().setFromNode("shootRound").setFromField("touchTime").setToNode("spinTimer").setToField("set_startTime"))
    .addChild(new ROUTE().setFromNode("spinTimer").setFromField("fraction_changed").setToNode("roundSpinner").setToField("set_fraction"))
    .addChild(new ROUTE().setFromNode("roundSpinner").setFromField("value_changed").setToNode("theRoundSpinner").setToField("set_rotation")));
            }
            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 M198HowitzerWithExplosion 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 M198HowitzerWithExplosion().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.Weapons.Guns.M198HowitzerWithExplosion\" 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.Weapons.Guns.M198HowitzerWithExplosion self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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