package HumanoidAnimation.Skeleton;

import org.web3d.x3d.jsail.Core.*;
import org.web3d.x3d.jsail.fields.*;
import org.web3d.x3d.jsail.Geometry3D.*;
import org.web3d.x3d.jsail.Grouping.*;
import org.web3d.x3d.jsail.Navigation.*;
import org.web3d.x3d.jsail.PointingDeviceSensor.*;
import org.web3d.x3d.jsail.Rendering.*;
import org.web3d.x3d.jsail.Shape.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> bone in foot. </p>
 <p> Related links:  source l_tarsal_distal_phalanx_4.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_4&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_4.x3d">l_tarsal_distal_phalanx_4.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/lfdphal4.x3d">originals/lfdphal4.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/l_tarsal_distal_phalanx_4.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skeleton/l_tarsal_distal_phalanx_4.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_4
{
	/** Default constructor to create this object. */
	public l_tarsal_distal_phalanx_4 ()
	{
	  initialize();
	}

	/** Create and initialize the X3D model for this object. */
	public final void initialize()
	{
            try { // catch-all
  x3dModel = new X3D().setProfile(X3D.PROFILE_INTERACTIVE).setVersion(X3D.VERSION_4_0)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("l_tarsal_distal_phalanx_4.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/lfdphal4.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/l_tarsal_distal_phalanx_4.x3d"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("l_tarsal_distal_phalanx_4.x3d"))
    .addComments(" user hovering reveals description, user selection/deselection temporarily binds/unbinds a hidden close-up viewpoint ")
    .addChild(new TouchSensor("UserTouchSensor").setDescription("bone l_tarsal_distal_phalanx_4"))
    .addChild(new Transform("l_tarsal_distal_phalanx_4").setTranslation(0.1211,0.0073,0.0711)
      .addChild(new Viewpoint("HiddenViewpoint").setNearDistance(0.001).setPosition(0.0,0.0,0.3)
        .setNavigationInfo(new NavigationInfo().setTransitionType(new String[] {"ANIMATE"}).setType(new String[] {"EXAMINE"})))
      .addChild(new ROUTE().setFromNode("UserTouchSensor").setFromField("isActive").setToNode("HiddenViewpoint").setToField("set_bind"))
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material("BoneMaterial").setAmbientIntensity(0.965).setDiffuseColor(1.0,0.9765,0.8667).setShininess(0.05).setSpecularColor(0.349,0.349,0.349)))
        .setGeometry(new IndexedFaceSet("l_tarsal_distal_phalanx_4_geometry").setDEF("l_tarsal_distal_phalanx_4_geometry").setCreaseAngle(1.571).setCoordIndex(getl_tarsal_distal_phalanx_4_geometry_5_24_coordIndex())
          .setCoord(new Coordinate("l_tarsal_distal_phalanx_4_coordinate").setPoint(getl_tarsal_distal_phalanx_4_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[] getl_tarsal_distal_phalanx_4_geometry_5_24_coordIndex_1()
		{
			int[] value = {0,1,2,-1,3,4,5,-1,6,0,7,-1,8,9,10,-1,11,12,4,-1,12,13,4,-1,11,4,14,-1,15,16,17,-1,17,18,15,-1,19,20,21,-1,20,22,21,-1,23,24,25,-1,24,26,25,-1,27,28,29,-1,29,30,27,-1,20,31,32,-1,33,34,35,-1,36,37,38,-1,39,40,41,-1,42,43,37,-1,44,35,34,-1,45,46,18,-1,45,47,46,-1,37,36,29,-1,48,49,9,-1,49,10,9,-1,50,2,14,-1,51,52,12,-1,53,54,24,-1,24,55,53,-1,56,57,58,-1,59,60,61,-1,61,62,59,-1,63,62,61,-1,63,64,62,-1,65,66,67,-1,66,68,67,-1,69,52,70,-1,70,71,69,-1,2,72,0,-1,11,73,74,-1,69,75,8,-1,8,76,69,-1,77,49,48,-1,77,78,49,-1,79,80,81,-1,80,82,81,-1,33,83,34,-1,19,54,31,-1,40,84,36,-1,31,53,85,-1,86,87,88,-1,86,89,87,-1,90,91,92,-1,92,93,90,-1,25,94,95,-1,25,96,94,-1,25,26,97,-1,97,96,25,-1,98,99,100,-1,100,101,98,-1,102,103,104,-1,103,105,104,-1,106,107,108,-1,106,109,107,-1,110,64,106,-1,110,62,64,-1,17,27,30,-1,17,16,27,-1,111,112,113,-1,87,95,94,-1,94,88,87,-1,62,110,114,-1,115,31,85,-1,115,32,31,-1,28,37,29,-1,39,84,40,-1,20,19,31,-1,8,75,9,-1,11,74,51,-1,2,50,72,-1,74,73,67,-1,73,65,67,-1,116,75,71,-1,75,69,71,-1,1,0,6,-1,6,66,1,-1,117,118,63,-1,118,64,63,-1,46,59,62,-1,62,114,46,-1,119,120,121,-1,120,122,121,-1,83,20,34,-1,55,123,53,-1,111,99,124,-1,111,100,99,-1,56,5,4,-1,49,78,125,-1,49,125,10,-1,126,14,3,-1,14,4,3,-1,82,35,127,-1,115,128,129,-1,115,85,128,-1,81,130,42,-1,131,41,40,-1,41,132,133,-1,43,130,134,-1,43,42,130,-1,40,36,38,-1,37,28,42,-1,34,20,32,-1,31,54,53,-1,89,84,87,-1,89,36,84,-1,84,39,95,-1,95,87,84,-1,28,27,135,-1,135,79,28,-1,105,107,121,-1,105,103,107,-1,91,88,94,-1,91,90,88,-1,15,136,16,-1,136,137,16,-1,76,10,125,-1,76,8,10,-1,73,2,65,-1,2,1,65,-1,1,66,65,-1,0,138,7,-1,0,72,138,-1,50,14,126,-1,60,59,139,-1,12,11,51,-1,140,5,141,-1,140,3,5,-1,72,126,138,-1,72,50,126,-1,14,73,11,-1,14,2,73,-1,90,86,88,-1,90,45,86,-1,96,91,94,-1,96,112,91,-1,142,97,143,-1,142,113,97,-1,122,144,145,-1,144,122,146,-1,108,103,147,-1,108,107,103,-1,121,145,105,-1,145,121,122,-1,80,135,148,-1,80,79,135,-1,29,89,30,-1,29,36,89,-1,22,83,104,-1,22,20,83,-1,23,95,39,-1,95,23,25,-1,149,43,134,-1,150,43,149,-1,132,131,151,-1,41,131,132,-1,127,44,152,-1,127,35,44,-1,131,38,150,-1,131,40,38,-1,128,53,123,-1,85,53,128,-1,152,115,129,-1,44,115,152,-1,152,130,127,-1,134,130,152,-1,138,3,140,-1,138,126,3,-1,6,139,59,-1,6,7,139,-1,13,56,4,-1,57,56,13,-1,99,153,124,-1,99,70,153,-1,100,113,142,-1,113,100,111,-1,22,105,145,-1,105,22,104,-1,154,120,119,-1,154,155,120,-1,79,42,28,-1,79,81,42,-1,99,71,70,-1,71,99,98,-1,118,156,154,-1,118,117,156,-1,116,9,75,-1,116,156,9,-1,51,67,153,-1,51,74,67,-1,76,52,69,-1,76,12,52,-1,63,58,77,-1,61,58,63,-1,41,23,39,-1,23,41,133,-1,44,32,115,-1,44,34,32,-1,151,123,132,-1,123,151,128,-1,134,129,149,-1,134,152,129,-1,136,106,108,-1,136,110,106,-1,46,15,18,-1,114,15,46,-1,111,68,92,-1,68,111,124,-1,16,135,27,-1,16,137,135,-1,6,93,66,-1,6,47,93,-1,106,118,109,-1,106,64,118,-1,148,103,102,-1,148,147,103,-1,107,119,121,-1,107,109,119,-1,21,145,144,-1,21,22,145,-1,120,98,101,-1,120,155,98,-1,101,142,146,-1,101,100,142,-1,144,157,21,-1,143,157,144,-1,120,146,122,-1,146,120,101,-1,118,119,109,-1,118,154,119,-1,137,148,135,-1,137,147,148,-1,92,112,111,-1,112,92,91,-1,92,66,93,-1,66,92,68,-1,93,45,90,-1,47,45,93,-1,114,136,15,-1,114,110,136,-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_4_geometry_5_24_coordIndex_2()
		{
			int[] value = {149,128,151,-1,149,129,128,-1,132,55,133,-1,123,55,132,-1,133,24,23,-1,24,133,55,-1,35,80,33,-1,80,35,82,-1,58,78,77,-1,57,78,58,-1,117,77,48,-1,117,63,77,-1,141,56,58,-1,141,5,56,-1,58,60,141,-1,60,58,61,-1,156,48,9,-1,156,117,48,-1,116,98,155,-1,98,116,71,-1,124,67,68,-1,67,124,153,-1,156,155,154,-1,156,116,155,-1,97,157,143,-1,26,157,97,-1,153,52,51,-1,153,70,52,-1,57,125,78,-1,57,13,125,-1,86,30,89,-1,86,17,30,-1,6,46,47,-1,6,59,46,-1,140,7,138,-1,7,140,139,-1,127,81,82,-1,127,130,81,-1,37,150,38,-1,43,150,37,-1,150,151,131,-1,150,149,151,-1,54,21,157,-1,54,19,21,-1,33,148,102,-1,33,80,148,-1,157,24,54,-1,157,26,24,-1,83,102,104,-1,83,33,102,-1,136,147,137,-1,136,108,147,-1,146,143,144,-1,146,142,143,-1,97,112,96,-1,113,112,97,-1,45,17,86,-1,45,18,17,-1,13,76,125,-1,76,13,12,-1,141,139,140,-1,141,60,139,-1};
			return value;
		}
		/** Large attribute array: IndexedFaceSet DEF='l_tarsal_distal_phalanx_4_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 getl_tarsal_distal_phalanx_4_geometry_5_24_coordIndex()
		{
			MFInt32 l_tarsal_distal_phalanx_4_geometry_5_24_coordIndex = new MFInt32()/*2.finalize*/
				.append(new MFInt32(getl_tarsal_distal_phalanx_4_geometry_5_24_coordIndex_1()))
				.append(new MFInt32(getl_tarsal_distal_phalanx_4_geometry_5_24_coordIndex_2()));
			return l_tarsal_distal_phalanx_4_geometry_5_24_coordIndex;
		}
		/** Large attribute array: Coordinate DEF='l_tarsal_distal_phalanx_4_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 getl_tarsal_distal_phalanx_4_coordinate_6_24_point()
		{
			MFVec3f l_tarsal_distal_phalanx_4_coordinate_6_24_point = new MFVec3f(new double[] {-0.0010,-0.0000,0.0014,-0.0011,-0.0006,0.0013,-0.0016,-0.0011,0.0022,-0.0015,-0.0005,0.0033,-0.0008,-0.0014,0.0035,-0.0012,-0.0003,0.0034,-0.0011,0.0001,0.0011,-0.0010,0.0001,0.0015,0.0030,-0.0011,0.0023,0.0037,-0.0006,0.0014,0.0029,-0.0007,0.0026,-0.0009,-0.0018,0.0032,0.0003,-0.0016,0.0032,0.0003,-0.0013,0.0034,-0.0010,-0.0016,0.0033,-0.0013,0.0029,-0.0005,-0.0016,0.0032,-0.0011,-0.0038,0.0015,-0.0010,-0.0032,0.0014,-0.0005,0.0032,-0.0021,-0.0032,0.0039,-0.0015,-0.0033,0.0034,-0.0025,-0.0029,0.0043,-0.0018,-0.0029,-0.0025,-0.0023,-0.0033,-0.0005,-0.0026,-0.0035,-0.0026,-0.0025,-0.0030,-0.0005,-0.0031,-0.0033,-0.0023,0.0030,-0.0017,-0.0025,0.0026,-0.0021,-0.0040,0.0014,-0.0017,-0.0040,0.0015,-0.0013,0.0026,-0.0017,-0.0031,0.0029,-0.0012,-0.0031,0.0039,0.0004,-0.0035,0.0031,-0.0004,-0.0031,0.0026,0.0004,-0.0031,-0.0044,0.0008,-0.0017,-0.0019,0.0010,-0.0022,-0.0025,0.0003,-0.0020,-0.0039,-0.0012,-0.0026,-0.0028,-0.0003,-0.0022,-0.0024,-0.0010,-0.0026,-0.0010,0.0015,-0.0024,-0.0013,0.0009,-0.0022,0.0022,-0.0001,-0.0028,-0.0036,0.0008,-0.0006,-0.0016,0.0011,0.0004,-0.0019,0.0004,0.0002,0.0036,0.0004,0.0015,0.0030,-0.0001,0.0028,-0.0016,-0.0009,0.0026,-0.0006,-0.0025,0.0017,0.0009,-0.0026,0.0016,0.0013,-0.0019,-0.0032,0.0017,-0.0026,-0.0034,0.0000,-0.0020,-0.0033,-0.0002,0.0001,0.0034,0.0005,0.0002,0.0033,0.0005,0.0014,0.0022,-0.0009,0.0008,0.0012,-0.0006,0.0008,0.0015,0.0006,0.0013,0.0013,0.0005,0.0015,0.0010,0.0023,0.0013,0.0012,0.0023,0.0014,0.0008,-0.0011,-0.0008,0.0013,-0.0011,-0.0006,0.0009,-0.0010,-0.0015,0.0010,-0.0012,-0.0014,0.0006,0.0022,-0.0022,0.0016,0.0011,-0.0022,0.0007,0.0022,-0.0016,0.0009,-0.0016,-0.0005,0.0022,-0.0015,-0.0014,0.0021,-0.0012,-0.0019,0.0019,0.0033,-0.0015,0.0015,0.0015,-0.0014,0.0030,0.0026,0.0013,0.0019,0.0021,0.0003,0.0031,0.0001,0.0024,-0.0030,0.0021,0.0019,-0.0035,0.0004,0.0017,-0.0029,0.0017,0.0013,-0.0031,0.0044,-0.0007,-0.0033,-0.0049,0.0002,-0.0017,0.0015,-0.0014,-0.0029,-0.0043,0.0009,-0.0010,-0.0049,0.0002,-0.0015,-0.0045,0.0002,-0.0012,-0.0045,0.0008,-0.0014,-0.0039,-0.0000,-0.0008,-0.0033,-0.0015,-0.0017,-0.0020,-0.0013,-0.0004,-0.0021,-0.0003,0.0000,-0.0038,-0.0016,-0.0021,-0.0039,-0.0014,-0.0024,-0.0023,-0.0026,-0.0027,-0.0005,-0.0032,-0.0029,0.0022,-0.0016,0.0001,0.0011,-0.0022,0.0002,0.0013,-0.0024,-0.0009,0.0027,-0.0021,-0.0009,0.0045,0.0007,-0.0032,0.0045,0.0009,-0.0021,0.0049,-0.0009,-0.0029,0.0049,-0.0009,-0.0023,0.0024,0.0017,-0.0001,0.0044,0.0008,-0.0014,0.0028,0.0025,-0.0011,0.0036,0.0008,-0.0005,0.0006,0.0020,0.0002,-0.0004,-0.0023,-0.0009,-0.0020,-0.0025,-0.0021,-0.0005,-0.0030,-0.0023,-0.0003,0.0020,0.0003,0.0018,-0.0008,-0.0028,0.0028,-0.0010,0.0009,0.0032,0.0006,0.0010,0.0032,0.0006,0.0004,0.0037,-0.0004,-0.0006,0.0033,-0.0013,-0.0007,0.0046,-0.0009,-0.0016,0.0040,-0.0017,-0.0017,0.0001,-0.0016,-0.0030,-0.0002,-0.0022,0.0002,0.0016,-0.0010,0.0031,-0.0017,-0.0009,0.0028,0.0014,0.0008,-0.0028,0.0003,-0.0011,-0.0028,0.0005,-0.0005,-0.0025,0.0001,0.0011,-0.0027,-0.0021,-0.0005,-0.0023,-0.0013,-0.0013,-0.0028,-0.0016,-0.0017,-0.0030,-0.0002,0.0005,-0.0024,0.0003,0.0029,-0.0026,0.0008,0.0030,-0.0008,0.0007,0.0032,-0.0015,-0.0017,-0.0003,0.0022,-0.0008,0.0006,0.0015,-0.0015,0.0004,0.0024,-0.0012,0.0007,0.0025,0.0015,-0.0030,-0.0020,0.0016,-0.0031,-0.0027,0.0034,-0.0026,-0.0024,0.0042,-0.0018,-0.0024,0.0032,-0.0025,-0.0018,0.0028,0.0026,-0.0018,0.0025,0.0023,-0.0032,-0.0006,-0.0002,-0.0023,-0.0017,0.0001,-0.0021,-0.0009,-0.0007,-0.0025,0.0010,0.0002,-0.0025,-0.0001,-0.0022,0.0007,0.0033,-0.0003,0.0003,0.0029,-0.0011,0.0002,0.0033,-0.0003,0.0008,0.0016,-0.0031,-0.0031});
			return l_tarsal_distal_phalanx_4_coordinate_6_24_point;
		}

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

	/** 
	 * Provide a 
	 * <a href="https://dzone.com/articles/java-copy-shallow-vs-deep-in-which-you-will-swim" target="_blank">shallow copy</a>
	 * of the X3D model.
	 * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html">X3D</a>
	 * @return l_tarsal_distal_phalanx_4 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_4().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_4\" 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_4 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_4_JavaExport.* file validation is checked when building X3D Example Archives
                String filenameX3D  = "Skeleton/l_tarsal_distal_phalanx_4_JavaExport.x3d"; 
                String filenameX3DV = "Skeleton/l_tarsal_distal_phalanx_4_JavaExport.x3dv"; 
                String filenameJSON = "Skeleton/l_tarsal_distal_phalanx_4_JavaExport.json";
                thisExampleX3dModel.toFileX3D        (filenameX3D);
                thisExampleX3dModel.toFileClassicVRML(filenameX3DV);
// TODO         thisExampleX3dModel.toFileJSON       (filenameJSON);
        }
    }
}
