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_distal_phalanx_3.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_distal_phalanx_3&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_distal_phalanx_3.x3d">r_tarsal_distal_phalanx_3.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/rfdphal3.x3d">originals/rfdphal3.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#Distal_phalanx" target="_blank">https://en.wikipedia.org/wiki/Phalanx_bone#Distal_phalanx</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_distal_phalanx_3.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skeleton/r_tarsal_distal_phalanx_3.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_distal_phalanx_3
{
	/** Default constructor to create this object. */
	public r_tarsal_distal_phalanx_3 ()
	{
	  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_distal_phalanx_3.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/rfdphal3.x3d"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://en.wikipedia.org/wiki/Phalanx_bone#Distal_phalanx"))
    .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_distal_phalanx_3.x3d"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("r_tarsal_distal_phalanx_3.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_distal_phalanx_3"))
    .addChild(new Transform("r_tarsal_distal_phalanx_3").setTranslation(-0.1109,0.0049,0.0921)
      .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_distal_phalanx_3_geometry").setDEF("r_tarsal_distal_phalanx_3_geometry").setCreaseAngle(1.571).setCoordIndex(getr_tarsal_distal_phalanx_3_geometry_5_24_coordIndex())
          .setCoord(new Coordinate("r_tarsal_distal_phalanx_3_coordinate").setPoint(getr_tarsal_distal_phalanx_3_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


		/** Define subarray values using type int[] with $tupleSize=1 and $tupleSplitSize=1000 for subarray position()=1 */
		private int[] getr_tarsal_distal_phalanx_3_geometry_5_24_coordIndex_1()
		{
			int[] value = {0,1,2,-1,3,4,5,-1,6,2,7,-1,8,9,10,-1,11,4,12,-1,13,14,15,-1,14,16,15,-1,17,18,19,-1,20,21,22,-1,23,24,25,-1,26,27,28,-1,24,29,30,-1,21,20,31,-1,32,25,24,-1,9,33,34,-1,9,8,33,-1,11,0,35,-1,36,37,38,-1,16,39,40,-1,39,41,40,-1,42,43,44,-1,45,46,47,-1,46,48,47,-1,49,50,51,-1,51,52,49,-1,49,53,54,-1,49,52,53,-1,55,37,56,-1,37,57,56,-1,2,58,0,-1,59,60,12,-1,10,61,57,-1,57,62,10,-1,33,63,64,-1,64,34,33,-1,65,66,67,-1,65,68,66,-1,21,69,22,-1,18,39,70,-1,25,71,27,-1,72,41,18,-1,73,74,75,-1,73,76,74,-1,77,78,79,-1,78,80,79,-1,81,82,13,-1,82,83,13,-1,84,14,13,-1,13,83,84,-1,85,86,48,-1,48,46,85,-1,87,88,86,-1,86,85,87,-1,89,90,91,-1,89,92,90,-1,93,94,95,-1,93,96,94,-1,95,52,97,-1,95,53,52,-1,98,99,100,-1,99,101,100,-1,102,103,104,-1,82,81,78,-1,78,77,82,-1,75,97,52,-1,32,24,105,-1,27,71,28,-1,18,70,19,-1,9,61,10,-1,38,59,12,-1,58,35,0,-1,106,60,59,-1,106,107,60,-1,56,61,108,-1,56,57,61,-1,52,73,75,-1,52,51,73,-1,21,19,69,-1,41,109,40,-1,38,37,110,-1,37,55,110,-1,111,112,63,-1,112,43,63,-1,4,3,44,-1,111,63,33,-1,8,111,33,-1,113,114,6,-1,6,115,113,-1,116,20,68,-1,30,117,65,-1,27,26,118,-1,119,120,26,-1,121,30,29,-1,121,117,30,-1,23,25,27,-1,30,105,24,-1,17,19,21,-1,41,39,18,-1,89,91,69,-1,91,22,69,-1,96,90,92,-1,92,122,96,-1,79,76,123,-1,79,100,76,-1,8,10,62,-1,62,111,8,-1,107,0,60,-1,107,1,0,-1,107,124,1,-1,114,58,2,-1,2,6,114,-1,125,11,35,-1,115,51,50,-1,38,12,36,-1,3,113,126,-1,3,5,113,-1,58,125,35,-1,114,125,58,-1,60,11,12,-1,60,0,11,-1,4,36,12,-1,4,112,36,-1,101,76,100,-1,101,74,76,-1,123,77,79,-1,77,123,127,-1,128,83,82,-1,128,103,83,-1,84,129,130,-1,84,102,129,-1,131,132,133,-1,134,132,131,-1,90,93,135,-1,90,96,93,-1,133,122,92,-1,132,122,133,-1,136,66,137,-1,136,67,66,-1,138,70,139,-1,138,19,70,-1,25,98,80,-1,98,25,32,-1,89,19,138,-1,89,69,19,-1,81,15,28,-1,13,15,81,-1,105,98,32,-1,98,105,99,-1,140,121,29,-1,141,121,140,-1,142,26,120,-1,142,118,26,-1,116,31,20,-1,143,31,116,-1,27,140,23,-1,27,118,140,-1,72,109,41,-1,144,109,72,-1,143,145,31,-1,143,146,145,-1,117,143,116,-1,143,117,121,-1,5,114,113,-1,5,125,114,-1,115,7,51,-1,115,6,7,-1,123,73,147,-1,76,73,123,-1,44,112,4,-1,112,44,43,-1,88,110,55,-1,110,88,148,-1,104,129,102,-1,104,87,129,-1,92,138,133,-1,89,138,92,-1,30,67,105,-1,30,65,67,-1,107,149,124,-1,106,149,107,-1,86,55,56,-1,86,88,55,-1,47,150,151,-1,152,150,47,-1,9,108,61,-1,9,152,108,-1,59,110,106,-1,110,59,38,-1,36,57,37,-1,36,62,57,-1,42,54,64,-1,54,42,49,-1,119,28,15,-1,119,26,28,-1,21,145,17,-1,21,31,145,-1,144,120,109,-1,144,142,120,-1,143,141,146,-1,143,121,141,-1,93,97,153,-1,95,97,93,-1,154,128,127,-1,155,128,154,-1,149,104,155,-1,148,104,149,-1,136,101,99,-1,136,156,101,-1,154,7,124,-1,154,147,7,-1,94,53,95,-1,94,151,53,-1,90,137,91,-1,90,135,137,-1,45,96,122,-1,45,94,96,-1,133,139,131,-1,133,138,139,-1,129,85,134,-1,129,87,85,-1,157,131,139,-1,131,157,130,-1,134,46,132,-1,85,46,134,-1,45,151,94,-1,45,47,151,-1,137,156,136,-1,137,135,156,-1,103,155,104,-1,128,155,103,-1,124,155,154,-1,149,155,124,-1,147,127,123,-1,154,127,147,-1,153,75,74,-1,153,97,75,-1,146,142,144,-1,146,141,142,-1,109,119,40,-1,120,119,109,-1,145,18,17,-1,72,18,145,-1,16,119,15,-1,40,119,16,-1,66,20,22,-1,68,20,66,-1,64,43,42,-1,64,63,43,-1,64,150,34,-1,64,54,150,-1};
			return value;
		}

		/** Define subarray values using type int[] with $tupleSize=1 and $tupleSplitSize=1000 for subarray position()=2 */
		private int[] getr_tarsal_distal_phalanx_3_geometry_5_24_coordIndex_2()
		{
			int[] value = {44,126,42,-1,44,3,126,-1,50,42,126,-1,49,42,50,-1,34,152,9,-1,34,150,152,-1,56,48,86,-1,56,108,48,-1,106,148,149,-1,110,148,106,-1,2,124,7,-1,2,1,124,-1,151,54,53,-1,54,151,150,-1,152,48,108,-1,47,48,152,-1,122,46,45,-1,122,132,46,-1,157,84,130,-1,84,157,14,-1,148,87,104,-1,148,88,87,-1,98,79,80,-1,98,100,79,-1,147,51,7,-1,73,51,147,-1,5,11,125,-1,5,4,11,-1,65,116,68,-1,65,117,116,-1,144,145,146,-1,144,72,145,-1,29,23,140,-1,24,23,29,-1,141,118,142,-1,141,140,118,-1,80,71,25,-1,78,71,80,-1,139,39,157,-1,139,70,39,-1,137,22,91,-1,137,66,22,-1,28,78,81,-1,78,28,71,-1,14,39,16,-1,39,14,157,-1,99,67,136,-1,99,105,67,-1,135,153,156,-1,135,93,153,-1,130,134,131,-1,130,129,134,-1,103,84,83,-1,84,103,102,-1,127,82,77,-1,82,127,128,-1,156,74,101,-1,156,153,74,-1,62,112,111,-1,36,112,62,-1,115,126,113,-1,115,50,126,-1};
			return value;
		}
		/** Large attribute array: IndexedFaceSet DEF='r_tarsal_distal_phalanx_3_geometry' coordIndex field, scene-graph level=5, element #24, 1248 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_distal_phalanx_3_geometry_5_24_coordIndex()
		{
			MFInt32 r_tarsal_distal_phalanx_3_geometry_5_24_coordIndex = new MFInt32()/*2.finalize*/
				.append(new MFInt32(getr_tarsal_distal_phalanx_3_geometry_5_24_coordIndex_1()))
				.append(new MFInt32(getr_tarsal_distal_phalanx_3_geometry_5_24_coordIndex_2()));
			return r_tarsal_distal_phalanx_3_geometry_5_24_coordIndex;
		}
		/** Large attribute array: Coordinate DEF='r_tarsal_distal_phalanx_3_coordinate' point field, scene-graph level=6, element #24, 474 total numbers made up of 158 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_distal_phalanx_3_coordinate_6_24_point()
		{
			MFVec3f r_tarsal_distal_phalanx_3_coordinate_6_24_point = new MFVec3f(new double[] {0.0000,-0.0022,0.0030,0.0004,-0.0014,0.0017,0.0004,-0.0007,0.0018,-0.0004,-0.0016,0.0044,-0.0013,-0.0026,0.0046,-0.0001,-0.0018,0.0042,0.0004,-0.0006,0.0019,0.0008,-0.0004,0.0010,-0.0038,-0.0011,0.0034,-0.0037,-0.0007,0.0021,-0.0037,-0.0015,0.0030,-0.0011,-0.0028,0.0044,-0.0013,-0.0030,0.0044,0.0019,-0.0032,-0.0040,0.0005,-0.0034,-0.0044,0.0019,-0.0028,-0.0043,0.0007,-0.0029,-0.0046,-0.0012,-0.0007,-0.0043,-0.0010,-0.0014,-0.0044,-0.0021,-0.0010,-0.0045,-0.0007,0.0009,-0.0039,-0.0012,0.0001,-0.0040,-0.0019,0.0011,-0.0043,0.0024,-0.0001,-0.0031,0.0022,0.0009,-0.0031,0.0036,0.0003,-0.0030,0.0022,-0.0015,-0.0036,0.0025,-0.0007,-0.0033,0.0029,-0.0018,-0.0037,0.0019,0.0007,-0.0031,0.0017,0.0016,-0.0031,-0.0004,0.0001,-0.0036,0.0034,0.0009,-0.0030,-0.0038,-0.0004,0.0037,-0.0035,0.0003,0.0023,0.0001,-0.0022,0.0035,-0.0021,-0.0027,0.0042,-0.0019,-0.0034,0.0022,-0.0009,-0.0034,0.0023,-0.0007,-0.0026,-0.0046,0.0006,-0.0023,-0.0043,-0.0001,-0.0019,-0.0043,-0.0010,0.0009,0.0032,-0.0018,-0.0006,0.0043,-0.0013,-0.0007,0.0044,-0.0020,-0.0001,-0.0010,-0.0018,-0.0011,-0.0012,-0.0021,-0.0001,0.0001,-0.0018,-0.0011,-0.0001,-0.0005,0.0009,0.0018,0.0002,0.0001,0.0020,0.0007,0.0004,0.0012,-0.0001,0.0013,0.0011,-0.0014,0.0016,0.0008,-0.0018,0.0013,0.0017,-0.0012,-0.0028,0.0008,-0.0019,-0.0020,0.0010,-0.0028,-0.0028,0.0022,0.0004,-0.0016,0.0030,-0.0004,-0.0030,0.0026,-0.0001,-0.0025,0.0028,-0.0035,-0.0018,0.0020,-0.0028,-0.0022,0.0038,-0.0031,-0.0001,0.0041,-0.0027,0.0011,0.0028,0.0009,0.0019,-0.0035,-0.0006,0.0026,-0.0041,0.0010,0.0027,-0.0035,-0.0001,0.0019,-0.0037,-0.0025,-0.0001,-0.0043,-0.0017,-0.0016,-0.0046,0.0038,-0.0004,-0.0031,-0.0001,-0.0013,-0.0039,0.0014,0.0006,0.0003,0.0016,0.0029,-0.0007,0.0007,0.0019,0.0004,0.0028,0.0009,-0.0013,0.0035,-0.0006,-0.0024,0.0038,-0.0004,-0.0028,0.0034,0.0003,-0.0022,0.0037,0.0003,-0.0027,0.0029,-0.0021,-0.0034,0.0027,-0.0023,-0.0031,0.0016,-0.0032,-0.0036,0.0005,-0.0036,-0.0040,-0.0014,-0.0021,-0.0015,-0.0013,-0.0018,-0.0003,-0.0006,-0.0028,-0.0015,-0.0008,-0.0025,-0.0002,-0.0030,-0.0001,-0.0038,-0.0025,0.0017,-0.0027,-0.0025,0.0016,-0.0039,-0.0029,-0.0003,-0.0031,-0.0013,0.0031,-0.0013,-0.0020,0.0013,-0.0008,-0.0011,0.0020,-0.0002,-0.0024,0.0014,-0.0019,0.0001,0.0020,0.0002,0.0034,0.0010,-0.0025,0.0025,0.0029,-0.0023,0.0032,0.0010,-0.0020,0.0019,0.0032,-0.0014,0.0005,-0.0034,-0.0033,0.0015,-0.0031,-0.0030,0.0004,-0.0029,-0.0015,0.0026,0.0024,-0.0029,0.0002,-0.0023,0.0012,0.0003,-0.0016,0.0016,-0.0023,-0.0011,0.0010,0.0007,-0.0018,-0.0040,-0.0004,-0.0029,0.0008,-0.0029,-0.0016,0.0041,-0.0020,-0.0023,0.0044,0.0004,-0.0007,0.0033,0.0004,-0.0015,0.0031,0.0003,-0.0001,0.0020,0.0002,0.0011,-0.0035,0.0010,0.0013,-0.0033,0.0021,-0.0009,-0.0033,0.0016,-0.0021,-0.0039,0.0015,-0.0016,-0.0037,0.0012,0.0006,-0.0030,-0.0026,-0.0004,-0.0024,0.0029,0.0003,-0.0016,0.0008,-0.0011,0.0007,0.0001,-0.0022,0.0037,0.0003,-0.0004,0.0035,0.0030,-0.0006,-0.0019,0.0024,-0.0023,-0.0026,-0.0007,-0.0032,-0.0031,-0.0009,-0.0032,-0.0038,-0.0020,-0.0023,-0.0037,-0.0023,-0.0014,-0.0026,-0.0025,-0.0014,-0.0034,-0.0018,-0.0023,-0.0029,-0.0013,0.0032,-0.0021,0.0008,0.0032,-0.0031,-0.0009,0.0031,-0.0037,-0.0026,-0.0013,-0.0041,-0.0021,-0.0023,-0.0043,0.0020,-0.0001,-0.0030,0.0014,-0.0003,-0.0030,0.0014,-0.0010,-0.0033,0.0005,0.0003,-0.0032,0.0007,-0.0011,-0.0036,-0.0002,-0.0007,-0.0037,0.0007,-0.0004,-0.0033,0.0016,-0.0001,0.0000,0.0000,-0.0028,-0.0002,0.0007,-0.0021,0.0003,-0.0025,0.0006,0.0013,-0.0020,0.0009,0.0003,-0.0025,-0.0003,0.0011,0.0002,0.0032,-0.0010,0.0016,-0.0009,-0.0003,0.0014,-0.0020,-0.0008,0.0003,0.0035,-0.0017,-0.0008,-0.0032,-0.0043});
			return r_tarsal_distal_phalanx_3_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_distal_phalanx_3 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_distal_phalanx_3().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_distal_phalanx_3\" 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_distal_phalanx_3 self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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