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 rfreecrt.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.rfreecrt&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/rfreecrt.x3d">rfreecrt.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> TODO </i> </td>
			<td> fix naming, cartilage? </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/rfreecrt.x3d">originals/rfreecrt.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/rfreecrt.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Skeleton/rfreecrt.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 rfreecrt
{
	/** Default constructor to create this object. */
	public rfreecrt ()
	{
	  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("rfreecrt.x3d"))
    .addMeta(new meta().setName(meta.NAME_TODO       ).setContent("fix naming, cartilage?"))
    .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/rfreecrt.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/rfreecrt.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 rfreecrt"))
    .addChild(new Transform("rfreecrt")
      .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("rfreecrt_geometry").setDEF("rfreecrt_geometry").setCreaseAngle(1.571).setCoordIndex(getrfreecrt_geometry_5_23_coordIndex())
          .setCoord(new Coordinate("rfreecrt_coordinate").setPoint(getrfreecrt_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[] getrfreecrt_geometry_5_23_coordIndex_1()
		{
			int[] value = {0,1,2,-1,2,3,0,-1,4,5,6,-1,6,7,4,-1,8,9,10,-1,11,5,4,-1,1,0,12,-1,12,13,1,-1,14,15,16,-1,16,17,14,-1,18,8,19,-1,18,9,8,-1,14,17,20,-1,20,21,14,-1,22,23,24,-1,25,26,27,-1,25,28,26,-1,27,29,25,-1,30,31,32,-1,31,33,32,-1,17,34,20,-1,34,35,20,-1,36,37,38,-1,38,39,36,-1,40,41,42,-1,42,43,40,-1,44,45,46,-1,46,47,44,-1,48,49,50,-1,51,52,53,-1,53,54,51,-1,55,56,37,-1,37,57,55,-1,58,51,54,-1,54,56,58,-1,55,59,56,-1,59,58,56,-1,56,54,38,-1,38,37,56,-1,60,45,44,-1,60,61,45,-1,39,38,62,-1,38,63,62,-1,64,65,23,-1,66,65,64,-1,67,30,32,-1,67,68,30,-1,69,70,71,-1,66,70,69,-1,72,34,73,-1,74,34,72,-1,75,7,6,-1,75,35,7,-1,76,2,77,-1,2,76,3,-1,78,79,80,-1,78,81,79,-1,19,82,18,-1,19,83,82,-1,7,84,4,-1,74,84,7,-1,85,68,67,-1,85,25,68,-1,71,86,87,-1,70,86,71,-1,88,89,90,-1,91,89,88,-1,34,16,73,-1,34,17,16,-1,72,22,92,-1,93,22,72,-1,66,88,70,-1,66,64,88,-1,69,33,94,-1,32,33,69,-1,95,35,75,-1,95,20,35,-1,96,76,77,-1,96,97,76,-1,81,98,79,-1,81,99,98,-1,100,80,13,-1,80,100,78,-1,101,29,27,-1,29,101,102,-1,9,78,100,-1,78,9,18,-1,102,103,29,-1,103,102,83,-1,100,10,9,-1,100,104,10,-1,105,31,106,-1,105,107,31,-1,65,24,23,-1,65,108,24,-1,109,4,84,-1,109,11,4,-1,110,22,24,-1,22,110,92,-1,96,111,112,-1,98,111,96,-1,113,87,114,-1,87,113,85,-1,28,85,113,-1,85,28,25,-1,115,95,97,-1,115,116,95,-1,117,98,99,-1,117,111,98,-1,19,106,118,-1,19,8,106,-1,99,119,117,-1,120,119,99,-1,112,97,96,-1,112,115,97,-1,116,20,95,-1,116,21,20,-1,30,106,31,-1,118,106,30,-1,90,121,86,-1,90,122,121,-1,16,123,89,-1,16,15,123,-1,89,122,90,-1,89,123,122,-1,86,114,87,-1,86,121,114,-1,104,13,12,-1,13,104,100,-1,92,109,84,-1,92,110,109,-1,11,0,5,-1,11,12,0,-1,33,107,108,-1,31,107,33,-1,105,8,10,-1,8,105,106,-1,83,120,82,-1,83,102,120,-1,29,68,25,-1,29,103,68,-1,102,119,120,-1,102,101,119,-1,3,5,0,-1,6,5,3,-1,2,13,80,-1,2,1,13,-1,82,99,81,-1,82,120,99,-1,96,79,98,-1,79,96,77,-1,97,75,76,-1,97,95,75,-1,94,66,69,-1,94,65,66,-1,64,91,88,-1,64,93,91,-1,92,74,72,-1,92,84,74,-1,73,89,91,-1,73,16,89,-1,88,86,70,-1,88,90,86,-1,67,87,85,-1,71,87,67,-1,83,118,103,-1,118,83,19,-1,18,81,78,-1,18,82,81,-1,77,80,79,-1,80,77,2,-1,76,6,3,-1,76,75,6,-1,35,74,7,-1,35,34,74,-1,72,91,93,-1,72,73,91,-1,32,71,67,-1,69,71,32,-1,68,118,30,-1,68,103,118,-1,23,93,64,-1,23,22,93,-1,43,124,40,-1,124,43,62,-1,125,50,126,-1,125,127,50,-1,128,129,130,-1,131,129,128,-1,132,133,134,-1,132,57,133,-1,135,136,137,-1,131,136,135,-1,138,130,129,-1,138,139,130,-1,140,141,142,-1,140,143,141,-1,127,48,50,-1,127,144,48,-1,132,145,146,-1,137,145,132,-1,142,131,135,-1,142,129,131,-1,134,47,140,-1,133,47,134,-1,60,36,39,-1,60,44,36,-1,147,148,149,-1,148,147,150,-1,151,152,153,-1,151,154,152,-1,62,151,124,-1,151,62,63,-1,148,126,153,-1,148,125,126,-1,150,131,128,-1,136,131,150,-1,154,155,152,-1,154,156,155,-1,146,157,158,-1,145,157,146,-1,59,146,158,-1,146,59,55,-1,159,149,160,-1,149,159,147,-1,53,156,154,-1,156,53,52,-1,159,161,147,-1,159,162,161,-1,145,162,157,-1,161,162,145,-1,62,60,39,-1,62,43,60,-1,160,152,155,-1,152,160,149,-1,148,128,125,-1,150,128,148,-1,124,153,126,-1,153,124,151,-1,63,154,151,-1,63,53,154,-1,149,153,152,-1,153,149,148,-1,147,136,150,-1,147,161,136,-1,133,44,47,-1,36,44,133,-1,140,135,134,-1,140,142,135,-1,137,161,145,-1};
			return value;
		}

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

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