package Savage.HarborEquipment.ChainLinkFence;

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.Shape.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> A segment of chain link fence. </p>
 <p> Related links: Catalog page <a href="../../../../HarborEquipment/ChainLinkFence/ChainLinkFenceIndex.html" target="_blank">ChainLinkFence</a>,  source <a href="../../../../HarborEquipment/ChainLinkFence/ChainLinkFence.java">ChainLinkFence.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="../../../../HarborEquipment/ChainLinkFence/ChainLinkFence.x3d">ChainLinkFence.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> A segment of chain link fence </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> LT Patrick Sullivan </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 2 February 2005 </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/HarborEquipment/ChainLinkFence/ChainLinkFence.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/HarborEquipment/ChainLinkFence/ChainLinkFence.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> generator </i> </td>
			<td> VizX3D, <a href="http://www.vivaty.com/downloads/studio" target="_blank">http://www.vivaty.com/downloads/studio</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> Wings3D, <a href="http://www.wings3d.com" target="_blank">http://www.wings3d.com</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> license </i> </td>
			<td> <a href="../../../../HarborEquipment/ChainLinkFence/../../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 LT Patrick Sullivan
 */

public class ChainLinkFence
{
	/** Default constructor to create this object. */
	public ChainLinkFence ()
	{
	  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_1)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("ChainLinkFence.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("A segment of chain link fence"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("LT Patrick Sullivan"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("2 February 2005"))
    .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/HarborEquipment/ChainLinkFence/ChainLinkFence.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_GENERATOR  ).setContent("VizX3D, http://www.vivaty.com/downloads/studio"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("Wings3D, http://www.wings3d.com"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("ChainLinkFence.x3d"))
    .addChild(new Transform().setTranslation(-3.117805,0.0,0.0)
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(0.239215,0.239215,0.239215)))
        .setGeometry(new Cylinder().setHeight(5.072629).setRadius(0.126984))))
    .addChild(new Transform().setTranslation(1.410146,0.0,0.0)
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(0.243137,0.243137,0.243137)))
        .setGeometry(new Cylinder().setHeight(5.072629).setRadius(0.126984))))
    .addChild(new Transform().setRotation(0.0,0.0,-1.0,1.570796).setTranslation(-0.914066,2.422833,0.0)
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(0.239215,0.239215,0.239215)))
        .setGeometry(new Cylinder().setHeight(4.430181).setRadius(0.126984))))
    .addChild(new Transform().setRotation(0.0,0.0,-1.0,1.570796).setTranslation(-0.914066,-2.416105,0.0)
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(0.239215,0.239215,0.239215)))
        .setGeometry(new Cylinder().setHeight(4.430181).setRadius(0.126984))))
    .addChild(new Group()
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-0.970241,-0.02823626,0.0)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(6.349808).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-0.792711,0.137312,-1.108581E-10)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(6.349808).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-0.578799,0.336787,-2.444348E-10)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(5.703121).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-0.364531,0.536597,-3.782341E-10)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(5.112047).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-0.184065,0.704882,-4.909251E-10)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(4.605759).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(0.02148515,0.896562,-6.192814E-10)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(4.021098).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(0.240217,1.100533,-7.558684E-10)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(3.495348).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(0.432891,1.280205,-8.76184E-10)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(2.912166).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(0.65595,1.488211,-1.015472E-9)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(2.239979).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(0.848541,1.667804,-1.135734E-9)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(1.670928).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(1.041975,1.848184,-1.256523E-9)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(1.304755).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-1.191704,-0.234752,1.38292E-10)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(5.808395).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-1.422016,-0.449521,2.821096E-10)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(5.108776).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-1.681228,-0.691241,4.439746E-10)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(4.391444).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-1.876119,-0.986171,6.632046E-10)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(3.59872).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-2.083374,-1.269719,8.70415E-10)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(2.818727).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-2.296361,-1.532346,1.05857E-9)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(2.262494).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-2.409303,-1.917819,1.370491E-9)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(1.640859).setRadius(0.01444973))))
      .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-2.700186,-2.021476,1.407724E-9)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(1.067649).setRadius(0.01444973)))))
    .addChild(new Transform().setRotation(0.0,0.0,1.0,1.588249).setTranslation(-1.014135,0.895686,0.0)
      .addChild(new Group()
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-0.970241,-0.02823626,0.0)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(6.246735).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-0.674645,0.01070269,1.937626E-11)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(5.823521).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-0.484853,0.236043,-1.408062E-10)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(5.431234).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-0.247822,0.411442,-2.494968E-10)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(4.812192).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-0.05133263,0.562543,-3.445115E-10)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(4.296447).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(0.148089,0.760796,-4.796281E-10)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(3.786156).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(0.38308,0.947331,-5.982804E-10)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(3.333546).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(0.536489,1.169111,-7.619088E-10)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(2.606497).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(0.730162,1.408627,-9.336107E-10)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(2.02616).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(0.949304,1.559748,-1.024585E-9)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(1.500041).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(1.118956,1.765632,-1.171608E-9)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(0.979363).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-1.191704,-0.234752,1.38292E-10)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(5.808395).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-1.422016,-0.449521,2.821096E-10)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(5.108776).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-1.681228,-0.691241,4.439746E-10)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(4.391444).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-1.876119,-0.986171,6.632046E-10)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(3.59872).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-2.083374,-1.269719,8.70415E-10)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(2.818727).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-2.296361,-1.532346,1.05857E-9)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(2.262494).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-2.409303,-1.917819,1.370491E-9)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(1.640859).setRadius(0.01444973))))
        .addChild(new Transform().setRotation(-1.183244E-9,2.035458E-10,1.0,0.750491).setTranslation(-2.700186,-2.021476,1.407724E-9)
          .addChild(new Shape()
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Cylinder().setHeight(1.067649).setRadius(0.01444973)))))));
            }
            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 ChainLinkFence 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 ChainLinkFence().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.HarborEquipment.ChainLinkFence.ChainLinkFence\" 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.HarborEquipment.ChainLinkFence.ChainLinkFence self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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