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> *enter description here, short-sentence summaries preferred*. </p>
 <p> Related links:  source lfreecrt.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.lfreecrt&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/lfreecrt.x3d">lfreecrt.x3d</a> </td>
		</tr>
		<tr style="color:burntorange">
			<td style="text-align:right; vertical-align: text-top;"> <i> warning </i> </td>
			<td> fix naming </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> *enter description here, short-sentence summaries preferred* </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/lfreecrt.x3d">originals/lfreecrt.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> *enter reference citation or relative/online url here* </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/lfreecrt.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skeleton/lfreecrt.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 lfreecrt
{
	/** Default constructor to create this object. */
	public lfreecrt ()
	{
	  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("lfreecrt.x3d"))
    .addMeta(new meta().setName(meta.NAME_WARNING    ).setContent("fix naming"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("*enter description here, short-sentence summaries preferred*"))
    .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/lfreecrt.x3d"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("*enter reference citation or relative/online url here*"))
    .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/lfreecrt.x3d"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("*TODO_add_title*"))
    .addChild(new TouchSensor().setDescription("cartilage lfreecrt"))
    .addChild(new Transform("lfreecrt")
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material("CartilageMaterial").setAmbientIntensity(0.965).setDiffuseColor(0.9843,0.949,0.7843).setShininess(0.05).setSpecularColor(0.9647,0.949,0.9098)))
        .setGeometry(new IndexedFaceSet("lfreecrt_geometry").setDEF("lfreecrt_geometry").setCreaseAngle(1.571).setCoordIndex(getlfreecrt_geometry_5_23_coordIndex())
          .setCoord(new Coordinate("lfreecrt_coordinate").setPoint(getlfreecrt_coordinate_6_23_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[] getlfreecrt_geometry_5_23_coordIndex_1()
		{
			int[] value = {0,1,2,-1,1,3,2,-1,4,5,6,-1,6,7,4,-1,7,8,4,-1,9,10,11,-1,12,0,13,-1,0,2,13,-1,14,15,16,-1,16,17,14,-1,15,18,19,-1,19,16,15,-1,20,13,2,-1,2,21,20,-1,22,23,24,-1,24,25,22,-1,26,27,28,-1,29,18,15,-1,30,26,31,-1,30,27,26,-1,24,23,32,-1,32,33,24,-1,31,34,35,-1,31,26,34,-1,36,37,38,-1,37,39,38,-1,40,41,42,-1,40,43,41,-1,44,43,40,-1,40,45,44,-1,40,42,46,-1,46,47,40,-1,48,44,45,-1,45,49,48,-1,50,51,52,-1,53,37,36,-1,53,54,37,-1,55,56,57,-1,55,58,56,-1,59,10,60,-1,59,11,10,-1,17,61,62,-1,17,63,61,-1,64,65,66,-1,65,64,67,-1,68,69,59,-1,68,70,69,-1,35,1,31,-1,35,3,1,-1,30,71,32,-1,30,72,71,-1,73,74,75,-1,33,74,73,-1,76,19,77,-1,76,78,19,-1,17,79,63,-1,16,79,17,-1,80,66,81,-1,66,80,64,-1,82,83,84,-1,82,85,83,-1,86,70,68,-1,86,21,70,-1,35,87,69,-1,35,34,87,-1,68,60,83,-1,68,59,60,-1,88,89,67,-1,88,90,89,-1,91,65,92,-1,65,91,62,-1,72,93,71,-1,72,94,93,-1,75,95,96,-1,74,95,75,-1,97,78,76,-1,97,98,78,-1,25,33,73,-1,25,24,33,-1,27,32,23,-1,32,27,30,-1,99,100,98,-1,99,101,100,-1,61,4,8,-1,61,63,4,-1,98,79,78,-1,98,100,79,-1,15,102,29,-1,14,102,15,-1,103,92,104,-1,92,103,91,-1,23,28,27,-1,23,22,28,-1,105,87,34,-1,105,106,87,-1,25,107,22,-1,108,107,25,-1,109,82,80,-1,109,110,82,-1,111,86,85,-1,111,112,86,-1,112,21,86,-1,112,20,21,-1,110,85,82,-1,110,111,85,-1,14,62,91,-1,62,14,17,-1,0,113,94,-1,0,12,113,-1,93,114,95,-1,93,115,114,-1,99,97,116,-1,97,99,98,-1,96,116,97,-1,96,117,116,-1,94,115,93,-1,94,113,115,-1,81,7,118,-1,8,7,81,-1,80,118,109,-1,81,118,80,-1,117,95,114,-1,95,117,96,-1,11,106,9,-1,87,106,11,-1,26,105,34,-1,26,28,105,-1,9,90,10,-1,9,104,90,-1,91,102,14,-1,91,103,102,-1,29,108,18,-1,29,107,108,-1,63,100,4,-1,79,100,63,-1,77,18,108,-1,19,18,77,-1,4,101,5,-1,100,101,4,-1,73,108,25,-1,77,108,73,-1,96,76,75,-1,96,97,76,-1,71,95,74,-1,71,93,95,-1,1,94,72,-1,1,0,94,-1,92,67,89,-1,67,92,65,-1,83,88,84,-1,83,60,88,-1,11,69,87,-1,69,11,59,-1,21,3,70,-1,21,2,3,-1,86,83,85,-1,83,86,68,-1,82,64,80,-1,64,82,84,-1,61,81,66,-1,61,8,81,-1,78,16,19,-1,78,79,16,-1,75,77,73,-1,75,76,77,-1,33,71,74,-1,32,71,33,-1,31,72,30,-1,31,1,72,-1,3,69,70,-1,69,3,35,-1,84,67,64,-1,67,84,88,-1,62,66,65,-1,62,61,66,-1,90,60,10,-1,60,90,88,-1,119,57,50,-1,120,57,119,-1,121,122,123,-1,121,124,122,-1,125,126,127,-1,128,126,125,-1,129,46,130,-1,129,47,46,-1,131,132,133,-1,132,131,134,-1,135,55,38,-1,135,58,55,-1,57,51,50,-1,57,56,51,-1,121,136,124,-1,121,137,136,-1,138,139,140,-1,138,141,139,-1,53,142,54,-1,143,142,53,-1,127,49,45,-1,127,126,49,-1,40,127,45,-1,127,40,47,-1,46,144,133,-1,46,42,144,-1,145,131,146,-1,131,145,147,-1,134,143,132,-1,134,139,143,-1,36,130,53,-1,130,36,129,-1,147,148,149,-1,147,145,148,-1,150,151,152,-1,153,151,150,-1,154,126,155,-1,154,49,126,-1,150,120,119,-1,155,120,150,-1,122,153,123,-1,153,122,149,-1,152,156,157,-1,151,156,152,-1,38,128,125,-1,38,55,128,-1,158,146,159,-1,146,158,145,-1,145,160,148,-1,145,158,160,-1,161,49,154,-1,48,49,161,-1,151,160,156,-1,148,160,151,-1,144,41,162,-1,42,41,144,-1,159,144,162,-1,144,159,146,-1,157,154,152,-1,157,161,154,-1,163,149,122,-1,149,163,147,-1,119,153,150,-1,119,123,153,-1,155,128,120,-1,126,128,155,-1,152,155,150,-1,152,154,155,-1,153,148,151,-1,149,148,153,-1,129,38,125,-1,129,36,38,-1,53,132,143,-1};
			return value;
		}

		/** Define subarray values using type int[] with $tupleSize=1 and $tupleSplitSize=1000 for subarray position()=2 */
		private int[] getlfreecrt_geometry_5_23_coordIndex_2()
		{
			int[] value = {132,53,130,-1,163,139,134,-1,163,140,139,-1,146,133,144,-1,133,146,131,-1,52,121,50,-1,52,137,121,-1,141,143,139,-1,141,142,143,-1,124,138,140,-1,124,136,138,-1,147,134,131,-1,134,147,163,-1,130,133,132,-1,130,46,133,-1,125,47,129,-1,125,127,47,-1,140,122,124,-1,122,140,163,-1,50,123,119,-1,50,121,123,-1,120,55,57,-1,128,55,120,-1};
			return value;
		}
		/** Large attribute array: IndexedFaceSet DEF='lfreecrt_geometry' coordIndex field, scene-graph level=5, element #23, 1092 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 getlfreecrt_geometry_5_23_coordIndex()
		{
			MFInt32 lfreecrt_geometry_5_23_coordIndex = new MFInt32()/*2.finalize*/
				.append(new MFInt32(getlfreecrt_geometry_5_23_coordIndex_1()))
				.append(new MFInt32(getlfreecrt_geometry_5_23_coordIndex_2()));
			return lfreecrt_geometry_5_23_coordIndex;
		}
		/** Large attribute array: Coordinate DEF='lfreecrt_coordinate' point field, scene-graph level=6, element #23, 492 total numbers made up of 164 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 getlfreecrt_coordinate_6_23_point()
		{
			MFVec3f lfreecrt_coordinate_6_23_point = new MFVec3f(new double[] {0.0438,1.3838,0.0559,0.0312,1.3821,0.057,0.0441,1.3842,0.0567,0.0317,1.3825,0.058,0.048,1.3619,0.0654,0.0613,1.3651,0.0606,0.0617,1.3658,0.0613,0.0619,1.367,0.0617,0.0481,1.3636,0.0663,0.0157,1.3798,0.0609,0.0159,1.3799,0.061,0.016,1.3799,0.061,0.0552,1.388,0.0517,0.0552,1.3884,0.0522,0.0195,1.3625,0.0651,0.0164,1.3639,0.0616,0.0248,1.3624,0.0637,0.0261,1.3622,0.0658,0.0164,1.364,0.0616,0.0238,1.364,0.0622,0.0562,1.388,0.0536,0.0445,1.3832,0.0583,0.014,1.3795,0.0549,0.0142,1.3795,0.0547,0.0142,1.3795,0.0547,0.0142,1.3794,0.0547,0.017,1.3859,0.0537,0.017,1.3859,0.0537,0.0167,1.3858,0.054,0.0161,1.3641,0.0618,0.0236,1.3815,0.0559,0.0242,1.383,0.056,0.0225,1.3784,0.0563,0.0222,1.3767,0.0566,0.0185,1.3869,0.055,0.0248,1.3833,0.0571,0.0214,1.3313,0.0784,0.0211,1.3313,0.0781,0.0232,1.3292,0.0765,0.0227,1.3294,0.0764,0.0512,1.3219,0.0766,0.0649,1.3263,0.0728,0.0508,1.3249,0.0776,0.0643,1.3238,0.0718,0.0643,1.3238,0.0718,0.0517,1.3213,0.0759,0.0355,1.3278,0.0796,0.0368,1.3243,0.079,0.0643,1.324,0.071,0.051,1.3212,0.0745,0.0169,1.3345,0.0712,0.0171,1.334,0.0715,0.0168,1.3346,0.0714,0.0193,1.3355,0.0783,0.019,1.3354,0.0781,0.0217,1.3277,0.0738,0.0185,1.3308,0.0726,0.0185,1.3308,0.0724,0.0215,1.328,0.0738,0.024,1.3787,0.0614,0.024,1.3757,0.0631,0.0336,1.3626,0.068,0.0257,1.364,0.0671,0.0337,1.3609,0.0668,0.0324,1.3676,0.0675,0.0248,1.3668,0.0671,0.0328,1.3655,0.068,0.0245,1.3683,0.0669,0.0314,1.3781,0.0621,0.0246,1.3819,0.0589,0.0316,1.3811,0.0599,0.0299,1.3775,0.0572,0.0307,1.3806,0.0568,0.0222,1.3739,0.0576,0.0297,1.3753,0.0578,0.0299,1.3724,0.0589,0.0302,1.3671,0.061,0.0224,1.3682,0.0599,0.0315,1.3629,0.0634,0.0325,1.3611,0.0649,0.0471,1.3693,0.0656,0.0476,1.3665,0.0663,0.0466,1.3723,0.0645,0.0317,1.3749,0.064,0.0321,1.37,0.0665,0.0459,1.377,0.0623,0.045,1.3804,0.0604,0.0176,1.3856,0.0572,0.0242,1.3707,0.0658,0.0163,1.3699,0.0664,0.0163,1.3699,0.0664,0.0181,1.3649,0.0671,0.0163,1.3698,0.0664,0.0434,1.3792,0.0561,0.0436,1.3821,0.0557,0.0436,1.3766,0.0568,0.0443,1.3724,0.0585,0.0447,1.3682,0.0603,0.0458,1.3642,0.0624,0.0592,1.3684,0.0577,0.0469,1.362,0.064,0.0604,1.3651,0.0597,0.0191,1.3627,0.065,0.0177,1.3648,0.0669,0.016,1.3698,0.0663,0.0182,1.3867,0.0551,0.0173,1.3855,0.057,0.013,1.3693,0.0583,0.0132,1.3693,0.0581,0.061,1.3744,0.0603,0.0605,1.3772,0.0592,0.0592,1.3823,0.0572,0.0577,1.3855,0.0552,0.0556,1.3859,0.0514,0.0564,1.3815,0.0521,0.0559,1.3836,0.0515,0.0584,1.3727,0.0557,0.0579,1.3748,0.0548,0.0614,1.3705,0.0612,0.0257,1.3291,0.0732,0.027,1.3261,0.0741,0.0157,1.3411,0.069,0.0264,1.3421,0.0708,0.0244,1.3358,0.0714,0.0185,1.3474,0.0684,0.0312,1.3241,0.0782,0.0366,1.3218,0.0758,0.0378,1.3222,0.0779,0.03,1.3231,0.0758,0.0297,1.3258,0.0798,0.028,1.3296,0.0802,0.0352,1.3402,0.0752,0.0273,1.3363,0.0788,0.035,1.3345,0.0784,0.028,1.3419,0.0754,0.0228,1.3293,0.0762,0.0183,1.3474,0.0686,0.0156,1.3411,0.0692,0.0195,1.3489,0.0698,0.0196,1.3479,0.0729,0.0198,1.3491,0.0697,0.0193,1.3478,0.0728,0.0181,1.3423,0.0765,0.0184,1.3423,0.0767,0.0506,1.3316,0.0769,0.0475,1.3401,0.0707,0.0499,1.3372,0.0742,0.0341,1.3422,0.0718,0.0468,1.3392,0.07,0.0331,1.341,0.0707,0.0332,1.328,0.073,0.0472,1.3332,0.0706,0.0486,1.3264,0.0722,0.0319,1.3347,0.0713,0.0491,1.3252,0.0725,0.0343,1.3256,0.0737,0.0613,1.336,0.067,0.0628,1.3291,0.0684,0.0596,1.3423,0.0669,0.0634,1.3386,0.0702,0.0592,1.3418,0.0664,0.0628,1.329,0.0684,0.065,1.3331,0.0722,0.0276,1.3435,0.0721});
			return lfreecrt_coordinate_6_23_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 lfreecrt 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 lfreecrt().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.lfreecrt\" 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.lfreecrt self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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