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

		/** Define subarray values using type int[] with $tupleSize=1 and $tupleSplitSize=1000 for subarray position()=2 */
		private int[] getc2disc_geometry_5_22_coordIndex_2()
		{
			int[] value = {14,77,76,-1,168,77,14,-1,137,121,144,-1,137,81,121,-1,16,143,25,-1,16,26,143,-1,125,146,150,-1,125,110,146,-1,109,147,154,-1,109,30,147,-1,151,144,149,-1,145,144,151,-1,155,148,153,-1,169,148,155,-1,5,107,80,-1,36,107,5,-1,106,42,130,-1,142,42,106,-1,142,46,42,-1,160,128,158,-1,160,142,128,-1,163,162,159,-1,163,48,162,-1,165,13,139,-1,13,165,164,-1,167,169,161,-1,169,167,166,-1,49,89,141,-1,49,136,89,-1,141,62,49,-1,62,141,134,-1,91,64,63,-1,91,95,64,-1,170,101,119,-1,170,102,101,-1,93,65,64,-1,65,93,75,-1,168,72,77,-1,72,168,73,-1,100,170,140,-1,102,170,100,-1,10,14,11,-1,10,168,14,-1,67,80,108,-1,67,68,80,-1,92,72,71,-1,92,96,72,-1,77,96,78,-1,77,72,96,-1,140,98,66,-1,119,140,170,-1,119,98,140,-1,97,114,86,-1,114,97,120,-1,54,56,69,-1,54,134,56,-1,134,57,56,-1,57,134,141,-1,133,58,60,-1,133,73,58,-1,59,10,79,-1,59,58,10,-1,0,55,57,-1,0,2,55,-1,161,155,159,-1,155,161,169,-1,126,167,158,-1,167,126,156,-1,165,48,163,-1,165,47,48,-1,162,142,160,-1,162,46,142,-1,139,138,103,-1,139,76,138,-1,45,42,46,-1,45,43,42,-1,126,115,156,-1,87,115,126,-1,169,151,148,-1,166,151,169,-1,13,147,124,-1,164,147,13,-1,146,154,153,-1,146,109,154,-1,24,150,149,-1,24,125,150,-1,120,2,1,-1,101,2,120,-1};
			return value;
		}
		/** Large attribute array: IndexedFaceSet DEF='c2disc_geometry' coordIndex field, scene-graph level=5, element #22, 1352 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 getc2disc_geometry_5_22_coordIndex()
		{
			MFInt32 c2disc_geometry_5_22_coordIndex = new MFInt32()/*2.finalize*/
				.append(new MFInt32(getc2disc_geometry_5_22_coordIndex_1()))
				.append(new MFInt32(getc2disc_geometry_5_22_coordIndex_2()));
			return c2disc_geometry_5_22_coordIndex;
		}
		/** Large attribute array: Coordinate DEF='c2disc_coordinate' point field, scene-graph level=6, element #22, 513 total numbers made up of 171 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 getc2disc_coordinate_6_22_point()
		{
			MFVec3f c2disc_coordinate_6_22_point = new MFVec3f(new double[] {-0.003,1.5942,-0.0191,-0.0029,1.5938,-0.019,-0.0024,1.594,-0.0192,0.006,1.5959,-0.0219,0.005,1.5946,-0.0201,0.0066,1.5951,-0.022,-0.0058,1.5966,-0.0314,-0.0061,1.5966,-0.0314,-0.0069,1.5971,-0.0307,-0.0063,1.5965,-0.0314,-0.0022,1.5958,-0.0327,-0.0023,1.5955,-0.0328,-0.0041,1.5956,-0.0323,0.0,1.5951,-0.0324,0.0,1.5955,-0.0327,-0.007,1.595,-0.022,-0.0082,1.5954,-0.0239,-0.007,1.5944,-0.0221,-0.0085,1.5965,-0.0258,-0.0081,1.597,-0.0277,-0.0086,1.5959,-0.0258,-0.0073,1.5969,-0.0304,-0.0074,1.5967,-0.0292,-0.0079,1.597,-0.0291,-0.0061,1.5937,-0.0227,-0.0073,1.5944,-0.0246,-0.0085,1.5952,-0.0254,-0.0078,1.5952,-0.0267,-0.0083,1.5965,-0.0276,-0.0072,1.5954,-0.0272,-0.0037,1.5954,-0.0304,-0.0053,1.5954,-0.029,-0.0065,1.5965,-0.0306,0.0083,1.5965,-0.0276,0.0077,1.597,-0.0296,0.0082,1.5971,-0.028,0.007,1.5944,-0.0221,0.005,1.5936,-0.0205,0.005,1.593,-0.0209,0.0086,1.5956,-0.0259,0.0083,1.5956,-0.0265,0.0084,1.595,-0.026,0.0071,1.5948,-0.0263,0.0078,1.5952,-0.0267,0.0053,1.5954,-0.029,0.0072,1.5954,-0.0272,0.0058,1.5947,-0.0265,0.0037,1.5954,-0.0304,0.0039,1.5948,-0.0291,-0.0061,1.5969,-0.0266,-0.0076,1.5973,-0.0286,-0.0075,1.597,-0.0262,0.0,1.5979,-0.0252,-0.0008,1.5976,-0.026,-0.0022,1.5974,-0.0246,-0.0018,1.594,-0.0196,-0.0029,1.5952,-0.021,-0.0042,1.5953,-0.02,-0.0012,1.5965,-0.0306,-0.003,1.5965,-0.0298,-0.0032,1.597,-0.027,-0.0049,1.5963,-0.0295,-0.0049,1.5966,-0.0267,0.0079,1.5973,-0.0284,0.0065,1.5969,-0.0292,0.0061,1.5969,-0.0266,0.0042,1.5953,-0.02,0.0078,1.5969,-0.026,0.0075,1.5967,-0.025,0.0,1.5977,-0.0233,0.0022,1.5974,-0.0246,0.0012,1.5974,-0.0275,0.0012,1.5965,-0.0306,0.0,1.5966,-0.0305,0.0035,1.5963,-0.0235,0.0049,1.5966,-0.0267,0.0023,1.5955,-0.0328,0.0022,1.5958,-0.0327,0.0041,1.5958,-0.0323,-0.0041,1.5958,-0.0323,0.008,1.5963,-0.0244,-0.0057,1.5938,-0.0209,-0.005,1.5946,-0.0201,-0.0031,1.5935,-0.0193,-0.0018,1.5925,-0.0196,0.0,1.5924,-0.0194,0.0031,1.5936,-0.0192,0.0035,1.5928,-0.0199,-0.0081,1.5958,-0.0239,-0.0061,1.596,-0.0218,0.0069,1.5968,-0.031,0.0068,1.5971,-0.0311,0.0032,1.597,-0.027,0.0049,1.5963,-0.0295,0.0,1.5972,-0.0274,0.006,1.5968,-0.0309,0.003,1.5965,-0.0298,0.0029,1.5939,-0.019,0.003,1.5942,-0.0191,0.0046,1.5965,-0.0224,0.0,1.5956,-0.0207,0.0,1.5937,-0.0187,0.0,1.5939,-0.0193,0.0044,1.5956,-0.0318,0.0072,1.5967,-0.0295,0.0066,1.5966,-0.0307,0.0073,1.5944,-0.0246,0.0082,1.5953,-0.024,0.0084,1.5965,-0.0258,-0.0039,1.5948,-0.0291,-0.0058,1.5947,-0.0265,-0.0083,1.5956,-0.0265,-0.0083,1.5951,-0.026,-0.0043,1.5956,-0.0317,0.0,1.5929,-0.0189,0.0018,1.5925,-0.0195,0.0061,1.5967,-0.0317,0.0058,1.5966,-0.0314,0.0065,1.5966,-0.0315,0.0024,1.594,-0.0192,0.0,1.5934,-0.0186,-0.0059,1.5935,-0.0216,-0.0085,1.5955,-0.0259,-0.0071,1.5948,-0.0263,-0.0023,1.5954,-0.0324,-0.0059,1.5943,-0.0249,0.0034,1.5922,-0.0204,0.0086,1.5959,-0.0258,0.0061,1.5937,-0.0227,0.0085,1.5952,-0.0254,0.0079,1.5947,-0.0254,-0.006,1.5968,-0.0309,-0.0065,1.5969,-0.0292,-0.0012,1.5974,-0.0275,-0.0035,1.5963,-0.0235,0.0008,1.5976,-0.026,-0.007,1.5967,-0.0249,-0.0032,1.5928,-0.0199,0.0042,1.5956,-0.0322,0.0023,1.5954,-0.0325,0.0029,1.5952,-0.021,-0.0046,1.5965,-0.0224,0.0059,1.5943,-0.0249,-0.0079,1.5947,-0.0254,-0.0034,1.5923,-0.0204,-0.0015,1.592,-0.0199,-0.0039,1.5939,-0.0268,-0.0021,1.5953,-0.0307,-0.0017,1.5932,-0.0247,-0.0035,1.5929,-0.0225,-0.0038,1.5936,-0.0249,-0.0015,1.5926,-0.0223,0.0,1.5944,-0.0288,-0.0019,1.5938,-0.0268,-0.0021,1.5946,-0.029,0.0,1.5936,-0.0268,0.0015,1.592,-0.0199,0.0,1.5919,-0.0196,0.0035,1.5929,-0.0225,0.0019,1.5938,-0.0268,0.0038,1.5936,-0.0249,0.0017,1.5932,-0.0247,0.0039,1.5939,-0.0268,0.0021,1.5946,-0.029,0.0,1.595,-0.0309,0.0021,1.5953,-0.0307,0.0,1.5926,-0.0222,0.0015,1.5926,-0.0223,0.0,1.596,-0.0325,0.0,1.5931,-0.0245,0.0018,1.594,-0.0196});
			return c2disc_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 c2disc 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 c2disc().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.c2disc\" 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.c2disc self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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