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 r_tarsal_middle_phalanx_5.java, <a href="https://www.web3d.org/x3d/content/examples/X3dResources.html" target="_blank">X3D Resources</a>, <a href="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html" target="_blank">X3D Scene Authoring Hints</a>, and <a href="https://www.web3d.org/x3d/content/X3dTooltips.html" target="_blank">X3D Tooltips</a>. </p>
	<table style="color:black; border:0px solid; border-spacing:10px 0px;">
        <caption>Scene Meta Information</caption>
		<tr style="background-color:silver; border-color:silver;">
			<td style="text-align:center; padding:10px 0px;"><i>meta tags</i></td>
			<td style="text-align:left;   padding:10px 0px;">HumanoidAnimation.Skeleton.r_tarsal_middle_phalanx_5&nbsp; Document Metadata </td>
		</tr>

		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> title </i> </td>
			<td> <a href="https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skeleton/r_tarsal_middle_phalanx_5.x3d">r_tarsal_middle_phalanx_5.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/rfmpha4.x3d">originals/rfmpha4.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://en.wikipedia.org/wiki/Phalanx_bone" target="_blank">https://en.wikipedia.org/wiki/Phalanx_bone</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://en.wikipedia.org/wiki/List_of_bones_of_the_human_skeleton" target="_blank">https://en.wikipedia.org/wiki/List_of_bones_of_the_human_skeleton</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <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/r_tarsal_middle_phalanx_5.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skeleton/r_tarsal_middle_phalanx_5.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> license </i> </td>
			<td> <a href="https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skeleton/../license.html">../license.html</a> </td>
		</tr>
		<tr style="background-color:silver; border-color:silver;">
			<td style="text-align:center;" colspan="2">  &nbsp; </td>
		</tr>
	</table>

	<p>
		This program uses the
		<a href="https://www.web3d.org/specifications/java/X3DJSAIL.html" target="_blank">X3D Java Scene Access Interface Library (X3DJSAIL)</a>.
		It has been produced using the 
		<a href="https://www.web3d.org/x3d/stylesheets/X3dToJava.xslt" target="_blank">X3dToJava.xslt</a>
		stylesheet
	       (<a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/X3dToJava.xslt" target="_blank">version control</a>)
                which is used to create Java source code from an original <code>.x3d</code> model.
	</p>

	* @author Joe Williams, John Carlson, Damon Hernandez, Don Brutzman
 */

public class r_tarsal_middle_phalanx_5
{
	/** Default constructor to create this object. */
	public r_tarsal_middle_phalanx_5 ()
	{
	  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("r_tarsal_middle_phalanx_5.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/rfmpha4.x3d"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://en.wikipedia.org/wiki/Phalanx_bone"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://en.wikipedia.org/wiki/List_of_bones_of_the_human_skeleton"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("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/r_tarsal_middle_phalanx_5.x3d"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("r_tarsal_middle_phalanx_5.x3d"))
    .addChild(new TouchSensor().setDescription("bone r_tarsal_middle_phalanx_5"))
    .addChild(new Transform("r_tarsal_middle_phalanx_5")
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material("BoneMaterial").setAmbientIntensity(0.965).setDiffuseColor(1.0,0.9765,0.8667).setShininess(0.05).setSpecularColor(0.349,0.349,0.349)))
        .setGeometry(new IndexedFaceSet("r_tarsal_middle_phalanx_5_geometry").setDEF("r_tarsal_middle_phalanx_5_geometry").setCreaseAngle(1.571).setCoordIndex(getr_tarsal_middle_phalanx_5_geometry_5_22_coordIndex())
          .setCoord(new Coordinate("r_tarsal_middle_phalanx_5_coordinate").setPoint(getr_tarsal_middle_phalanx_5_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[] getr_tarsal_middle_phalanx_5_geometry_5_22_coordIndex_1()
		{
			int[] value = {0,1,2,-1,3,4,5,-1,6,7,8,-1,9,10,11,-1,9,12,10,-1,13,14,15,-1,14,16,15,-1,17,18,19,-1,17,20,18,-1,21,22,23,-1,24,25,26,-1,25,27,26,-1,28,29,30,-1,28,31,29,-1,32,33,34,-1,33,35,34,-1,36,23,37,-1,36,38,23,-1,39,40,9,-1,36,41,42,-1,36,37,41,-1,13,15,43,-1,44,45,39,-1,44,46,45,-1,47,48,49,-1,50,51,52,-1,50,53,51,-1,54,55,56,-1,54,57,55,-1,49,3,58,-1,59,10,60,-1,10,12,60,-1,61,62,63,-1,64,8,65,-1,64,11,8,-1,66,67,68,-1,69,70,71,-1,71,72,69,-1,73,74,75,-1,76,77,78,-1,79,80,32,-1,32,34,79,-1,32,80,81,-1,80,82,81,-1,63,62,83,-1,62,4,83,-1,84,85,86,-1,85,87,86,-1,88,89,90,-1,88,91,89,-1,92,93,94,-1,94,95,92,-1,43,19,13,-1,96,97,98,-1,99,100,101,-1,44,39,9,-1,7,65,8,-1,102,22,103,-1,102,23,22,-1,92,104,93,-1,105,106,107,-1,108,68,67,-1,5,58,3,-1,109,89,91,-1,3,49,48,-1,26,110,24,-1,26,111,110,-1,112,77,113,-1,75,114,115,-1,116,117,118,-1,119,120,24,-1,24,110,119,-1,69,121,122,-1,123,124,62,-1,62,61,123,-1,125,126,127,-1,126,128,127,-1,129,130,131,-1,129,132,130,-1,10,53,133,-1,10,59,53,-1,38,134,135,-1,38,136,134,-1,9,11,44,-1,11,64,44,-1,1,61,63,-1,0,109,91,-1,137,21,135,-1,135,60,137,-1,7,16,65,-1,16,138,65,-1,95,43,92,-1,98,139,96,-1,101,140,99,-1,72,121,69,-1,8,133,6,-1,141,38,36,-1,37,23,142,-1,81,143,32,-1,143,33,32,-1,144,27,70,-1,27,25,70,-1,69,122,145,-1,146,147,148,-1,104,7,6,-1,6,93,104,-1,133,11,10,-1,133,8,11,-1,40,12,9,-1,75,74,149,-1,149,108,75,-1,75,108,114,-1,108,67,114,-1,150,72,151,-1,150,121,72,-1,107,150,105,-1,149,152,127,-1,152,149,74,-1,125,78,84,-1,125,153,78,-1,154,112,145,-1,154,155,112,-1,107,121,150,-1,121,107,122,-1,151,71,90,-1,151,72,71,-1,123,156,120,-1,123,88,156,-1,119,5,124,-1,118,5,119,-1,84,77,85,-1,84,78,77,-1,118,58,5,-1,118,117,58,-1,29,157,30,-1,29,158,157,-1,29,52,158,-1,52,29,159,-1,6,94,93,-1,6,50,94,-1,7,15,16,-1,104,15,7,-1,160,54,56,-1,97,54,160,-1,96,45,161,-1,139,45,96,-1,40,100,137,-1,100,40,101,-1,39,101,40,-1,140,101,39,-1,71,25,156,-1,70,25,71,-1,162,144,76,-1,162,27,144,-1,152,162,153,-1,163,162,152,-1,164,143,81,-1,164,165,143,-1,166,167,168,-1,166,169,167,-1,170,146,148,-1,170,171,146,-1,142,102,172,-1,142,23,102,-1,141,136,38,-1,2,136,141,-1,173,158,174,-1,157,158,173,-1,105,151,175,-1,105,150,151,-1,138,132,176,-1,132,138,130,-1,46,161,45,-1,161,46,177,-1,104,43,15,-1,92,43,104,-1,178,43,95,-1,178,179,43,-1,34,47,79,-1,28,47,34,-1,98,140,139,-1,140,98,99,-1,180,181,182,-1,183,181,180,-1,184,102,103,-1,184,171,102,-1,138,64,65,-1,138,176,64,-1,99,22,100,-1,99,103,22,-1,59,135,134,-1,59,60,135,-1,43,17,19,-1,43,179,17,-1,185,131,186,-1,129,131,185,-1,84,126,125,-1,126,84,86,-1,168,187,166,-1,168,188,187,-1,132,57,177,-1,132,129,57,-1,136,51,134,-1,136,174,51,-1,167,186,165,-1,167,185,186,-1,189,126,188,-1,126,189,128,-1,89,151,90,-1,89,175,151,-1,141,42,109,-1,42,141,36,-1,116,119,110,-1,118,119,116,-1,116,114,117,-1,116,115,114,-1,145,113,69,-1,112,113,145,-1,113,76,144,-1,76,113,77,-1,115,110,111,-1,115,116,110,-1,73,26,163,-1,73,111,26,-1,28,48,47,-1,30,48,28,-1,189,81,82,-1,189,164,81,-1,166,190,148,-1,190,166,187,-1,181,148,190,-1,148,181,170,-1,37,191,41,-1,191,37,142,-1,172,191,142,-1,183,191,172,-1,109,2,141,-1,109,0,2,-1,66,58,67,-1,66,49,58,-1,192,108,149,-1,108,192,68,-1,106,154,107,-1,154,106,180,-1,124,4,62,-1,4,124,5,-1,147,55,169,-1,147,56,55,-1,174,52,51,-1,158,52,174,-1};
			return value;
		}

		/** Define subarray values using type int[] with $tupleSize=1 and $tupleSplitSize=1000 for subarray position()=2 */
		private int[] getr_tarsal_middle_phalanx_5_geometry_5_22_coordIndex_2()
		{
			int[] value = {137,12,40,-1,60,12,137,-1,14,131,130,-1,131,14,18,-1,35,17,179,-1,35,33,17,-1,177,54,161,-1,54,177,57,-1,53,6,133,-1,50,6,53,-1,135,23,38,-1,23,135,21,-1,160,171,184,-1,146,171,160,-1,165,20,143,-1,165,186,20,-1,178,29,31,-1,29,178,159,-1,61,88,123,-1,61,91,88,-1,182,85,155,-1,85,182,87,-1,128,149,127,-1,128,192,149,-1,157,63,83,-1,157,173,63,-1,41,106,105,-1,191,106,41,-1,106,183,180,-1,106,191,183,-1,190,182,181,-1,190,87,182,-1,87,187,86,-1,190,187,87,-1,128,82,192,-1,128,189,82,-1,192,80,68,-1,192,82,80,-1,80,66,68,-1,79,66,80,-1,75,111,73,-1,115,111,75,-1,69,144,70,-1,113,144,69,-1,74,163,152,-1,74,73,163,-1,175,109,42,-1,175,89,109,-1,164,188,168,-1,188,164,189,-1,1,173,2,-1,1,63,173,-1,185,169,55,-1,185,167,169,-1,86,188,126,-1,188,86,187,-1,129,55,57,-1,129,185,55,-1,186,18,20,-1,131,18,186,-1,159,95,94,-1,95,159,178,-1,134,53,59,-1,53,134,51,-1,97,184,98,-1,97,160,184,-1,44,176,46,-1,64,176,44,-1,98,103,99,-1,98,184,103,-1,170,183,172,-1,170,181,183,-1,155,180,182,-1,180,155,154,-1,66,47,49,-1,66,79,47,-1,179,31,35,-1,31,179,178,-1,176,177,46,-1,177,176,132,-1,14,138,16,-1,130,138,14,-1,42,105,175,-1,42,41,105,-1,174,2,173,-1,174,136,2,-1,171,172,102,-1,172,171,170,-1,148,169,166,-1,148,147,169,-1,165,168,167,-1,168,165,164,-1,35,28,34,-1,35,31,28,-1,24,156,25,-1,120,156,24,-1,163,27,162,-1,26,27,163,-1,76,153,162,-1,78,153,76,-1,22,137,100,-1,22,21,137,-1,45,140,39,-1,140,45,139,-1,161,97,96,-1,161,54,97,-1,56,146,160,-1,147,146,56,-1,17,143,20,-1,17,33,143,-1,14,19,18,-1,19,14,13,-1,52,94,50,-1,52,159,94,-1,48,4,3,-1,83,4,48,-1,83,30,157,-1,30,83,48,-1,91,1,0,-1,61,1,91,-1,117,67,58,-1,117,114,67,-1,123,119,124,-1,123,120,119,-1,156,90,71,-1,156,88,90,-1,154,122,107,-1,122,154,145,-1,112,85,77,-1,112,155,85,-1,127,153,125,-1,127,152,153,-1};
			return value;
		}
		/** Large attribute array: IndexedFaceSet DEF='r_tarsal_middle_phalanx_5_geometry' coordIndex field, scene-graph level=5, element #22, 1528 total numbers.
		 * Reassemble split array as single method to improve readability and runnability.
		 * Provide large array values via separate methods, hoping to avoid 'code too large' Java compilation errors. 
		 * Individual Java methods (including aggregated initializations) are limited to 64KB.
		 * @see https://stackoverflow.com/questions/2407912/code-too-large-compilation-error-in-java
		 * @see https://stackoverflow.com/questions/11437905/java-too-many-constants-jvm-error
		 */
		private MFInt32 getr_tarsal_middle_phalanx_5_geometry_5_22_coordIndex()
		{
			MFInt32 r_tarsal_middle_phalanx_5_geometry_5_22_coordIndex = new MFInt32()/*2.finalize*/
				.append(new MFInt32(getr_tarsal_middle_phalanx_5_geometry_5_22_coordIndex_1()))
				.append(new MFInt32(getr_tarsal_middle_phalanx_5_geometry_5_22_coordIndex_2()));
			return r_tarsal_middle_phalanx_5_geometry_5_22_coordIndex;
		}
		/** Large attribute array: Coordinate DEF='r_tarsal_middle_phalanx_5_coordinate' point field, scene-graph level=6, element #22, 579 total numbers made up of 193 3-tuple values.
		 * Reassemble split array as single method to improve readability and runnability.
		 * Provide large array values via separate methods, hoping to avoid 'code too large' Java compilation errors. 
		 * Individual Java methods (including aggregated initializations) are limited to 64KB.
		 * @see https://stackoverflow.com/questions/2407912/code-too-large-compilation-error-in-java
		 * @see https://stackoverflow.com/questions/11437905/java-too-many-constants-jvm-error
		 */
		private MFVec3f getr_tarsal_middle_phalanx_5_coordinate_6_22_point()
		{
			MFVec3f r_tarsal_middle_phalanx_5_coordinate_6_22_point = new MFVec3f(new double[] {-0.0936,0.0021,0.0904,-0.0934,0.0021,0.0905,-0.0945,0.0022,0.0928,-0.0896,0.0022,0.0876,-0.09,0.0017,0.0875,-0.0892,0.002,0.0854,-0.093,0.0021,0.1002,-0.0934,0.0028,0.101,-0.0945,0.002,0.1003,-0.0982,0.0015,0.0991,-0.0963,0.0018,0.0994,-0.0964,0.0017,0.0998,-0.098,0.0015,0.0987,-0.0934,0.005,0.1002,-0.0941,0.0053,0.1003,-0.0935,0.0042,0.1009,-0.0941,0.0041,0.1012,-0.093,0.0052,0.0971,-0.094,0.0058,0.0989,-0.0934,0.0054,0.0989,-0.0936,0.0057,0.097,-0.0982,0.002,0.0957,-0.0985,0.0022,0.0957,-0.098,0.0023,0.0943,-0.0918,0.0037,0.085,-0.0929,0.0037,0.0849,-0.0923,0.0061,0.0854,-0.0934,0.006,0.0854,-0.0921,0.0034,0.0934,-0.0925,0.0026,0.0955,-0.0922,0.0025,0.0934,-0.0925,0.0032,0.0955,-0.0922,0.0057,0.0933,-0.0927,0.0053,0.0953,-0.0921,0.0046,0.0933,-0.0925,0.0044,0.0953,-0.0964,0.0019,0.0922,-0.0972,0.0022,0.0919,-0.0969,0.0021,0.0946,-0.1,0.0022,0.0991,-0.0994,0.0013,0.0982,-0.0965,0.0022,0.0895,-0.0957,0.0017,0.0899,-0.0927,0.004,0.0988,-0.0987,0.0026,0.0997,-0.1003,0.0038,0.0995,-0.0991,0.0041,0.0997,-0.0913,0.0036,0.0913,-0.0914,0.0024,0.0913,-0.0892,0.0037,0.0882,-0.0929,0.002,0.0987,-0.0941,0.002,0.0969,-0.0929,0.0023,0.0971,-0.0942,0.0019,0.0984,-0.0992,0.0058,0.098,-0.0977,0.0061,0.0965,-0.0985,0.0058,0.0964,-0.0983,0.0059,0.0981,-0.0885,0.0037,0.0868,-0.096,0.002,0.0982,-0.0975,0.0015,0.0975,-0.0922,0.0022,0.087,-0.0911,0.0012,0.0872,-0.0927,0.0019,0.0907,-0.0969,0.003,0.1001,-0.0951,0.0029,0.1008,-0.0899,0.0056,0.0889,-0.0889,0.0064,0.0868,-0.0899,0.0074,0.0889,-0.095,0.0038,0.0848,-0.0939,0.0037,0.0848,-0.0938,0.0023,0.084,-0.095,0.0022,0.084,-0.0913,0.0082,0.0855,-0.0914,0.0093,0.0854,-0.0896,0.0083,0.0859,-0.0957,0.0082,0.0854,-0.0967,0.008,0.0854,-0.096,0.0092,0.0852,-0.0913,0.0049,0.0913,-0.0912,0.0066,0.0914,-0.0927,0.0066,0.0932,-0.0921,0.0075,0.0912,-0.0918,0.002,0.0912,-0.0963,0.0094,0.0855,-0.0971,0.008,0.0857,-0.0959,0.0087,0.0879,-0.097,0.0076,0.0877,-0.0926,0.0019,0.084,-0.0941,0.0011,0.0866,-0.0938,0.0018,0.0842,-0.0927,0.0022,0.0869,-0.0925,0.0031,0.0996,-0.0926,0.0026,0.0999,-0.0925,0.0024,0.0988,-0.0926,0.0031,0.0988,-0.1001,0.0049,0.0986,-0.0996,0.0054,0.0978,-0.0996,0.0039,0.0977,-0.0993,0.0026,0.0973,-0.0991,0.0017,0.097,-0.0997,0.0017,0.0979,-0.098,0.0033,0.0944,-0.0987,0.003,0.0958,-0.093,0.0032,0.1008,-0.0961,0.0016,0.0863,-0.0967,0.0032,0.0861,-0.0967,0.003,0.0852,-0.0892,0.0081,0.0864,-0.0946,0.0017,0.0901,-0.0907,0.0039,0.0854,-0.0911,0.0063,0.0854,-0.0969,0.0055,0.0855,-0.0958,0.0055,0.0854,-0.0891,0.0063,0.0862,-0.0895,0.0063,0.086,-0.0894,0.0039,0.0858,-0.0887,0.0038,0.0862,-0.0892,0.0025,0.085,-0.0902,0.0021,0.0845,-0.0917,0.0022,0.084,-0.0957,0.0026,0.0843,-0.0962,0.0034,0.0848,-0.0917,0.0019,0.0841,-0.0902,0.0016,0.0847,-0.0946,0.0102,0.0855,-0.0945,0.0095,0.0882,-0.0933,0.0102,0.0856,-0.0932,0.0092,0.0883,-0.097,0.006,0.0984,-0.0955,0.0055,0.0999,-0.0953,0.0059,0.0987,-0.0972,0.0055,0.0993,-0.0944,0.0019,0.0999,-0.0957,0.0021,0.0967,-0.0973,0.0018,0.096,-0.0954,0.0022,0.0952,-0.0987,0.0014,0.097,-0.0955,0.0043,0.1007,-0.1005,0.0038,0.099,-0.1002,0.0025,0.0988,-0.0958,0.0018,0.0924,-0.0975,0.0027,0.092,-0.0932,0.0059,0.0952,-0.0945,0.0057,0.0855,-0.0966,0.0043,0.0851,-0.0982,0.0055,0.0948,-0.098,0.0059,0.0949,-0.0977,0.0063,0.0925,-0.0913,0.0096,0.0858,-0.0959,0.0021,0.0847,-0.095,0.0018,0.0843,-0.0932,0.0099,0.0852,-0.0945,0.0099,0.0851,-0.0972,0.0043,0.0857,-0.0974,0.0054,0.086,-0.0926,0.0022,0.0838,-0.0926,0.0021,0.0933,-0.0929,0.0023,0.0955,-0.0926,0.0026,0.0971,-0.0989,0.0052,0.0963,-0.0999,0.0051,0.0991,-0.094,0.0082,0.0853,-0.0927,0.0082,0.0854,-0.0941,0.0071,0.0931,-0.0945,0.0063,0.0951,-0.0966,0.0069,0.0927,-0.096,0.0066,0.095,-0.0955,0.0074,0.0929,-0.0971,0.0063,0.095,-0.0978,0.0047,0.0921,-0.0983,0.0044,0.0945,-0.0976,0.0037,0.092,-0.0934,0.002,0.0931,-0.0939,0.0021,0.0954,-0.0952,0.001,0.0865,-0.0973,0.0044,0.0999,-0.0988,0.0053,0.0992,-0.0926,0.0031,0.0971,-0.0926,0.0042,0.0971,-0.097,0.0043,0.0865,-0.0974,0.005,0.0897,-0.0974,0.0055,0.0868,-0.0971,0.0041,0.0896,-0.099,0.0041,0.0961,-0.0965,0.0063,0.0967,-0.0949,0.0061,0.0969,-0.096,0.0076,0.0905,-0.095,0.0081,0.0908,-0.0936,0.0079,0.091,-0.097,0.007,0.0901,-0.097,0.0031,0.0896,-0.0914,0.0086,0.0886});
			return r_tarsal_middle_phalanx_5_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 r_tarsal_middle_phalanx_5 model
	 */
	public X3D getX3dModel()
	{	  
		return x3dModel;
	}
	   
    /** 
     * Default main() method provided for test purposes, uses CommandLine to set global ConfigurationProperties for this object.
     * @param args array of input parameters, provided as arguments
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html#handleArguments-java.lang.String:A-">X3D.handleArguments(args)</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html#validationReport--">X3D.validationReport()</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/CommandLine.html">CommandLine</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/CommandLine.html#USAGE">CommandLine.USAGE</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/ConfigurationProperties.html">ConfigurationProperties</a>
     */
    public static void main(String args[])
    {
        System.out.println("Build this X3D model, showing validation diagnostics...");
        X3D thisExampleX3dModel = new r_tarsal_middle_phalanx_5().getX3dModel();
//      System.out.println("X3D model construction complete.");
	
        // next handle command line arguments
        boolean hasArguments = (args != null) && (args.length > 0);
        boolean validate = true; // default
        boolean argumentsLoadNewModel = false;
        String  fileName = new String();

        if (args != null)
        {
                for (String arg : args)
                {
                        if (arg.toLowerCase().startsWith("-v") || arg.toLowerCase().contains("validate"))
                        {
                                validate = true; // making sure
                        }
                        if (arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_X3D) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_CLASSICVRML) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_X3DB) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_VRML97) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_EXI) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_GZIP) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_ZIP) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_HTML) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_XHTML))
                        {
                                argumentsLoadNewModel = true;
                                fileName = arg;
                        }
                }
        }
        if      (argumentsLoadNewModel)
                System.out.println("WARNING: \"HumanoidAnimation.Skeleton.r_tarsal_middle_phalanx_5\" model invocation is attempting to load file \"" + fileName + "\" instead of simply validating itself... file loading ignored.");
        else if (hasArguments) // if no arguments provided, this method produces usage warning
                thisExampleX3dModel.handleArguments(args);
	
        if (validate)
        {
            //  System.out.println("--- TODO fix duplicated outputs ---"); // omit when duplicated outputs problem is solved/refactored
		String validationResults = thisExampleX3dModel.validationReport();
            //  System.out.println("-----------------------------------"); // omit when duplicated outputs problem is solved/refactored
                System.out.print("HumanoidAnimation.Skeleton.r_tarsal_middle_phalanx_5 self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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