package HumanoidAnimation.Skeleton;

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

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> bone in foot. </p>
 <p> Related links:  source l_tarsal_middle_phalanx_2.java, <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;">HumanoidAnimation.Skeleton.l_tarsal_middle_phalanx_2&nbsp; Document Metadata </td>
		</tr>

		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> title </i> </td>
			<td> <a href="https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skeleton/l_tarsal_middle_phalanx_2.x3d">l_tarsal_middle_phalanx_2.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> bone in foot </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Joe Williams, John Carlson, Damon Hernandez, Don Brutzman </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> translator </i> </td>
			<td> Don Brutzman </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 5 December 2013 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> translated </i> </td>
			<td> 5 March 2026 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 8 March 2026 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skeleton/originals/lfmphal.x3d">originals/lfmphal.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://en.wikipedia.org/wiki/Phalanx_bone" target="_blank">https://en.wikipedia.org/wiki/Phalanx_bone</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://en.wikipedia.org/wiki/List_of_bones_of_the_human_skeleton" target="_blank">https://en.wikipedia.org/wiki/List_of_bones_of_the_human_skeleton</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> usage examples <a href="https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Medical" target="_blank">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Medical</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> generator </i> </td>
			<td> X3D Tidy, <a href="https://www.web3d.org/x3d/stylesheets/X3dTidy.html" target="_blank">https://www.web3d.org/x3d/stylesheets/X3dTidy.html</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/HumanoidAnimation/Skeleton/l_tarsal_middle_phalanx_2.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skeleton/l_tarsal_middle_phalanx_2.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> license </i> </td>
			<td> <a href="https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skeleton/../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 Joe Williams, John Carlson, Damon Hernandez, Don Brutzman
 */

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

	/** Create and initialize the X3D model for this object. */
	public final void initialize()
	{
            try { // catch-all
  x3dModel = new X3D().setProfile(X3D.PROFILE_INTERACTIVE).setVersion(X3D.VERSION_4_0)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("l_tarsal_middle_phalanx_2.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("bone in foot"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Joe Williams, John Carlson, Damon Hernandez, Don Brutzman"))
    .addMeta(new meta().setName(meta.NAME_TRANSLATOR ).setContent("Don Brutzman"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("5 December 2013"))
    .addMeta(new meta().setName(meta.NAME_TRANSLATED ).setContent("5 March 2026"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("8 March 2026"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("originals/lfmphal.x3d"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://en.wikipedia.org/wiki/Phalanx_bone"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://en.wikipedia.org/wiki/List_of_bones_of_the_human_skeleton"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("usage examples https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Medical"))
    .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_GENERATOR  ).setContent("X3D Tidy, https://www.web3d.org/x3d/stylesheets/X3dTidy.html"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skeleton/l_tarsal_middle_phalanx_2.x3d"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("l_tarsal_middle_phalanx_2.x3d"))
    .addComments(" user hovering reveals description, user selection/deselection temporarily binds/unbinds a hidden close-up viewpoint ")
    .addChild(new TouchSensor("UserTouchSensor").setDescription("bone l_tarsal_middle_phalanx_2"))
    .addChild(new Transform("l_tarsal_middle_phalanx_2").setTranslation(0.1094,0.0057,0.0825)
      .addChild(new Viewpoint("HiddenViewpoint").setNearDistance(0.001).setPosition(0.0,0.0,0.3)
        .setNavigationInfo(new NavigationInfo().setTransitionType(new String[] {"ANIMATE"}).setType(new String[] {"EXAMINE"})))
      .addChild(new ROUTE().setFromNode("UserTouchSensor").setFromField("isActive").setToNode("HiddenViewpoint").setToField("set_bind"))
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material("BoneMaterial").setAmbientIntensity(0.965).setDiffuseColor(1.0,0.9765,0.8667).setShininess(0.05).setSpecularColor(0.349,0.349,0.349)))
        .setGeometry(new IndexedFaceSet("l_tarsal_middle_phalanx_2_geometry").setDEF("l_tarsal_middle_phalanx_2_geometry").setCreaseAngle(1.571).setCoordIndex(getl_tarsal_middle_phalanx_2_geometry_5_24_coordIndex())
          .setCoord(new Coordinate("l_tarsal_middle_phalanx_2_coordinate").setPoint(getl_tarsal_middle_phalanx_2_coordinate_6_24_point()))))));
            }
            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

		/** Large attribute array: IndexedFaceSet DEF='l_tarsal_middle_phalanx_2_geometry' coordIndex field, scene-graph level=5, element #24, 936 total numbers.
		 * Reassemble split array as single method to improve readability and runnability.
		 * Provide large array values via separate methods, hoping to avoid 'code too large' Java compilation errors. 
		 * Individual Java methods (including aggregated initializations) are limited to 64KB.
		 * @see https://stackoverflow.com/questions/2407912/code-too-large-compilation-error-in-java
		 * @see https://stackoverflow.com/questions/11437905/java-too-many-constants-jvm-error
		 */
		private MFInt32 getl_tarsal_middle_phalanx_2_geometry_5_24_coordIndex()
		{
			MFInt32 l_tarsal_middle_phalanx_2_geometry_5_24_coordIndex = new MFInt32(new int[] {0,1,2,-1,3,4,5,-1,4,6,5,-1,7,8,9,-1,10,11,12,-1,10,13,11,-1,14,15,16,-1,16,17,14,-1,18,19,20,-1,21,22,23,-1,24,25,26,-1,25,27,16,-1,25,28,27,-1,17,16,27,-1,29,30,18,-1,31,30,32,-1,30,29,32,-1,33,34,35,-1,35,29,33,-1,36,37,38,-1,36,39,37,-1,40,39,41,-1,39,36,41,-1,20,42,43,-1,20,19,42,-1,44,36,45,-1,46,47,48,-1,49,27,21,-1,15,25,16,-1,50,51,4,-1,52,53,3,-1,27,54,21,-1,25,55,26,-1,25,15,55,-1,56,48,57,-1,58,9,46,-1,58,10,9,-1,59,60,61,-1,60,62,61,-1,63,64,65,-1,65,58,63,-1,66,67,68,-1,69,70,71,-1,0,2,40,-1,41,36,72,-1,35,73,32,-1,45,36,74,-1,75,30,76,-1,74,77,45,-1,73,78,79,-1,79,32,73,-1,32,29,35,-1,80,66,81,-1,66,68,81,-1,65,64,13,-1,82,61,83,-1,82,59,61,-1,62,84,61,-1,62,85,84,-1,48,56,46,-1,63,56,24,-1,56,57,24,-1,54,27,28,-1,86,87,88,-1,86,89,87,-1,17,90,14,-1,90,6,14,-1,17,27,49,-1,22,91,69,-1,8,2,70,-1,92,13,64,-1,31,76,30,-1,43,42,38,-1,78,40,41,-1,78,0,40,-1,93,79,72,-1,72,44,93,-1,44,72,36,-1,69,48,47,-1,47,70,69,-1,70,47,8,-1,91,54,28,-1,30,19,18,-1,30,75,19,-1,94,95,96,-1,94,97,95,-1,5,6,87,-1,6,90,87,-1,90,98,87,-1,98,88,87,-1,98,99,88,-1,11,13,67,-1,24,28,25,-1,8,100,2,-1,11,66,60,-1,11,67,66,-1,85,52,101,-1,102,52,85,-1,60,80,62,-1,60,66,80,-1,103,104,105,-1,103,81,104,-1,3,50,4,-1,50,3,53,-1,92,67,13,-1,67,92,68,-1,50,55,51,-1,50,105,55,-1,85,89,84,-1,89,85,101,-1,106,96,95,-1,96,106,86,-1,97,107,108,-1,107,97,94,-1,54,22,21,-1,22,54,91,-1,0,73,109,-1,73,0,78,-1,20,110,108,-1,110,20,43,-1,77,31,93,-1,77,76,31,-1,1,70,2,-1,70,1,71,-1,111,8,112,-1,111,100,8,-1,113,97,114,-1,95,97,113,-1,115,116,99,-1,115,117,116,-1,91,24,57,-1,91,28,24,-1,14,4,51,-1,14,6,4,-1,58,56,63,-1,56,58,46,-1,60,12,11,-1,12,60,59,-1,84,83,61,-1,84,106,83,-1,105,26,55,-1,105,104,26,-1,104,64,26,-1,64,104,92,-1,99,49,115,-1,49,99,98,-1,33,117,34,-1,117,33,116,-1,47,9,8,-1,47,46,9,-1,110,111,114,-1,37,111,110,-1,83,95,113,-1,83,106,95,-1,96,88,99,-1,86,88,96,-1,41,79,78,-1,41,72,79,-1,19,74,42,-1,19,75,74,-1,76,74,75,-1,74,76,77,-1,7,112,8,-1,7,82,112,-1,38,74,36,-1,38,42,74,-1,107,116,33,-1,94,116,107,-1,114,108,110,-1,114,97,108,-1,82,113,112,-1,82,83,113,-1,37,100,111,-1,39,100,37,-1,2,39,40,-1,2,100,39,-1,23,69,71,-1,23,22,69,-1,1,109,118,-1,109,1,0,-1,118,34,117,-1,118,109,34,-1,115,21,23,-1,21,115,49,-1,63,26,64,-1,24,26,63,-1,81,102,80,-1,102,81,103,-1,7,59,82,-1,7,12,59,-1,58,13,10,-1,13,58,65,-1,87,101,5,-1,87,89,101,-1,90,49,98,-1,90,17,49,-1,117,23,118,-1,23,117,115,-1,94,99,116,-1,99,94,96,-1,112,114,111,-1,113,114,112,-1,118,71,1,-1,71,118,23,-1,45,93,44,-1,45,77,93,-1,33,18,107,-1,33,29,18,-1,43,37,110,-1,38,37,43,-1,109,35,34,-1,35,109,73,-1,79,31,32,-1,93,31,79,-1,57,69,91,-1,57,48,69,-1,18,108,107,-1,18,20,108,-1,86,84,89,-1,86,106,84,-1,103,52,102,-1,52,103,53,-1,15,51,55,-1,51,15,14,-1,53,105,50,-1,105,53,103,-1,92,81,68,-1,81,92,104,-1,9,12,7,-1,9,10,12,-1,102,62,80,-1,85,62,102,-1,52,5,101,-1,52,3,5,-1});
			return l_tarsal_middle_phalanx_2_geometry_5_24_coordIndex;
		}
		/** Large attribute array: Coordinate DEF='l_tarsal_middle_phalanx_2_coordinate' point field, scene-graph level=6, element #24, 357 total numbers made up of 119 3-tuple values.
		 * Reassemble split array as single method to improve readability and runnability.
		 * Provide large array values via separate methods, hoping to avoid 'code too large' Java compilation errors. 
		 * Individual Java methods (including aggregated initializations) are limited to 64KB.
		 * @see https://stackoverflow.com/questions/2407912/code-too-large-compilation-error-in-java
		 * @see https://stackoverflow.com/questions/11437905/java-too-many-constants-jvm-error
		 */
		private MFVec3f getl_tarsal_middle_phalanx_2_coordinate_6_24_point()
		{
			MFVec3f l_tarsal_middle_phalanx_2_coordinate_6_24_point = new MFVec3f(new double[] {-0.0033,-0.0019,-0.0050,-0.0022,-0.0015,-0.0030,-0.0038,-0.0001,-0.0026,0.0035,-0.0017,0.0047,0.0037,-0.0022,0.0044,0.0040,-0.0017,0.0042,0.0040,-0.0021,0.0039,-0.0015,0.0011,0.0010,-0.0023,0.0014,-0.0005,-0.0018,0.0007,0.0009,-0.0019,0.0003,0.0030,-0.0021,-0.0001,0.0057,-0.0017,0.0007,0.0032,-0.0023,-0.0008,0.0059,0.0038,-0.0034,0.0030,0.0024,-0.0033,0.0030,0.0025,-0.0030,0.0020,0.0036,-0.0025,0.0018,0.0026,0.0007,-0.0060,0.0010,0.0016,-0.0060,0.0015,0.0020,-0.0063,0.0016,-0.0022,0.0001,0.0013,-0.0021,0.0001,0.0013,-0.0024,-0.0013,0.0006,-0.0029,0.0034,0.0012,-0.0030,0.0034,0.0005,-0.0030,0.0053,0.0025,-0.0028,0.0016,0.0011,-0.0026,0.0030,0.0025,-0.0014,-0.0060,0.0020,-0.0011,-0.0062,-0.0011,-0.0014,-0.0063,-0.0009,-0.0020,-0.0064,0.0028,-0.0015,-0.0058,0.0015,-0.0031,-0.0059,0.0011,-0.0028,-0.0063,-0.0032,0.0019,-0.0040,-0.0021,0.0036,-0.0044,-0.0022,0.0034,-0.0048,-0.0034,0.0020,-0.0037,-0.0043,0.0000,-0.0039,-0.0042,0.0000,-0.0043,0.0001,0.0024,-0.0058,0.0004,0.0032,-0.0060,-0.0030,0.0001,-0.0052,-0.0021,0.0002,-0.0050,-0.0018,-0.0006,0.0006,-0.0021,-0.0005,-0.0003,-0.0008,-0.0013,0.0005,0.0034,-0.0024,0.0001,0.0028,-0.0022,0.0052,0.0033,-0.0036,0.0043,0.0032,-0.0006,0.0049,0.0028,-0.0017,0.0052,0.0014,-0.0022,0.0020,0.0018,-0.0035,0.0047,-0.0010,-0.0019,0.0015,0.0002,-0.0021,0.0018,-0.0022,-0.0011,0.0024,-0.0004,0.0018,0.0037,-0.0006,0.0016,0.0059,0.0015,0.0014,0.0034,0.0014,0.0009,0.0055,-0.0012,-0.0024,0.0030,-0.0014,-0.0025,0.0052,-0.0024,-0.0016,0.0043,-0.0006,0.0011,0.0064,-0.0018,-0.0004,0.0062,-0.0012,-0.0005,0.0064,-0.0004,-0.0013,0.0001,-0.0025,-0.0004,-0.0009,-0.0010,-0.0014,-0.0009,-0.0035,0.0001,-0.0049,-0.0011,-0.0028,-0.0063,-0.0009,0.0006,-0.0052,-0.0001,0.0002,-0.0055,-0.0009,-0.0007,-0.0058,-0.0017,-0.0003,-0.0054,-0.0034,-0.0018,-0.0054,-0.0029,-0.0011,-0.0059,0.0012,0.0005,0.0059,0.0007,-0.0010,0.0063,-0.0001,0.0023,0.0011,0.0019,0.0023,0.0009,0.0027,0.0010,0.0033,0.0024,0.0005,0.0050,0.0041,0.0007,0.0004,0.0042,-0.0011,0.0025,0.0041,-0.0007,0.0001,0.0038,0.0000,0.0030,0.0042,-0.0015,0.0021,0.0010,-0.0021,0.0020,-0.0012,-0.0010,0.0064,-0.0026,-0.0008,-0.0059,0.0037,0.0008,-0.0040,0.0034,0.0021,-0.0014,0.0043,0.0009,-0.0019,0.0028,0.0023,-0.0040,0.0040,-0.0012,0.0001,0.0041,-0.0010,-0.0019,-0.0030,0.0018,-0.0024,0.0036,-0.0003,0.0047,0.0022,0.0000,0.0054,0.0016,-0.0014,0.0058,0.0006,-0.0015,0.0063,0.0016,-0.0019,0.0058,0.0031,0.0017,0.0008,0.0030,0.0008,-0.0058,0.0020,0.0024,-0.0062,-0.0009,-0.0030,-0.0059,0.0006,0.0034,-0.0059,-0.0014,0.0032,-0.0025,-0.0004,0.0028,-0.0004,0.0020,0.0027,-0.0009,0.0013,0.0032,-0.0038,0.0033,-0.0026,-0.0015,0.0035,-0.0013,-0.0040,0.0025,-0.0029,-0.0038,0.0002,-0.0027,-0.0038});
			return l_tarsal_middle_phalanx_2_coordinate_6_24_point;
		}

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

	/** 
	 * Provide a 
	 * <a href="https://dzone.com/articles/java-copy-shallow-vs-deep-in-which-you-will-swim" target="_blank">shallow copy</a>
	 * of the X3D model.
	 * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html">X3D</a>
	 * @return l_tarsal_middle_phalanx_2 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 l_tarsal_middle_phalanx_2().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: \"HumanoidAnimation.Skeleton.l_tarsal_middle_phalanx_2\" 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("HumanoidAnimation.Skeleton.l_tarsal_middle_phalanx_2 self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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