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_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.r_tarsal_middle_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/r_tarsal_middle_phalanx_4.x3d">r_tarsal_middle_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/rfmphal3.x3d">originals/rfmphal3.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_4.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skeleton/r_tarsal_middle_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 r_tarsal_middle_phalanx_4
{
	/** Default constructor to create this object. */
	public r_tarsal_middle_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_3_3)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("r_tarsal_middle_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/rfmphal3.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_4.x3d"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("r_tarsal_middle_phalanx_4.x3d"))
    .addChild(new TouchSensor().setDescription("bone r_tarsal_middle_phalanx_4"))
    .addChild(new Transform("r_tarsal_middle_phalanx_4")
      .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_4_geometry").setDEF("r_tarsal_middle_phalanx_4_geometry").setCreaseAngle(1.571).setCoordIndex(getr_tarsal_middle_phalanx_4_geometry_5_22_coordIndex())
          .setCoord(new Coordinate("r_tarsal_middle_phalanx_4_coordinate").setPoint(getr_tarsal_middle_phalanx_4_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_4_geometry_5_22_coordIndex_1()
		{
			int[] value = {0,1,2,-1,3,4,5,-1,6,7,8,-1,9,10,11,-1,12,13,14,-1,15,16,17,-1,18,19,20,-1,21,22,1,-1,21,23,22,-1,8,7,24,-1,25,26,27,-1,28,29,30,-1,30,31,28,-1,32,33,34,-1,32,35,33,-1,36,14,13,-1,37,38,39,-1,38,40,39,-1,41,42,43,-1,41,44,42,-1,16,45,17,-1,46,47,48,-1,46,49,47,-1,50,51,18,-1,50,52,51,-1,53,54,43,-1,43,42,53,-1,55,56,57,-1,57,58,55,-1,53,59,60,-1,53,61,59,-1,62,63,64,-1,63,65,64,-1,22,2,1,-1,66,67,68,-1,69,66,70,-1,66,71,70,-1,72,5,4,-1,13,71,40,-1,13,5,71,-1,73,58,57,-1,73,74,58,-1,20,19,25,-1,52,50,75,-1,50,76,75,-1,77,60,59,-1,59,78,77,-1,11,49,46,-1,11,16,49,-1,26,34,33,-1,79,80,81,-1,82,83,84,-1,85,86,87,-1,31,88,28,-1,89,19,51,-1,90,91,92,-1,92,93,90,-1,94,95,90,-1,95,91,90,-1,96,13,12,-1,67,66,97,-1,2,22,98,-1,99,100,101,-1,99,102,100,-1,103,10,104,-1,103,45,10,-1,105,106,107,-1,107,108,105,-1,50,18,20,-1,20,109,50,-1,52,110,51,-1,52,111,110,-1,45,16,10,-1,112,8,113,-1,112,6,8,-1,37,39,68,-1,36,13,114,-1,115,74,73,-1,115,110,74,-1,116,83,82,-1,116,73,57,-1,57,81,116,-1,26,117,27,-1,26,33,117,-1,86,80,79,-1,118,100,102,-1,118,119,100,-1,120,65,121,-1,120,122,65,-1,38,37,123,-1,37,124,123,-1,97,66,69,-1,18,51,19,-1,123,125,126,-1,123,7,125,-1,11,10,16,-1,38,114,13,-1,13,40,38,-1,112,15,17,-1,127,5,72,-1,128,2,98,-1,68,39,66,-1,106,121,129,-1,121,106,105,-1,9,104,10,-1,9,120,104,-1,7,130,125,-1,7,6,130,-1,126,38,123,-1,38,126,114,-1,101,97,99,-1,67,97,101,-1,69,2,128,-1,69,70,2,-1,127,131,0,-1,127,72,131,-1,4,62,132,-1,4,3,62,-1,96,129,63,-1,96,12,129,-1,107,114,126,-1,107,36,114,-1,124,68,133,-1,37,68,124,-1,134,135,136,-1,134,137,135,-1,65,138,64,-1,122,138,65,-1,108,104,105,-1,108,103,104,-1,119,139,100,-1,119,140,139,-1,141,102,98,-1,141,118,102,-1,20,77,109,-1,142,77,20,-1,143,144,145,-1,143,78,144,-1,102,128,98,-1,99,128,102,-1,146,79,56,-1,146,86,79,-1,95,48,55,-1,46,48,95,-1,9,94,147,-1,9,11,94,-1,129,65,63,-1,129,121,65,-1,117,35,148,-1,33,35,117,-1,56,81,57,-1,79,81,56,-1,116,115,73,-1,116,82,115,-1,19,84,149,-1,84,19,89,-1,86,150,87,-1,150,86,146,-1,88,151,85,-1,32,151,88,-1,152,80,151,-1,80,152,83,-1,136,131,132,-1,131,136,135,-1,153,93,154,-1,155,93,153,-1,92,110,111,-1,110,92,74,-1,24,123,124,-1,7,123,24,-1,113,15,112,-1,15,113,156,-1,59,157,158,-1,59,61,157,-1,145,76,143,-1,76,145,159,-1,154,160,153,-1,154,75,160,-1,94,161,147,-1,94,90,161,-1,58,92,91,-1,92,58,74,-1,60,142,162,-1,60,77,142,-1,100,133,101,-1,100,139,133,-1,153,21,137,-1,153,160,21,-1,132,64,136,-1,62,64,132,-1,122,161,138,-1,122,147,161,-1,130,45,103,-1,45,130,17,-1,113,140,157,-1,140,113,8,-1,144,119,118,-1,144,158,119,-1,160,23,21,-1,160,159,23,-1,89,110,115,-1,89,51,110,-1,30,54,148,-1,54,30,43,-1,41,150,47,-1,29,150,41,-1,85,28,88,-1,28,85,87,-1,26,152,34,-1,26,149,152,-1,149,83,152,-1,84,83,149,-1,83,81,80,-1,83,116,81,-1,146,47,150,-1,48,47,146,-1,15,49,16,-1,44,49,15,-1,61,42,156,-1,61,53,42,-1,162,27,117,-1,27,162,142,-1,50,143,76,-1,50,109,143,-1,75,111,52,-1,75,154,111,-1,96,5,13,-1,96,3,5,-1,70,5,127,-1,70,71,5,-1,39,71,66,-1,71,39,40,-1,159,141,23,-1,141,159,145,-1,124,139,24,-1,139,124,133,-1,126,108,107,-1,108,126,125,-1,161,134,138,-1,134,161,155,-1,135,0,131,-1,135,1,0,-1,117,54,162,-1,117,148,54,-1,119,157,140,-1,157,119,158,-1,44,47,49,-1,44,41,47,-1,53,162,54,-1,53,60,162,-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_4_geometry_5_22_coordIndex_2()
		{
			int[] value = {91,55,58,-1,91,95,55,-1,157,156,113,-1,157,61,156,-1,161,93,155,-1,90,93,161,-1,75,159,160,-1,75,76,159,-1,78,158,144,-1,78,59,158,-1,29,43,30,-1,29,41,43,-1,156,44,15,-1,44,156,42,-1,154,92,111,-1,93,92,154,-1,137,155,153,-1,134,155,137,-1,34,151,32,-1,151,34,152,-1,31,32,88,-1,35,32,31,-1,151,86,85,-1,151,80,86,-1,25,149,26,-1,149,25,19,-1,82,89,115,-1,82,84,89,-1,87,29,28,-1,87,150,29,-1,31,148,35,-1,31,30,148,-1,120,147,122,-1,120,9,147,-1,46,94,11,-1,46,95,94,-1,56,48,146,-1,48,56,55,-1,118,145,144,-1,141,145,118,-1,109,78,143,-1,77,78,109,-1,25,142,20,-1,27,142,25,-1,23,98,22,-1,23,141,98,-1,139,8,24,-1,140,8,139,-1,125,103,108,-1,130,103,125,-1,138,136,64,-1,138,134,136,-1,137,1,135,-1,137,21,1,-1,133,67,101,-1,68,67,133,-1,106,36,107,-1,14,36,106,-1,3,63,62,-1,3,96,63,-1,72,132,131,-1,72,4,132,-1,0,70,127,-1,70,0,2,-1,69,99,97,-1,128,99,69,-1,17,6,112,-1,6,17,130,-1,105,120,121,-1,120,105,104,-1,129,14,106,-1,129,12,14,-1};
			return value;
		}
		/** Large attribute array: IndexedFaceSet DEF='r_tarsal_middle_phalanx_4_geometry' coordIndex field, scene-graph level=5, element #22, 1288 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_4_geometry_5_22_coordIndex()
		{
			MFInt32 r_tarsal_middle_phalanx_4_geometry_5_22_coordIndex = new MFInt32()/*2.finalize*/
				.append(new MFInt32(getr_tarsal_middle_phalanx_4_geometry_5_22_coordIndex_1()))
				.append(new MFInt32(getr_tarsal_middle_phalanx_4_geometry_5_22_coordIndex_2()));
			return r_tarsal_middle_phalanx_4_geometry_5_22_coordIndex;
		}
		/** Large attribute array: Coordinate DEF='r_tarsal_middle_phalanx_4_coordinate' point field, scene-graph level=6, element #22, 489 total numbers made up of 163 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_4_coordinate_6_22_point()
		{
			MFVec3f r_tarsal_middle_phalanx_4_coordinate_6_22_point = new MFVec3f(new double[] {-0.1277,0.0091,0.0452,-0.128,0.0089,0.0458,-0.1295,0.0077,0.0448,-0.1277,0.0125,0.0458,-0.1269,0.0111,0.0457,-0.1296,0.0108,0.0453,-0.134,0.0112,0.0465,-0.1342,0.0117,0.0455,-0.1342,0.0097,0.0459,-0.1307,0.0121,0.0484,-0.1318,0.012,0.0484,-0.1309,0.0115,0.0495,-0.13,0.0137,0.046,-0.1315,0.0126,0.0453,-0.1313,0.0137,0.0457,-0.1339,0.0101,0.0486,-0.1326,0.0113,0.0492,-0.133,0.0114,0.048,-0.1317,0.0077,0.0504,-0.1315,0.0071,0.0508,-0.1326,0.007,0.0499,-0.1285,0.0086,0.0467,-0.1299,0.0078,0.0455,-0.1303,0.0077,0.0465,-0.1343,0.0098,0.0447,-0.133,0.0066,0.0504,-0.1333,0.0065,0.0507,-0.1333,0.0066,0.0503,-0.1353,0.009,0.0509,-0.135,0.0092,0.0504,-0.1355,0.0084,0.0503,-0.1354,0.0084,0.0508,-0.1349,0.0078,0.0512,-0.1346,0.0068,0.0507,-0.1341,0.007,0.0511,-0.1353,0.0076,0.0507,-0.1325,0.0134,0.0452,-0.1341,0.0098,0.0438,-0.1341,0.0118,0.0446,-0.1335,0.0092,0.0438,-0.1326,0.0105,0.0444,-0.1345,0.0093,0.0497,-0.1345,0.0088,0.0489,-0.1349,0.0086,0.0496,-0.1341,0.0097,0.0492,-0.1323,0.0118,0.0483,-0.1308,0.0112,0.0503,-0.1332,0.0105,0.0502,-0.1309,0.0111,0.051,-0.1328,0.0109,0.0498,-0.1316,0.0081,0.0499,-0.1298,0.0084,0.0509,-0.1299,0.0085,0.0504,-0.1342,0.0081,0.0489,-0.1347,0.0079,0.0496,-0.1298,0.0111,0.0513,-0.1299,0.011,0.052,-0.1289,0.0104,0.052,-0.1291,0.0105,0.0512,-0.1334,0.0073,0.0484,-0.1335,0.0073,0.0491,-0.1339,0.0081,0.0484,-0.1276,0.0126,0.0461,-0.1288,0.0134,0.0463,-0.1279,0.0122,0.0467,-0.1291,0.0128,0.0468,-0.1324,0.0078,0.0442,-0.1332,0.0069,0.044,-0.1339,0.0084,0.0436,-0.1313,0.0067,0.0445,-0.1297,0.008,0.0445,-0.1313,0.0093,0.0447,-0.127,0.0105,0.0456,-0.1286,0.0098,0.052,-0.1289,0.0097,0.0512,-0.1296,0.0086,0.0493,-0.131,0.0081,0.0489,-0.1329,0.0072,0.0492,-0.1326,0.0072,0.0484,-0.13,0.0107,0.0524,-0.1308,0.0098,0.0525,-0.1293,0.0103,0.0524,-0.1289,0.009,0.0519,-0.1301,0.0088,0.0523,-0.1295,0.0081,0.0517,-0.1336,0.0097,0.0517,-0.1311,0.0106,0.0523,-0.1337,0.0101,0.0514,-0.1353,0.0087,0.0511,-0.1294,0.008,0.0514,-0.1293,0.0107,0.0498,-0.1294,0.0107,0.0505,-0.1291,0.0097,0.0506,-0.1288,0.0098,0.0498,-0.13,0.0114,0.0498,-0.13,0.0111,0.0504,-0.1289,0.0133,0.0459,-0.1319,0.0065,0.0444,-0.1311,0.0066,0.0455,-0.1318,0.0063,0.0448,-0.1333,0.0066,0.0452,-0.1333,0.0066,0.0443,-0.1318,0.0065,0.0454,-0.1322,0.0125,0.0472,-0.1315,0.0126,0.0474,-0.1314,0.0132,0.0466,-0.1313,0.0139,0.0461,-0.1326,0.0136,0.0456,-0.1324,0.0131,0.0462,-0.1324,0.0073,0.0494,-0.1291,0.0091,0.0511,-0.1292,0.009,0.0506,-0.1338,0.0105,0.0476,-0.1342,0.0095,0.0473,-0.1334,0.0127,0.0448,-0.1288,0.009,0.0516,-0.1287,0.0096,0.0522,-0.1346,0.0068,0.0504,-0.132,0.0066,0.0463,-0.1333,0.0069,0.0461,-0.1305,0.0125,0.0475,-0.1303,0.0132,0.0468,-0.1295,0.0123,0.0477,-0.1342,0.012,0.0449,-0.1343,0.0098,0.044,-0.1334,0.0125,0.0458,-0.1335,0.0128,0.0452,-0.1279,0.0095,0.045,-0.1312,0.0064,0.0448,-0.13,0.0138,0.0464,-0.1332,0.0119,0.0469,-0.1267,0.0103,0.046,-0.1267,0.0111,0.0462,-0.1342,0.0083,0.0439,-0.1275,0.0101,0.0477,-0.1271,0.01,0.0466,-0.127,0.0106,0.0468,-0.1276,0.0096,0.0475,-0.1285,0.0116,0.0477,-0.1341,0.0083,0.0447,-0.1339,0.0082,0.0459,-0.1313,0.0068,0.0464,-0.1331,0.007,0.0498,-0.1319,0.0073,0.0485,-0.1323,0.0069,0.0474,-0.1316,0.0071,0.0476,-0.131,0.011,0.0518,-0.1298,0.0118,0.0487,-0.1353,0.0076,0.0503,-0.1317,0.0071,0.051,-0.1336,0.0104,0.0509,-0.1331,0.0087,0.0519,-0.1324,0.0077,0.0517,-0.1283,0.0093,0.0486,-0.1289,0.0091,0.0496,-0.1282,0.0099,0.0487,-0.1343,0.0091,0.0484,-0.1339,0.0082,0.0473,-0.1333,0.0071,0.0474,-0.1307,0.0078,0.0479,-0.1291,0.0086,0.0482,-0.129,0.011,0.0487,-0.134,0.0072,0.0497});
			return r_tarsal_middle_phalanx_4_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_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 r_tarsal_middle_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.r_tarsal_middle_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.r_tarsal_middle_phalanx_4 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_4_JavaExport.* file validation is checked when building X3D Example Archives
                String filenameX3D  = "Skeleton/r_tarsal_middle_phalanx_4_JavaExport.x3d"; 
                String filenameX3DV = "Skeleton/r_tarsal_middle_phalanx_4_JavaExport.x3dv"; 
                String filenameJSON = "Skeleton/r_tarsal_middle_phalanx_4_JavaExport.json";
                thisExampleX3dModel.toFileX3D        (filenameX3D);
                thisExampleX3dModel.toFileClassicVRML(filenameX3DV);
// TODO         thisExampleX3dModel.toFileJSON       (filenameJSON);
        }
    }
}
