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.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_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.l_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/l_tarsal_distal_phalanx_3.x3d">l_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/lfdphal3.x3d">originals/lfdphal3.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> <a href="https://www.web3d.org/x3d/content/examples/Basic/Medical" target="_blank">https://www.web3d.org/x3d/content/examples/Basic/Medical</a> </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/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_distal_phalanx_3.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skeleton/l_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 l_tarsal_distal_phalanx_3
{
	/** Default constructor to create this object. */
	public l_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_3_3)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("l_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/lfdphal3.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("https://www.web3d.org/x3d/content/examples/Basic/Medical"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("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_distal_phalanx_3.x3d"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("l_tarsal_distal_phalanx_3.x3d"))
    .addChild(new TouchSensor().setDescription("bone l_tarsal_distal_phalanx_3"))
    .addChild(new Transform("l_tarsal_distal_phalanx_3")
      .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_distal_phalanx_3_geometry").setDEF("l_tarsal_distal_phalanx_3_geometry").setCreaseAngle(1.571).setCoordIndex(getl_tarsal_distal_phalanx_3_geometry_5_22_coordIndex())
          .setCoord(new Coordinate("l_tarsal_distal_phalanx_3_coordinate").setPoint(getl_tarsal_distal_phalanx_3_coordinate_6_22_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[] getl_tarsal_distal_phalanx_3_geometry_5_22_coordIndex_1()
		{
			int[] value = {0,1,2,-1,3,4,5,-1,6,0,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,29,30,24,-1,31,22,21,-1,24,23,32,-1,33,34,9,-1,34,10,9,-1,35,2,12,-1,36,37,38,-1,39,40,14,-1,14,41,39,-1,42,43,44,-1,45,46,47,-1,46,48,47,-1,49,37,50,-1,49,51,37,-1,2,52,0,-1,11,53,54,-1,51,55,8,-1,8,56,51,-1,57,34,33,-1,57,58,34,-1,20,59,21,-1,60,40,18,-1,27,61,23,-1,18,39,62,-1,63,64,65,-1,64,66,65,-1,67,68,69,-1,67,70,68,-1,15,71,72,-1,15,73,71,-1,74,75,76,-1,76,77,74,-1,75,78,79,-1,79,76,75,-1,80,81,82,-1,81,83,82,-1,84,85,86,-1,84,87,85,-1,88,46,84,-1,88,48,46,-1,89,90,91,-1,68,71,69,-1,68,72,71,-1,48,88,63,-1,92,24,32,-1,26,61,27,-1,17,60,18,-1,8,55,9,-1,11,54,36,-1,2,35,52,-1,54,53,93,-1,53,94,93,-1,55,51,49,-1,49,95,55,-1,65,96,48,-1,48,63,65,-1,59,17,21,-1,41,97,39,-1,89,78,98,-1,89,79,78,-1,58,99,100,-1,58,43,99,-1,42,5,4,-1,34,58,100,-1,34,100,10,-1,101,12,3,-1,12,4,3,-1,102,22,103,-1,104,105,29,-1,106,28,27,-1,28,107,108,-1,29,105,109,-1,109,30,29,-1,27,23,25,-1,24,92,29,-1,21,17,19,-1,18,40,39,-1,16,14,40,-1,40,110,16,-1,59,20,82,-1,20,80,82,-1,92,111,112,-1,112,113,92,-1,83,85,114,-1,83,81,85,-1,56,8,10,-1,10,100,56,-1,53,2,94,-1,2,1,94,-1,1,115,94,-1,0,52,116,-1,116,7,0,-1,35,12,101,-1,117,96,118,-1,38,11,36,-1,119,5,120,-1,119,3,5,-1,101,52,35,-1,52,101,116,-1,12,53,11,-1,12,2,53,-1,38,4,11,-1,38,99,4,-1,66,121,122,-1,66,64,121,-1,69,123,67,-1,124,123,69,-1,73,125,71,-1,73,90,125,-1,126,127,128,-1,126,91,127,-1,129,130,131,-1,130,129,132,-1,86,81,133,-1,86,85,81,-1,114,131,83,-1,131,114,129,-1,134,112,135,-1,134,113,112,-1,60,136,137,-1,60,17,136,-1,138,23,70,-1,32,23,138,-1,17,82,136,-1,17,59,82,-1,13,72,26,-1,72,13,15,-1,138,92,32,-1,111,92,138,-1,109,139,30,-1,139,109,140,-1,28,141,107,-1,28,106,141,-1,31,103,22,-1,103,31,142,-1,139,27,25,-1,139,106,27,-1,97,62,39,-1,62,97,143,-1,144,142,31,-1,144,145,142,-1,142,105,103,-1,109,105,142,-1,116,3,119,-1,116,101,3,-1,6,118,96,-1,6,7,118,-1,65,123,146,-1,123,65,66,-1,99,42,4,-1,43,42,99,-1,147,78,50,-1,98,78,147,-1,126,89,91,-1,126,79,89,-1,136,83,131,-1,83,136,82,-1,148,74,77,-1,149,74,148,-1,117,48,96,-1,48,117,47,-1,113,29,92,-1,113,104,29,-1,150,94,115,-1,94,150,93,-1,50,75,49,-1,50,78,75,-1,151,149,152,-1,149,151,153,-1,95,9,55,-1,95,153,9,-1,147,54,93,-1,36,54,147,-1,51,38,37,-1,51,56,38,-1,45,44,57,-1,47,44,45,-1,102,113,134,-1,113,102,104,-1,26,108,13,-1,26,28,108,-1,144,21,19,-1,144,31,21,-1,107,143,97,-1,107,141,143,-1,140,142,145,-1,140,109,142,-1,88,86,154,-1,86,88,84,-1,125,155,124,-1,155,125,156,-1,89,150,156,-1,150,89,98,-1,16,73,15,-1,73,16,127,-1,121,112,111,-1,121,157,112,-1,6,155,115,-1,6,146,155,-1,46,87,84,-1,46,152,87,-1,135,81,80,-1,135,133,81,-1,85,148,114,-1,85,87,148,-1,137,131,130,-1,137,136,131,-1,76,126,132,-1,76,79,126,-1,130,110,137,-1,128,110,130,-1,77,132,129,-1,132,77,76,-1,152,148,87,-1,152,149,148,-1,157,135,112,-1,157,133,135,-1,111,122,121,-1,122,111,138,-1,156,90,89,-1,90,156,125,-1,156,115,155,-1,115,156,150,-1,124,146,123,-1,146,124,155,-1,63,154,64,-1,63,88,154,-1,141,145,143,-1,141,140,145,-1,108,97,41,-1,97,108,107,-1,18,144,19,-1,144,18,62,-1,108,14,13,-1,14,108,41,-1,22,134,20,-1,134,22,102,-1,43,57,44,-1,43,58,57,-1};
			return value;
		}

		/** Define subarray values using type int[] with $tupleSize=1 and $tupleSplitSize=1000 for subarray position()=2 */
		private int[] getl_tarsal_distal_phalanx_3_geometry_5_22_coordIndex_2()
		{
			int[] value = {151,57,33,-1,151,45,57,-1,120,42,44,-1,120,5,42,-1,44,117,120,-1,117,44,47,-1,153,33,9,-1,153,151,33,-1,74,49,75,-1,74,95,49,-1,98,93,150,-1,93,98,147,-1,115,0,6,-1,115,1,0,-1,45,152,46,-1,151,152,45,-1,74,153,95,-1,153,74,149,-1,77,114,148,-1,77,129,114,-1,127,110,128,-1,16,110,127,-1,36,50,37,-1,147,50,36,-1,67,138,70,-1,67,122,138,-1,96,146,6,-1,146,96,65,-1,7,119,118,-1,7,116,119,-1,103,104,102,-1,103,105,104,-1,144,143,145,-1,144,62,143,-1,25,30,139,-1,30,25,24,-1,106,140,141,-1,106,139,140,-1,61,70,23,-1,70,61,68,-1,40,137,110,-1,40,60,137,-1,20,135,80,-1,20,134,135,-1,68,26,72,-1,61,26,68,-1,154,133,157,-1,154,86,133,-1,132,128,130,-1,132,126,128,-1,127,90,73,-1,91,90,127,-1,71,124,69,-1,125,124,71,-1,123,122,67,-1,123,66,122,-1,64,157,121,-1,64,154,157,-1,99,56,100,-1,56,99,38,-1,120,118,119,-1,120,117,118,-1};
			return value;
		}
		/** Large attribute array: IndexedFaceSet DEF='l_tarsal_distal_phalanx_3_geometry' coordIndex field, scene-graph level=5, element #22, 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 getl_tarsal_distal_phalanx_3_geometry_5_22_coordIndex()
		{
			MFInt32 l_tarsal_distal_phalanx_3_geometry_5_22_coordIndex = new MFInt32()/*2.finalize*/
				.append(new MFInt32(getl_tarsal_distal_phalanx_3_geometry_5_22_coordIndex_1()))
				.append(new MFInt32(getl_tarsal_distal_phalanx_3_geometry_5_22_coordIndex_2()));
			return l_tarsal_distal_phalanx_3_geometry_5_22_coordIndex;
		}
		/** Large attribute array: Coordinate DEF='l_tarsal_distal_phalanx_3_coordinate' point field, scene-graph level=6, element #22, 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 getl_tarsal_distal_phalanx_3_coordinate_6_22_point()
		{
			MFVec3f l_tarsal_distal_phalanx_3_coordinate_6_22_point = new MFVec3f(new double[] {0.1105,0.0042,0.0939,0.1105,0.0035,0.0938,0.1109,0.0027,0.0951,0.111,0.0031,0.0963,0.1122,0.0023,0.0967,0.1113,0.0033,0.0965,0.1101,0.0044,0.0931,0.1105,0.0043,0.094,0.1146,0.0034,0.0951,0.1146,0.0042,0.0942,0.1147,0.0037,0.0955,0.1122,0.0019,0.0965,0.112,0.0021,0.0965,0.109,0.0021,0.0878,0.1102,0.002,0.0875,0.109,0.0017,0.0881,0.1104,0.0014,0.0877,0.113,0.0039,0.0876,0.1119,0.0035,0.0877,0.1121,0.0041,0.0878,0.1128,0.006,0.0878,0.1121,0.005,0.0881,0.1116,0.0058,0.0882,0.1073,0.0051,0.0891,0.1087,0.0057,0.089,0.1085,0.0048,0.089,0.108,0.0031,0.0884,0.1084,0.0042,0.0888,0.1087,0.0034,0.0885,0.1092,0.0064,0.089,0.109,0.0056,0.089,0.1113,0.005,0.0885,0.1075,0.0058,0.0891,0.1144,0.0052,0.0944,0.1147,0.0045,0.0958,0.1108,0.0027,0.0956,0.1118,0.0014,0.0944,0.1128,0.0014,0.0943,0.113,0.0022,0.0963,0.111,0.003,0.0878,0.1116,0.0023,0.0875,0.1103,0.0026,0.0878,0.1122,0.0041,0.0965,0.1127,0.0043,0.0964,0.1119,0.0057,0.0953,0.1127,0.0061,0.0938,0.1123,0.0064,0.0929,0.1114,0.0058,0.0939,0.111,0.0062,0.0932,0.1128,0.0029,0.0931,0.1121,0.0021,0.0929,0.1137,0.0021,0.0943,0.1105,0.0032,0.0951,0.111,0.0024,0.0949,0.1113,0.0019,0.0947,0.1144,0.0031,0.0941,0.1137,0.0027,0.0959,0.1136,0.006,0.0949,0.114,0.0047,0.0962,0.1134,0.0048,0.0878,0.1126,0.0032,0.0875,0.1071,0.0044,0.089,0.111,0.0036,0.0882,0.1102,0.0067,0.0925,0.1093,0.0077,0.0914,0.1095,0.0055,0.0924,0.1081,0.0058,0.0908,0.1075,0.0052,0.0899,0.1071,0.0044,0.0893,0.1074,0.0043,0.0897,0.1072,0.0051,0.0894,0.1082,0.0026,0.089,0.108,0.0028,0.0887,0.1093,0.0017,0.0885,0.1127,0.0038,0.092,0.1122,0.0031,0.0918,0.1123,0.0028,0.0906,0.1127,0.0037,0.0909,0.1117,0.0024,0.0919,0.1115,0.0021,0.0906,0.1134,0.0064,0.0882,0.1134,0.0066,0.0894,0.1139,0.0047,0.0883,0.1138,0.0046,0.089,0.112,0.0069,0.0919,0.1133,0.0063,0.0902,0.1122,0.0079,0.0908,0.1129,0.0061,0.0913,0.1108,0.0069,0.0923,0.1105,0.002,0.0906,0.1094,0.0018,0.0891,0.1104,0.0014,0.0888,0.1083,0.0073,0.0892,0.1107,0.0026,0.0933,0.1106,0.0033,0.0937,0.1132,0.0037,0.0931,0.1102,0.0053,0.0933,0.1102,0.0031,0.0881,0.1109,0.0021,0.0919,0.1129,0.0026,0.0965,0.1138,0.0032,0.0962,0.1108,0.0027,0.0958,0.111,0.0067,0.0884,0.1107,0.006,0.0886,0.11,0.0068,0.0886,0.1099,0.0061,0.0888,0.1088,0.004,0.0888,0.1094,0.0032,0.0884,0.1093,0.0028,0.0882,0.1097,0.0054,0.0891,0.1117,0.0017,0.0878,0.1084,0.0078,0.0898,0.1101,0.0081,0.089,0.1099,0.0076,0.0886,0.1135,0.0045,0.0897,0.1101,0.0037,0.0928,0.1105,0.0034,0.0952,0.1107,0.005,0.0941,0.1106,0.0048,0.0941,0.1105,0.0041,0.0954,0.1106,0.0045,0.0956,0.109,0.008,0.0907,0.1077,0.0059,0.0901,0.108,0.0051,0.0905,0.1079,0.0043,0.0902,0.1085,0.0026,0.0895,0.1116,0.0017,0.089,0.1104,0.0013,0.0881,0.1118,0.0017,0.0883,0.1132,0.0035,0.0895,0.1129,0.0026,0.0884,0.1134,0.0035,0.0887,0.1127,0.0026,0.0892,0.1122,0.0081,0.09,0.1115,0.0075,0.088,0.1118,0.0079,0.0884,0.1135,0.0036,0.088,0.113,0.0026,0.0878,0.1075,0.0059,0.0896,0.1089,0.0047,0.0891,0.1095,0.0046,0.0891,0.1095,0.0039,0.0888,0.1104,0.0052,0.0889,0.1102,0.0037,0.0885,0.1111,0.0042,0.0884,0.1102,0.0044,0.0888,0.1093,0.0047,0.0921,0.1113,0.002,0.0929,0.1129,0.0048,0.0911,0.113,0.0047,0.0922,0.1102,0.0028,0.0924,0.1134,0.0055,0.0934,0.1129,0.0057,0.0924,0.1134,0.0046,0.0932,0.1107,0.0081,0.0911,0.1093,0.004,0.0918,0.1095,0.0029,0.0913,0.1106,0.0084,0.0904});
			return l_tarsal_distal_phalanx_3_coordinate_6_22_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_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 l_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.l_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.l_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/l_tarsal_distal_phalanx_3_JavaExport.* file validation is checked when building X3D Example Archives
                String filenameX3D  = "Skeleton/l_tarsal_distal_phalanx_3_JavaExport.x3d"; 
                String filenameX3DV = "Skeleton/l_tarsal_distal_phalanx_3_JavaExport.x3dv"; 
                String filenameJSON = "Skeleton/l_tarsal_distal_phalanx_3_JavaExport.json";
                thisExampleX3dModel.toFileX3D        (filenameX3D);
                thisExampleX3dModel.toFileClassicVRML(filenameX3DV);
// TODO         thisExampleX3dModel.toFileJSON       (filenameJSON);
        }
    }
}
