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_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_distal_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_distal_phalanx_2.x3d">r_tarsal_distal_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/rfdphal2.x3d">originals/rfdphal2.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_2.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skeleton/r_tarsal_distal_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_distal_phalanx_2
{
	/** Default constructor to create this object. */
	public r_tarsal_distal_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_distal_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/rfdphal2.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_2.x3d"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("r_tarsal_distal_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_distal_phalanx_2"))
    .addChild(new Transform("r_tarsal_distal_phalanx_2").setTranslation(-0.0969,0.0037,0.1046)
      .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_2_geometry").setDEF("r_tarsal_distal_phalanx_2_geometry").setCreaseAngle(1.571).setCoordIndex(getr_tarsal_distal_phalanx_2_geometry_5_24_coordIndex())
          .setCoord(new Coordinate("r_tarsal_distal_phalanx_2_coordinate").setPoint(getr_tarsal_distal_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


		/** Define subarray values using type int[] with $tupleSize=1 and $tupleSplitSize=1000 for subarray position()=1 */
		private int[] getr_tarsal_distal_phalanx_2_geometry_5_24_coordIndex_1()
		{
			int[] value = {0,1,2,-1,3,4,5,-1,6,7,8,-1,9,10,11,-1,11,0,9,-1,12,13,14,-1,15,16,17,-1,18,8,5,-1,19,20,21,-1,20,22,21,-1,23,24,25,-1,25,26,23,-1,27,28,29,-1,30,31,32,-1,33,34,35,-1,36,37,38,-1,39,35,40,-1,41,32,31,-1,42,43,44,-1,42,19,43,-1,35,45,33,-1,46,17,47,-1,17,16,47,-1,6,8,1,-1,48,18,49,-1,18,50,49,-1,51,52,53,-1,51,26,52,-1,54,55,56,-1,57,58,13,-1,57,59,58,-1,60,49,61,-1,60,62,49,-1,2,9,0,-1,18,63,64,-1,65,46,47,-1,47,66,65,-1,30,32,67,-1,68,29,52,-1,38,33,69,-1,29,70,53,-1,71,19,21,-1,71,43,19,-1,72,73,74,-1,72,75,73,-1,14,76,77,-1,77,78,14,-1,24,79,80,-1,79,81,80,-1,82,25,24,-1,24,80,82,-1,83,84,85,-1,83,86,84,-1,20,87,88,-1,88,22,20,-1,89,90,91,-1,73,81,79,-1,73,75,81,-1,92,71,93,-1,94,45,35,-1,36,38,69,-1,27,29,68,-1,55,65,66,-1,66,56,55,-1,15,17,95,-1,18,48,63,-1,1,0,6,-1,96,60,95,-1,60,61,95,-1,12,97,9,-1,71,92,43,-1,92,98,43,-1,67,32,27,-1,51,53,99,-1,66,100,101,-1,101,56,66,-1,54,5,4,-1,47,100,66,-1,47,16,100,-1,10,102,103,-1,103,11,10,-1,104,105,31,-1,106,107,70,-1,107,108,70,-1,109,39,110,-1,111,38,37,-1,37,112,113,-1,38,34,33,-1,35,39,94,-1,32,28,27,-1,29,53,52,-1,74,69,33,-1,74,73,69,-1,67,114,30,-1,67,115,114,-1,116,117,118,-1,116,119,117,-1,77,75,78,-1,77,81,75,-1,64,2,1,-1,64,57,2,-1,97,120,10,-1,10,9,97,-1,120,97,44,-1,121,103,102,-1,102,122,121,-1,122,102,98,-1,9,2,12,-1,4,103,121,-1,103,4,3,-1,64,8,18,-1,8,64,1,-1,5,50,18,-1,5,101,50,-1,42,75,72,-1,78,75,42,-1,77,80,81,-1,77,91,80,-1,90,123,82,-1,124,123,90,-1,125,126,127,-1,125,128,126,-1,118,129,130,-1,129,118,117,-1,127,119,116,-1,127,126,119,-1,131,132,133,-1,132,131,134,-1,135,68,136,-1,68,135,27,-1,74,45,87,-1,45,74,33,-1,67,135,115,-1,135,67,27,-1,79,23,36,-1,79,24,23,-1,87,94,88,-1,87,45,94,-1,40,137,138,-1,139,137,40,-1,111,113,140,-1,37,113,111,-1,105,41,31,-1,105,141,41,-1,34,111,139,-1,34,38,111,-1,108,53,70,-1,108,99,53,-1,141,106,41,-1,141,107,106,-1,110,141,105,-1,138,141,110,-1,3,11,103,-1,11,3,7,-1,102,120,98,-1,120,102,10,-1,54,101,5,-1,56,101,54,-1,142,85,143,-1,142,62,85,-1,89,124,90,-1,89,84,124,-1,116,135,127,-1,116,115,135,-1,144,145,146,-1,145,144,147,-1,92,122,98,-1,92,148,122,-1,39,134,94,-1,134,39,109,-1,149,148,92,-1,150,148,149,-1,60,85,62,-1,60,83,85,-1,145,151,152,-1,145,153,151,-1,17,96,95,-1,96,17,153,-1,63,142,59,-1,48,142,63,-1,49,154,61,-1,49,50,154,-1,15,61,154,-1,61,15,95,-1,55,150,65,-1,148,150,55,-1,109,132,134,-1,109,104,132,-1,23,37,36,-1,23,112,37,-1,28,41,106,-1,28,32,41,-1,99,140,113,-1,99,108,140,-1,138,107,141,-1,137,107,138,-1,129,93,155,-1,129,156,93,-1,58,89,76,-1,58,143,89,-1,131,22,88,-1,131,157,22,-1,97,14,44,-1,97,12,14,-1,158,149,156,-1,158,152,149,-1,114,130,133,-1,114,118,130,-1,146,117,119,-1,146,158,117,-1,127,136,125,-1,136,127,135,-1,86,147,144,-1,86,83,147,-1,124,86,128,-1,86,124,84,-1,123,136,159,-1,123,125,136,-1,128,144,126,-1,128,86,144,-1,146,152,158,-1,152,146,145,-1,118,115,116,-1,114,115,118,-1,158,129,117,-1,156,129,158,-1,92,156,149,-1,93,156,92,-1,157,133,130,-1,157,131,133,-1,91,76,89,-1,91,77,76,-1,13,76,14,-1,13,58,76,-1,78,44,14,-1,44,78,42,-1,155,71,21,-1,71,155,93,-1,108,137,140,-1,108,107,137,-1,51,113,112,-1,99,113,51,-1,106,29,28,-1,106,70,29,-1,26,112,23,-1,26,51,112,-1,132,31,30,-1,132,104,31,-1,65,151,46,-1,65,150,151,-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_2_geometry_5_24_coordIndex_2()
		{
			int[] value = {54,121,55,-1,54,4,121,-1,64,59,57,-1,63,59,64,-1,122,55,121,-1,122,148,55,-1,46,153,17,-1,153,46,151,-1,83,96,147,-1,83,60,96,-1,59,143,58,-1,59,142,143,-1,152,150,149,-1,151,150,152,-1,147,153,145,-1,153,147,96,-1,119,144,146,-1,119,126,144,-1,159,82,123,-1,25,82,159,-1,143,84,89,-1,143,85,84,-1,62,48,49,-1,142,48,62,-1,87,72,74,-1,87,20,72,-1,98,44,43,-1,44,98,120,-1,5,7,3,-1,7,5,8,-1,109,105,104,-1,105,109,110,-1,139,35,34,-1,40,35,139,-1,140,139,111,-1,140,137,139,-1,40,110,39,-1,40,138,110,-1,136,52,159,-1,136,68,52,-1,133,30,114,-1,133,132,30,-1,36,73,79,-1,69,73,36,-1,26,159,52,-1,159,26,25,-1,88,134,131,-1,134,88,94,-1,130,155,157,-1,155,130,129,-1,123,128,125,-1,128,123,124,-1,91,82,80,-1,90,82,91,-1,20,42,72,-1,42,20,19,-1,157,21,22,-1,21,157,155,-1,154,101,100,-1,154,50,101,-1,100,15,154,-1,100,16,15,-1,13,2,57,-1,2,13,12,-1,7,0,11,-1,0,7,6,-1};
			return value;
		}
		/** Large attribute array: IndexedFaceSet DEF='r_tarsal_distal_phalanx_2_geometry' coordIndex field, scene-graph level=5, element #24, 1264 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_2_geometry_5_24_coordIndex()
		{
			MFInt32 r_tarsal_distal_phalanx_2_geometry_5_24_coordIndex = new MFInt32()/*2.finalize*/
				.append(new MFInt32(getr_tarsal_distal_phalanx_2_geometry_5_24_coordIndex_1()))
				.append(new MFInt32(getr_tarsal_distal_phalanx_2_geometry_5_24_coordIndex_2()));
			return r_tarsal_distal_phalanx_2_geometry_5_24_coordIndex;
		}
		/** Large attribute array: Coordinate DEF='r_tarsal_distal_phalanx_2_coordinate' point field, scene-graph level=6, element #24, 480 total numbers made up of 160 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_2_coordinate_6_24_point()
		{
			MFVec3f r_tarsal_distal_phalanx_2_coordinate_6_24_point = new MFVec3f(new double[] {0.0011,-0.0020,0.0039,0.0001,-0.0023,0.0038,0.0003,-0.0012,0.0020,0.0008,-0.0022,0.0051,0.0005,-0.0018,0.0053,-0.0007,-0.0029,0.0054,0.0008,-0.0026,0.0044,0.0009,-0.0026,0.0045,-0.0006,-0.0030,0.0053,0.0007,-0.0009,0.0020,0.0008,-0.0006,0.0021,0.0012,-0.0018,0.0040,0.0009,-0.0010,0.0005,0.0007,-0.0014,0.0004,0.0019,-0.0009,-0.0011,-0.0042,-0.0014,0.0038,-0.0041,-0.0011,0.0042,-0.0047,-0.0006,0.0029,-0.0007,-0.0032,0.0052,0.0038,0.0009,-0.0017,0.0044,0.0010,-0.0022,0.0025,0.0029,-0.0017,0.0029,0.0032,-0.0024,0.0020,-0.0027,-0.0050,0.0019,-0.0032,-0.0047,0.0001,-0.0033,-0.0051,0.0003,-0.0027,-0.0053,-0.0038,-0.0005,-0.0050,-0.0027,-0.0004,-0.0048,-0.0024,-0.0010,-0.0048,-0.0032,0.0016,-0.0052,-0.0019,0.0013,-0.0048,-0.0027,0.0004,-0.0048,0.0046,0.0001,-0.0030,0.0027,-0.0000,-0.0035,0.0025,0.0009,-0.0037,0.0034,-0.0019,-0.0041,0.0023,-0.0014,-0.0042,0.0028,-0.0007,-0.0037,0.0019,0.0016,-0.0041,0.0019,0.0007,-0.0038,-0.0017,0.0004,-0.0045,0.0039,0.0001,-0.0018,0.0021,0.0007,-0.0005,0.0021,-0.0001,-0.0008,0.0045,0.0007,-0.0030,-0.0043,0.0004,0.0031,-0.0040,-0.0004,0.0045,-0.0010,-0.0037,0.0032,-0.0024,-0.0035,0.0030,-0.0018,-0.0029,0.0051,0.0000,-0.0020,-0.0050,-0.0018,-0.0023,-0.0052,-0.0012,-0.0016,-0.0050,-0.0007,-0.0010,0.0051,-0.0007,0.0007,0.0040,-0.0013,-0.0009,0.0050,0.0001,-0.0016,0.0018,0.0005,-0.0020,0.0001,0.0001,-0.0024,0.0014,-0.0030,-0.0018,0.0013,-0.0035,-0.0029,0.0031,-0.0021,-0.0027,0.0010,-0.0003,-0.0032,0.0035,-0.0002,-0.0026,0.0037,-0.0030,0.0011,0.0036,-0.0030,-0.0002,0.0049,-0.0041,0.0004,-0.0050,-0.0032,-0.0014,-0.0050,0.0048,-0.0005,-0.0030,-0.0013,-0.0010,-0.0046,0.0011,0.0020,-0.0006,0.0045,0.0001,-0.0022,0.0048,-0.0006,-0.0028,0.0047,0.0001,-0.0026,0.0044,-0.0006,-0.0024,0.0014,-0.0019,-0.0016,0.0027,-0.0022,-0.0031,0.0038,-0.0006,-0.0021,0.0033,-0.0022,-0.0039,0.0016,-0.0032,-0.0043,0.0031,-0.0023,-0.0036,0.0000,-0.0034,-0.0047,-0.0028,-0.0015,-0.0006,-0.0018,-0.0024,-0.0022,-0.0019,-0.0023,-0.0005,-0.0030,-0.0017,-0.0023,0.0045,0.0009,-0.0026,0.0036,0.0029,-0.0030,-0.0003,-0.0026,-0.0023,-0.0001,-0.0033,-0.0040,0.0013,-0.0030,-0.0037,-0.0001,0.0014,0.0007,0.0001,0.0023,-0.0008,0.0036,0.0024,-0.0036,-0.0045,-0.0017,0.0029,-0.0035,-0.0010,0.0012,0.0010,-0.0005,0.0006,0.0011,0.0004,0.0008,-0.0001,-0.0015,-0.0048,-0.0029,-0.0017,0.0049,-0.0017,-0.0024,0.0053,0.0007,-0.0001,0.0022,0.0013,-0.0011,0.0042,-0.0007,0.0020,-0.0049,-0.0006,0.0014,-0.0046,-0.0015,-0.0004,-0.0045,-0.0002,-0.0002,-0.0042,-0.0001,-0.0009,-0.0045,0.0007,0.0020,-0.0047,0.0007,0.0014,-0.0044,0.0021,-0.0009,-0.0039,0.0014,-0.0020,-0.0046,0.0012,-0.0015,-0.0044,-0.0038,0.0020,-0.0048,-0.0047,0.0003,-0.0046,-0.0048,0.0003,-0.0039,-0.0040,0.0020,-0.0028,-0.0040,0.0022,-0.0036,-0.0046,0.0001,-0.0032,0.0011,-0.0004,0.0007,0.0011,-0.0007,0.0043,0.0006,0.0001,0.0022,-0.0020,-0.0029,-0.0044,-0.0019,-0.0029,-0.0037,-0.0037,-0.0019,-0.0042,-0.0042,-0.0009,-0.0033,-0.0044,-0.0009,-0.0041,-0.0035,-0.0018,-0.0035,-0.0019,0.0034,-0.0024,-0.0018,0.0036,-0.0032,0.0010,0.0034,-0.0044,-0.0010,0.0029,-0.0053,-0.0013,0.0034,-0.0049,0.0012,0.0029,-0.0048,-0.0043,-0.0009,-0.0047,-0.0036,-0.0018,-0.0047,0.0009,-0.0001,-0.0039,0.0008,0.0007,-0.0041,0.0020,-0.0001,-0.0037,0.0010,-0.0009,-0.0042,-0.0004,0.0006,-0.0043,-0.0009,-0.0029,0.0011,-0.0007,-0.0026,-0.0004,-0.0035,-0.0007,-0.0020,-0.0036,0.0001,-0.0003,-0.0037,0.0004,-0.0018,-0.0033,-0.0007,-0.0004,-0.0005,0.0009,0.0020,-0.0021,0.0017,0.0004,-0.0023,0.0013,0.0018,-0.0034,0.0009,0.0015,-0.0033,0.0011,-0.0001,-0.0038,-0.0001,0.0013,-0.0028,-0.0022,0.0047,0.0003,0.0034,-0.0021,-0.0018,0.0024,-0.0011,0.0006,0.0037,-0.0029,-0.0034,0.0017,-0.0016,-0.0018,-0.0029,-0.0049});
			return r_tarsal_distal_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_distal_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_distal_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_distal_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_distal_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_distal_phalanx_2_JavaExport.* file validation is checked when building X3D Example Archives
                String filenameX3D  = "Skeleton/r_tarsal_distal_phalanx_2_JavaExport.x3d"; 
                String filenameX3DV = "Skeleton/r_tarsal_distal_phalanx_2_JavaExport.x3dv"; 
                String filenameJSON = "Skeleton/r_tarsal_distal_phalanx_2_JavaExport.json";
                thisExampleX3dModel.toFileX3D        (filenameX3D);
                thisExampleX3dModel.toFileClassicVRML(filenameX3DV);
// TODO         thisExampleX3dModel.toFileJSON       (filenameJSON);
        }
    }
}
