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 r_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.r_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/r_tarsal_middle_phalanx_2.x3d">r_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/rfmphal.x3d">originals/rfmphal.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/r_tarsal_middle_phalanx_2.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skeleton/r_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 r_tarsal_middle_phalanx_2
{
	/** Default constructor to create this object. */
	public r_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("r_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/rfmphal.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/r_tarsal_middle_phalanx_2.x3d"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("r_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 r_tarsal_middle_phalanx_2"))
    .addChild(new Transform("r_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("r_tarsal_middle_phalanx_2_geometry").setDEF("r_tarsal_middle_phalanx_2_geometry").setCreaseAngle(1.571).setCoordIndex(getr_tarsal_middle_phalanx_2_geometry_5_24_coordIndex())
          .setCoord(new Coordinate("r_tarsal_middle_phalanx_2_coordinate").setPoint(getr_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='r_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 getr_tarsal_middle_phalanx_2_geometry_5_24_coordIndex()
		{
			MFInt32 r_tarsal_middle_phalanx_2_geometry_5_24_coordIndex = new MFInt32(new int[] {0,1,2,-1,3,4,5,-1,3,6,4,-1,7,8,9,-1,7,10,8,-1,11,12,13,-1,14,8,15,-1,8,16,15,-1,17,18,19,-1,19,20,17,-1,21,22,23,-1,24,25,26,-1,27,28,29,-1,17,30,28,-1,30,31,28,-1,30,17,20,-1,23,32,33,-1,33,32,34,-1,34,35,33,-1,36,37,38,-1,38,33,36,-1,39,40,41,-1,41,42,39,-1,43,42,44,-1,42,41,44,-1,45,22,21,-1,21,46,45,-1,47,42,48,-1,49,50,51,-1,26,30,52,-1,17,28,18,-1,4,53,54,-1,5,55,56,-1,26,57,30,-1,27,58,28,-1,58,18,28,-1,59,49,60,-1,51,11,15,-1,15,61,51,-1,62,9,63,-1,62,64,9,-1,65,66,67,-1,67,61,65,-1,68,10,7,-1,69,70,71,-1,44,0,2,-1,72,42,43,-1,35,73,36,-1,74,42,47,-1,74,75,45,-1,75,22,45,-1,76,32,75,-1,47,77,74,-1,78,79,73,-1,73,35,78,-1,36,33,35,-1,80,7,81,-1,80,68,7,-1,16,66,65,-1,82,63,83,-1,82,62,63,-1,62,84,64,-1,62,85,84,-1,51,60,49,-1,29,60,67,-1,29,59,60,-1,31,30,57,-1,86,87,88,-1,88,89,86,-1,19,90,20,-1,19,6,90,-1,52,30,20,-1,71,91,25,-1,70,0,12,-1,66,16,92,-1,32,76,34,-1,39,45,46,-1,43,44,79,-1,44,2,79,-1,48,78,93,-1,48,72,78,-1,42,72,48,-1,50,49,70,-1,49,71,70,-1,71,59,91,-1,71,49,59,-1,12,50,70,-1,31,57,91,-1,23,22,32,-1,22,75,32,-1,86,6,3,-1,86,90,6,-1,89,94,90,-1,90,86,89,-1,89,95,94,-1,10,16,8,-1,28,31,29,-1,0,96,12,-1,56,84,97,-1,84,56,98,-1,81,9,64,-1,81,7,9,-1,99,100,101,-1,99,80,100,-1,54,5,4,-1,55,5,54,-1,10,92,16,-1,68,92,10,-1,58,54,53,-1,58,101,54,-1,87,84,85,-1,97,84,87,-1,102,103,104,-1,88,103,102,-1,105,106,107,-1,108,106,105,-1,25,57,26,-1,91,57,25,-1,73,2,109,-1,79,2,73,-1,110,21,107,-1,46,21,110,-1,34,77,93,-1,34,76,77,-1,70,1,0,-1,69,1,70,-1,12,111,112,-1,12,96,111,-1,106,113,114,-1,113,106,104,-1,115,116,95,-1,115,117,116,-1,29,91,59,-1,29,31,91,-1,4,19,53,-1,4,6,19,-1,60,61,67,-1,51,61,60,-1,14,9,8,-1,63,9,14,-1,82,85,62,-1,82,103,85,-1,27,101,58,-1,27,99,101,-1,66,99,27,-1,92,99,66,-1,52,95,116,-1,94,95,52,-1,117,38,37,-1,115,38,117,-1,11,50,12,-1,11,51,50,-1,111,110,114,-1,110,111,40,-1,104,82,113,-1,104,103,82,-1,89,102,95,-1,102,89,88,-1,78,43,79,-1,78,72,43,-1,74,76,75,-1,77,76,74,-1,112,13,12,-1,112,83,13,-1,74,39,42,-1,74,45,39,-1,115,105,38,-1,105,115,108,-1,107,114,110,-1,107,106,114,-1,113,83,112,-1,113,82,83,-1,96,40,111,-1,40,96,41,-1,41,0,44,-1,41,96,0,-1,71,24,69,-1,71,25,24,-1,109,1,118,-1,2,1,109,-1,37,118,117,-1,37,109,118,-1,26,116,24,-1,52,116,26,-1,27,67,66,-1,67,27,29,-1,98,80,81,-1,100,80,98,-1,63,13,83,-1,63,14,13,-1,16,61,15,-1,65,61,16,-1,97,86,3,-1,97,87,86,-1,52,90,94,-1,52,20,90,-1,24,117,118,-1,116,117,24,-1,95,108,115,-1,102,108,95,-1,114,112,111,-1,112,114,113,-1,69,118,1,-1,24,118,69,-1,93,47,48,-1,93,77,47,-1,23,38,105,-1,23,33,38,-1,40,46,110,-1,46,40,39,-1,36,109,37,-1,73,109,36,-1,34,78,35,-1,78,34,93,-1,107,23,105,-1,107,21,23,-1,108,104,106,-1,102,104,108,-1,85,88,87,-1,85,103,88,-1,56,100,98,-1,55,100,56,-1,53,18,58,-1,19,18,53,-1,101,55,54,-1,100,55,101,-1,80,92,68,-1,99,92,80,-1,14,11,13,-1,14,15,11,-1,64,98,81,-1,98,64,84,-1,3,56,97,-1,3,5,56,-1});
			return r_tarsal_middle_phalanx_2_geometry_5_24_coordIndex;
		}
		/** Large attribute array: Coordinate DEF='r_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 getr_tarsal_middle_phalanx_2_coordinate_6_24_point()
		{
			MFVec3f r_tarsal_middle_phalanx_2_coordinate_6_24_point = new MFVec3f(new double[] {0.0038,-0.0001,-0.0026,0.0022,-0.0015,-0.0030,0.0033,-0.0019,-0.0050,-0.0040,-0.0017,0.0042,-0.0037,-0.0022,0.0044,-0.0035,-0.0017,0.0047,-0.0040,-0.0021,0.0039,0.0006,0.0011,0.0064,0.0021,-0.0001,0.0057,0.0006,0.0016,0.0059,0.0018,-0.0004,0.0062,0.0018,0.0007,0.0009,0.0023,0.0014,-0.0005,0.0015,0.0011,0.0010,0.0017,0.0007,0.0032,0.0019,0.0003,0.0030,0.0023,-0.0008,0.0059,-0.0025,-0.0030,0.0020,-0.0024,-0.0033,0.0030,-0.0038,-0.0034,0.0030,-0.0036,-0.0025,0.0018,-0.0015,0.0020,-0.0063,-0.0010,0.0016,-0.0060,-0.0026,0.0007,-0.0060,-0.0013,-0.0024,-0.0013,-0.0013,-0.0021,0.0001,-0.0016,-0.0022,0.0001,-0.0005,-0.0030,0.0053,-0.0012,-0.0030,0.0034,-0.0006,-0.0029,0.0034,-0.0025,-0.0028,0.0016,-0.0011,-0.0026,0.0030,-0.0020,-0.0011,-0.0062,-0.0025,-0.0014,-0.0060,0.0011,-0.0014,-0.0063,0.0009,-0.0020,-0.0064,-0.0011,-0.0028,-0.0063,-0.0015,-0.0031,-0.0059,-0.0028,-0.0015,-0.0058,0.0022,0.0034,-0.0048,0.0021,0.0036,-0.0044,0.0034,0.0020,-0.0037,0.0032,0.0019,-0.0040,0.0042,0.0000,-0.0043,0.0043,0.0000,-0.0039,-0.0001,0.0024,-0.0058,-0.0004,0.0032,-0.0060,0.0021,0.0002,-0.0050,0.0030,0.0001,-0.0052,0.0008,-0.0013,0.0005,0.0021,-0.0005,-0.0003,0.0018,-0.0006,0.0006,-0.0034,-0.0024,0.0001,-0.0033,-0.0036,0.0043,-0.0028,-0.0022,0.0052,-0.0028,-0.0017,0.0052,-0.0032,-0.0006,0.0049,-0.0014,-0.0022,0.0020,-0.0018,-0.0035,0.0047,-0.0002,-0.0021,0.0018,0.0010,-0.0019,0.0015,0.0022,-0.0011,0.0024,-0.0015,0.0014,0.0034,0.0004,0.0018,0.0037,-0.0014,0.0009,0.0055,0.0024,-0.0016,0.0043,0.0014,-0.0025,0.0052,0.0012,-0.0024,0.0030,0.0012,-0.0005,0.0064,0.0010,-0.0014,-0.0009,0.0025,-0.0004,-0.0009,0.0004,-0.0013,0.0001,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.0029,-0.0011,-0.0059,0.0034,-0.0018,-0.0054,-0.0007,-0.0010,0.0063,-0.0012,0.0005,0.0059,-0.0019,0.0023,0.0009,0.0001,0.0023,0.0011,-0.0024,0.0005,0.0050,-0.0027,0.0010,0.0033,-0.0042,-0.0011,0.0025,-0.0038,0.0000,0.0030,-0.0041,0.0007,0.0004,-0.0041,-0.0007,0.0001,-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.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.0006,-0.0015,0.0063,-0.0016,-0.0014,0.0058,-0.0016,-0.0019,0.0058,-0.0043,0.0009,-0.0019,-0.0031,0.0017,0.0008,-0.0034,0.0021,-0.0014,-0.0030,0.0008,-0.0058,-0.0028,0.0023,-0.0040,-0.0020,0.0024,-0.0062,-0.0037,0.0008,-0.0040,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.0035,-0.0013,-0.0040,-0.0033,-0.0026,-0.0015,-0.0025,-0.0029,-0.0038,-0.0002,-0.0027,-0.0038});
			return r_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 r_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 r_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.r_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.r_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/r_tarsal_middle_phalanx_2_JavaExport.* file validation is checked when building X3D Example Archives
                String filenameX3D  = "Skeleton/r_tarsal_middle_phalanx_2_JavaExport.x3d"; 
                String filenameX3DV = "Skeleton/r_tarsal_middle_phalanx_2_JavaExport.x3dv"; 
                String filenameJSON = "Skeleton/r_tarsal_middle_phalanx_2_JavaExport.json";
                thisExampleX3dModel.toFileX3D        (filenameX3D);
                thisExampleX3dModel.toFileClassicVRML(filenameX3DV);
// TODO         thisExampleX3dModel.toFileJSON       (filenameJSON);
        }
    }
}
