package Savage.GroundVehicles.BMP1;

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

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> A BMP-1 armored fighting vehicle. </p>
 <p> Related links: Catalog page <a href="../../../../GroundVehicles/BMP1/BMP1Index.html" target="_blank">BMP1</a>,  source <a href="../../../../GroundVehicles/BMP1/BMP1.java">BMP1.java</a>, <a href="https://www.web3d.org/x3d/content/examples/X3dResources.html" target="_blank">X3D Resources</a>, <a href="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html" target="_blank">X3D Scene Authoring Hints</a>, and <a href="https://www.web3d.org/x3d/content/X3dTooltips.html" target="_blank">X3D Tooltips</a>. </p>
	<table style="color:black; border:0px solid; border-spacing:10px 0px;">
        <caption>Scene Meta Information</caption>
		<tr style="background-color:silver; border-color:silver;">
			<td style="text-align:center; padding:10px 0px;"><i>meta tags</i></td>
			<td style="text-align:left;   padding:10px 0px;">&nbsp; Document Metadata </td>
		</tr>

		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> title </i> </td>
			<td> <a href="../../../../GroundVehicles/BMP1/BMP1.x3d">BMP1.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Michael W. Martin </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 1 September 2004 </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> description </i> </td>
			<td> A BMP-1 armored fighting vehicle. </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> subject </i> </td>
			<td> BMP-1 armored fighting vehicle </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> identifier </i> </td>
			<td> <a href="https://www.web3d.org/x3d/content/examples/Savage/GroundVehicles/BMP1/BMP1.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/GroundVehicles/BMP1/BMP1.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> license </i> </td>
			<td> <a href="../../../../GroundVehicles/BMP1/../../license.html">../../license.html</a> </td>
		</tr>
		<tr style="background-color:silver; border-color:silver;">
			<td style="text-align:center;" colspan="2">  &nbsp; </td>
		</tr>
	</table>

	<p>
		This program uses the
		<a href="https://www.web3d.org/specifications/java/X3DJSAIL.html" target="_blank">X3D Java Scene Access Interface Library (X3DJSAIL)</a>.
		It has been produced using the 
		<a href="https://www.web3d.org/x3d/stylesheets/X3dToJava.xslt" target="_blank">X3dToJava.xslt</a>
		stylesheet
	       (<a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/X3dToJava.xslt" target="_blank">version control</a>)
                which is used to create Java source code from an original <code>.x3d</code> model.
	</p>

	* @author Michael W. Martin
 */

public class BMP1
{
	/** Default constructor to create this object. */
	public BMP1 ()
	{
	  initialize();
	}

	/** Create and initialize the X3D model for this object. */
	public final void initialize()
	{
            try { // catch-all
  x3dModel = new X3D().setProfile(X3D.PROFILE_INTERCHANGE).setVersion(X3D.VERSION_3_0)
  .setHead(new head()
    .addComments(" Additional authoring resources for meta-tags: http://www.w3.org/TR/html4/struct/global.html#h-7.4.4 http://dublincore.org/documents/dces http://vancouver-webpages.com/META http://vancouver-webpages.com/META/about-mk-metas2.html Additional authoring resources for language codes: ftp://ftp.isi.edu/in-notes/bcp/bcp47.txt http://www.loc.gov/standards/iso639-2/langhome.html http://www.iana.org/numbers.html#L ")
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("BMP1.x3d"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Michael W. Martin"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("1 September 2004"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("20 October 2019"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("A BMP-1 armored fighting vehicle."))
    .addMeta(new meta().setName(meta.NAME_SUBJECT    ).setContent("BMP-1 armored fighting vehicle"))
    .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_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Savage/GroundVehicles/BMP1/BMP1.x3d"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("BMP1.x3d"))
    .addChild(new Group()
      .addChild(new Viewpoint().setDescription("BMP-1").setJump(false).setPosition(0.0,0.5,10.0))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setScale(2.35,2.35,2.35).setTranslation(0.0,1.2455,0.0)
        .addChild(new Transform()
          .addChild(new Shape()
            .setAppearance(new Appearance("Enemy")
              .setMaterial(new Material().setDiffuseColor(1.0,0.0,0.0)))
            .setGeometry(new IndexedFaceSet().setCoordIndex(new int[] {0,1,2,9,10,11,-1,2,5,4,6,7,9,-1,2,3,5,-1,3,4,5,-1,6,8,7,-1,8,9,7,-1,22,24,14,15,20,18,8,6,4,3,-1,9,8,18,19,16,10,-1,23,22,3,2,1,13,-1,22,23,25,24,-1,20,21,19,18,-1,12,17,15,14,-1,26,16,19,21,-1,21,20,15,17,26,-1,10,16,26,11,-1,1,0,27,13,-1,27,25,23,13,-1,27,12,14,24,25,-1,26,17,12,27,-1,11,26,27,0})
              .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {-.42,.16,-1.4,-.59,.16,-.33,-.59,.16,1.04,-.59,0.0,1.4,-.48,.08,1.49,-.48,.12,1.27,.48,.08,1.49,.48,.12,1.27,.59,0.0,1.4,.59,.16,1.04,.59,.16,-.33,.42,.16,-1.4,-.42,-.27,-1.38,-.59,0.0,-.33,-.42,-.35,.92,.42,-.35,.92,.59,0.0,-.33,.42,-.27,-1.38,.59,-.13,1.21,.59,0.0,1.09,.42,-.13,1.21,.42,0.0,1.09,-.59,-.13,1.21,-.59,0.0,1.09,-.42,-.13,1.21,-.42,0.0,1.09,.42,0.0,-1.4,-.42,0.0,-1.4})))))
          .addChild(new Transform().setTranslation(.5,0.0,0.0)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Enemy"))
              .setGeometry(new IndexedFaceSet().setCoordIndex(new int[] {0,1,2,3,4,5,6,7,8,9,-1,19,18,17,16,15,14,13,12,11,10,-1,10,11,1,0,-1,19,10,0,9,-1,18,19,9,8,-1,17,18,8,7,-1,16,17,7,6,-1,15,16,6,5,-1,14,15,5,4,-1,13,14,4,3,-1,12,13,3,2,-1,11,12,2,1,-1})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {.07,-.04,-1.18,.07,-.06,1.01,.07,-.1,1.14,.07,-.2,1.19,.07,-.3,1.15,.07,-.53,.79,.07,-.53,-.92,.07,-.28,-1.3,.07,-.18,-1.32,.07,-.09,-1.29,-.07,-.04,-1.18,-.07,-.06,1.01,-.07,-.1,1.14,-.07,-.2,1.19,-.07,-.3,1.15,-.07,-.53,.79,-.07,-.53,-.92,-.07,-.28,-1.3,-.07,-.18,-1.32,-.07,-.09,-1.29}))))))
          .addChild(new Transform().setTranslation(-.5,0.0,0.0)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Enemy"))
              .setGeometry(new IndexedFaceSet().setCoordIndex(new int[] {0,1,2,3,4,5,6,7,8,9,-1,19,18,17,16,15,14,13,12,11,10,-1,10,11,1,0,-1,19,10,0,9,-1,18,19,9,8,-1,17,18,8,7,-1,16,17,7,6,-1,15,16,6,5,-1,14,15,5,4,-1,13,14,4,3,-1,12,13,3,2,-1,11,12,2,1,-1})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {.07,-.04,-1.18,.07,-.06,1.01,.07,-.1,1.14,.07,-.2,1.19,.07,-.3,1.15,.07,-.53,.79,.07,-.53,-.92,.07,-.28,-1.3,.07,-.18,-1.32,.07,-.09,-1.29,-.07,-.04,-1.18,-.07,-.06,1.01,-.07,-.1,1.14,-.07,-.2,1.19,-.07,-.3,1.15,-.07,-.53,.79,-.07,-.53,-.92,-.07,-.28,-1.3,-.07,-.18,-1.32,-.07,-.09,-1.29}))))))
          .addChild(new Transform().setTranslation(.36,.17,.4)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Enemy"))
              .setGeometry(new Cylinder().setHeight(.02).setRadius(.165))))
          .addChild(new Transform().setTranslation(.36,.17,.75)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Enemy"))
              .setGeometry(new Cylinder().setHeight(.02).setRadius(.1))))
          .addChild(new Transform().setTranslation(.16,.17,-.77)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Enemy"))
              .setGeometry(new Box().setSize(.22,.02,.33))))
          .addChild(new Transform().setTranslation(-.16,.17,-.77)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Enemy"))
              .setGeometry(new Box().setSize(.22,.02,.33))))
          .addChild(new Transform().setTranslation(.16,.17,-1.15)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Enemy"))
              .setGeometry(new Box().setSize(.22,.02,.33))))
          .addChild(new Transform().setTranslation(-.16,.17,-1.15)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Enemy"))
              .setGeometry(new Box().setSize(.22,.02,.33))))
          .addChild(new Transform().setRotation(1.0,0.0,0.0,-.087).setTranslation(.19,-.05,-1.4)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Enemy"))
              .setGeometry(new Box().setSize(.36,.38,.06))))
          .addChild(new Transform().setRotation(1.0,0.0,0.0,-.087).setTranslation(-.19,-.05,-1.4)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Enemy"))
              .setGeometry(new Box().setSize(.36,.38,.06))))
          .addChild(new Viewpoint().setDescription("Turret Top").setJump(false).setOrientation(0.0,1.0,0.0,3.14).setPosition(0.0,.7,-1.5))
          .addChild(new Transform()
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Enemy"))
              .setGeometry(new IndexedFaceSet().setCoordIndex(new int[] {0,1,2,14,13,12,-1,2,3,4,14,-1,14,4,5,6,7,8,12,13,-1,0,12,10,11,-1,12,8,9,10,-1,3,22,5,4,-1,6,5,22,23,-1,8,7,6,23,24,25,-1,8,25,26,9,-1,9,26,27,10,-1,27,11,10,-1,17,27,26,25,-1,3,2,23,22,-1,1,24,23,2,-1,16,17,25,24,-1,19,15,1,0,-1,1,15,20,16,-1,0,11,18,19,-1,16,20,21,17,-1,27,28,18,11,-1,27,17,21,28,-1,19,18,28,21,-1,19,21,20,15})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {.59,.08,-1.33,.59,.08,-.3,.59,.08,1.22,.59,-.03,1.34,.63,-.08,1.27,.63,-.19,1.14,.63,-.08,.93,.63,-.08,-.3,.63,-.08,-1.18,.63,-.13,-1.4,.63,-.13,-1.49,.59,-.08,-1.49,.63,0.0,-1.25,.63,0.0,-.3,.63,0.0,1.14,.41,.08,-.3,.59,0.0,-.3,.59,0.0,-1.25,.41,-.08,-1.49,.41,.08,-1.33,.41,0.0,-.3,.41,0.0,-1.25,.59,-.19,1.14,.59,-.08,.93,.59,-.08,-.3,.59,-.08,-1.18,.59,-.13,-1.4,.59,-.13,-1.49,.41,-.13,-1.49}))))))
          .addChild(new Transform()
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Enemy"))
              .setGeometry(new IndexedFaceSet().setCcw(false).setCoordIndex(new int[] {0,1,2,14,13,12,-1,2,3,4,14,-1,14,4,5,6,7,8,12,13,-1,0,12,10,11,-1,12,8,9,10,-1,3,22,5,4,-1,6,5,22,23,-1,8,7,6,23,24,25,-1,8,25,26,9,-1,9,26,27,10,-1,27,11,10,-1,17,27,26,25,-1,3,2,23,22,-1,1,24,23,2,-1,16,17,25,24,-1,19,15,1,0,-1,1,15,20,16,-1,0,11,18,19,-1,16,20,21,17,-1,27,28,18,11,-1,27,17,21,28,-1,19,18,28,21,-1,19,21,20,15})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {-.59,.08,-1.33,-.59,.08,-.3,-.59,.08,1.22,-.59,-.03,1.34,-.63,-.08,1.27,-.63,-.19,1.14,-.63,-.08,.93,-.63,-.08,-.3,-.63,-.08,-1.18,-.63,-.13,-1.4,-.63,-.13,-1.49,-.59,-.08,-1.49,-.63,0.0,-1.25,-.63,0.0,-.3,-.63,0.0,1.14,-.41,.08,-.3,-.59,0.0,-.3,-.59,0.0,-1.25,-.41,-.08,-1.49,-.41,.08,-1.33,-.41,0.0,-.3,-.41,0.0,-1.25,-.59,-.19,1.14,-.59,-.08,.93,-.59,-.08,-.3,-.59,-.08,-1.18,-.59,-.13,-1.4,-.59,-.13,-1.49,-.41,-.13,-1.49}))))))
          .addChild(new Transform().setTranslation(.37,.66,-1.33)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Enemy"))
              .setGeometry(new Cylinder().setHeight(1).setRadius(.004))))
          .addChild(new Transform().setTranslation(-.37,.66,-1.33)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Enemy"))
              .setGeometry(new Cylinder().setHeight(1).setRadius(.004)))))
        .addChild(new Transform().setTranslation(0.0,.26,-.18)
          .addChild(new Shape()
            .setAppearance(new Appearance().setUSE("Enemy"))
            .setGeometry(new IndexedFaceSet().setCreaseAngle(.5).setCoordIndex(new int[] {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,-1,31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,-1,16,17,1,0,-1,17,18,2,1,-1,18,19,3,2,-1,19,20,4,3,-1,20,21,5,4,-1,21,22,6,5,-1,22,23,7,6,-1,23,24,8,7,-1,24,25,9,8,-1,25,26,10,9,-1,26,27,11,10,-1,27,28,12,11,-1,28,29,13,12,-1,29,30,14,13,-1,30,31,15,14,-1,31,16,0,15,-1})
              .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {0.24,0.1,-0.035,0.2208,0.1,-0.1262,0.1704,0.1,-0.2054,0.0912,0.1,-0.2558,0.0,0.1,-0.275,-0.0912,0.1,-0.2558,-0.1704,0.1,-0.2054,-0.2208,0.1,-0.1262,-0.24,0.1,-0.035,-0.2208,0.1,0.0562,-0.1704,0.1,0.1354,-0.0912,0.1,0.1858,0.0,0.1,0.205,0.0912,0.1,0.1858,0.1704,0.1,0.1354,0.2208,0.1,0.0562,0.355,-0.1,0.0,0.3266,-0.1,-0.1349,0.25205,-0.1,-0.25205,0.1349,-0.1,-0.3266,0.0,-0.1,-0.355,-0.1349,-0.1,-0.3266,-0.25205,-0.1,-0.25205,-0.3266,-0.1,-0.1349,-0.355,-0.1,0.0,-0.3266,-0.1,0.1349,-0.25205,-0.1,0.25205,-0.1349,-0.1,0.3266,0.0,-0.1,0.355,0.1349,-0.1,0.3266,0.25205,-0.1,0.25205,0.3266,-0.1,0.1349})))))
          .addChild(new Transform().setTranslation(0.0,0.0,.25)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("Enemy"))
              .setGeometry(new Box().setSize(.17,.18,.21)))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57).setTranslation(0.0,.02,.43)
              .addChild(new Shape()
                .setAppearance(new Appearance().setUSE("Enemy"))
                .setGeometry(new Cylinder().setHeight(.66).setRadius(.035))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,-.14).setTranslation(0.0,.11,.29)
              .addChild(new Shape()
                .setAppearance(new Appearance().setUSE("Enemy"))
                .setGeometry(new Box().setSize(.06,.02,.42)))
              .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57).setTranslation(0.0,.035,-.04)
                .addChild(new Shape()
                  .setAppearance(new Appearance().setUSE("Enemy"))
                  .setGeometry(new Cylinder().setHeight(.32).setRadius(.03)))
                .addChild(new Transform().setTranslation(0.0,.2,0.0)
                  .addChild(new Shape()
                    .setAppearance(new Appearance().setUSE("Enemy"))
                    .setGeometry(new Cone().setBottomRadius(.03).setHeight(.08))))
                .addChild(new Transform().setRotation(0.0,1.0,0.0,.785).setTranslation(0.0,-.06,0.0)
                  .addChild(new Shape()
                    .setAppearance(new Appearance().setUSE("Enemy"))
                    .setGeometry(new Box().setSize(.01,.06,.17))))
                .addChild(new Transform().setRotation(0.0,1.0,0.0,-.785).setTranslation(0.0,-.06,0.0)
                  .addChild(new Shape()
                    .setAppearance(new Appearance().setUSE("Enemy"))
                    .setGeometry(new Box().setSize(.01,.06,.17))))))))
        .addChild(new Viewpoint().setDescription("Top Down").setJump(false).setOrientation(0.0,0.785,.785,3.14).setPosition(0.0,6.0,0.0))
        .addChild(new Viewpoint().setDescription("Left Side").setJump(false).setOrientation(0.0,1.0,0.0,1.57).setPosition(6.0,.5,0.0))
        .addChild(new Viewpoint().setDescription("Back").setJump(false).setOrientation(0.0,1.0,0.0,3.14).setPosition(0.0,.5,-6.0))
        .addChild(new Viewpoint().setDescription("Right Side").setJump(false).setOrientation(0.0,1.0,0.0,-1.57).setPosition(-6.0,.5,0.0))
        .addChild(new Viewpoint().setDescription("Front").setJump(false).setPosition(0.0,0.5,6.0)))));
            }
            catch (Exception ex)
            {       
                System.err.println ("*** Further hints on X3DJSAIL errors and exceptions at");
                System.err.println ("*** https://www.web3d.org/specifications/java/X3DJSAIL.html");
                throw (ex);
            }
	}
	// end of initialize() method

	/** The initialized model object, created within initialize() method. */
	private X3D x3dModel;

	/** 
	 * Provide a 
	 * <a href="https://dzone.com/articles/java-copy-shallow-vs-deep-in-which-you-will-swim" target="_blank">shallow copy</a>
	 * of the X3D model.
	 * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html">X3D</a>
	 * @return BMP1 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 BMP1().getX3dModel();
//      System.out.println("X3D model construction complete.");
	
        // next handle command line arguments
        boolean hasArguments = (args != null) && (args.length > 0);
        boolean validate = true; // default
        boolean argumentsLoadNewModel = false;
        String  fileName = new String();

        if (args != null)
        {
                for (String arg : args)
                {
                        if (arg.toLowerCase().startsWith("-v") || arg.toLowerCase().contains("validate"))
                        {
                                validate = true; // making sure
                        }
                        if (arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_X3D) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_CLASSICVRML) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_X3DB) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_VRML97) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_EXI) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_GZIP) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_ZIP) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_HTML) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_XHTML))
                        {
                                argumentsLoadNewModel = true;
                                fileName = arg;
                        }
                }
        }
        if      (argumentsLoadNewModel)
                System.out.println("WARNING: \"Savage.GroundVehicles.BMP1.BMP1\" model invocation is attempting to load file \"" + fileName + "\" instead of simply validating itself... file loading ignored.");
        else if (hasArguments) // if no arguments provided, this method produces usage warning
                thisExampleX3dModel.handleArguments(args);
	
        if (validate)
        {
            //  System.out.println("--- TODO fix duplicated outputs ---"); // omit when duplicated outputs problem is solved/refactored
		String validationResults = thisExampleX3dModel.validationReport();
            //  System.out.println("-----------------------------------"); // omit when duplicated outputs problem is solved/refactored
                System.out.print("Savage.GroundVehicles.BMP1.BMP1 self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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