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

		/** Define subarray values using type int[] with $tupleSize=1 and $tupleSplitSize=1000 for subarray position()=2 */
		private int[] getr_rib12_geometry_5_22_coordIndex_2()
		{
			int[] value = {127,175,184,-1,175,127,125,-1,38,27,126,-1,28,27,38,-1,111,16,18,-1,111,12,16,-1,162,113,170,-1,162,114,113,-1,15,16,12,-1,15,180,16,-1,115,148,150,-1,115,124,148,-1,14,148,15,-1,149,148,14,-1,147,47,120,-1,47,147,151,-1,150,117,115,-1,119,117,150,-1,121,183,128,-1,121,123,183,-1,128,119,121,-1,128,117,119,-1,147,119,150,-1,119,147,120,-1,149,169,152,-1,149,14,169,-1,15,124,180,-1,148,124,15,-1,170,14,162,-1,14,170,169,-1,116,66,115,-1,66,116,69,-1,128,154,59,-1,128,183,154,-1,31,111,110,-1,31,114,111,-1,174,184,175,-1,174,178,184,-1,178,108,184,-1,178,177,108,-1,107,184,108,-1,107,127,184,-1,167,19,22,-1,167,106,19,-1,167,35,129,-1,167,34,35,-1,95,168,92,-1,99,168,95,-1,93,42,94,-1,93,41,42,-1,40,1,161,-1,40,2,1,-1,102,89,86,-1,102,101,89,-1,140,51,160,-1,51,140,60,-1,74,138,56,-1,74,136,138,-1,55,85,83,-1,55,135,85,-1,183,81,154,-1,183,82,81,-1,80,143,182,-1,80,82,143,-1,182,79,78,-1,182,153,79,-1,181,78,77,-1,78,181,144,-1,181,73,75,-1,181,159,73,-1,145,65,159,-1,145,146,65,-1,72,179,176,-1,71,179,72,-1,180,66,68,-1,124,66,180,-1,178,173,176,-1,178,174,173,-1,131,179,105,-1,131,177,179,-1,174,67,69,-1,67,174,175,-1,116,57,173,-1,57,116,58,-1,74,54,75,-1,54,74,56,-1,79,52,50,-1,79,134,52,-1,76,136,74,-1,76,171,136,-1,88,142,86,-1,153,142,88,-1,48,102,122,-1,46,102,48,-1,130,152,169,-1,130,132,152,-1,170,21,20,-1,170,113,21,-1,93,112,24,-1,93,92,112,-1,35,36,38,-1,33,36,35,-1,43,1,166,-1,161,1,43,-1,110,32,31,-1,168,32,110,-1,139,60,140,-1,60,139,164,-1,163,156,7,-1,156,163,158,-1,155,9,165,-1,157,9,155,-1,163,6,164,-1,7,6,163,-1,64,9,11,-1,9,64,165,-1};
			return value;
		}
		/** Large attribute array: IndexedFaceSet DEF='r_rib12_geometry' coordIndex field, scene-graph level=5, element #22, 1464 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_rib12_geometry_5_22_coordIndex()
		{
			MFInt32 r_rib12_geometry_5_22_coordIndex = new MFInt32()/*2.finalize*/
				.append(new MFInt32(getr_rib12_geometry_5_22_coordIndex_1()))
				.append(new MFInt32(getr_rib12_geometry_5_22_coordIndex_2()));
			return r_rib12_geometry_5_22_coordIndex;
		}
		/** Large attribute array: Coordinate DEF='r_rib12_coordinate' point field, scene-graph level=6, element #22, 555 total numbers made up of 185 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_rib12_coordinate_6_22_point()
		{
			MFVec3f r_rib12_coordinate_6_22_point = new MFVec3f(new double[] {-0.0216,1.2213,-0.0652,-0.0214,1.2197,-0.0649,-0.021,1.2201,-0.0671,-0.073,1.2039,-0.0786,-0.0842,1.1958,-0.0693,-0.0727,1.2037,-0.0773,-0.094,1.1635,-0.0292,-0.0945,1.1637,-0.0291,-0.0942,1.1635,-0.0293,-0.097,1.1664,-0.0292,-0.0969,1.1668,-0.0292,-0.0975,1.1672,-0.0295,-0.024,1.2191,-0.0832,-0.0241,1.2181,-0.081,-0.0344,1.2162,-0.0822,-0.033,1.2169,-0.0848,-0.0256,1.2221,-0.0848,-0.0277,1.2243,-0.0849,-0.0224,1.2258,-0.0821,-0.0299,1.2183,-0.0756,-0.0296,1.2172,-0.0756,-0.0244,1.2162,-0.0718,-0.0253,1.2178,-0.0702,-0.0231,1.2283,-0.0808,-0.0205,1.2284,-0.08,-0.0227,1.2275,-0.0817,-0.0209,1.2293,-0.0781,-0.0241,1.2291,-0.0796,-0.0215,1.2296,-0.0762,-0.0198,1.2152,-0.0732,-0.0205,1.2146,-0.0735,-0.0209,1.2169,-0.0786,-0.0202,1.2174,-0.0778,-0.0221,1.2246,-0.0683,-0.0227,1.2214,-0.0647,-0.0231,1.225,-0.0685,-0.0203,1.2285,-0.0732,-0.0202,1.2288,-0.0749,-0.0216,1.2295,-0.0743,-0.021,1.221,-0.0711,-0.0201,1.2174,-0.0689,-0.0201,1.2284,-0.077,-0.0207,1.2263,-0.0743,-0.0217,1.2162,-0.066,-0.0209,1.215,-0.0683,-0.0526,1.2078,-0.081,-0.0696,1.196,-0.0747,-0.0523,1.207,-0.0821,-0.0699,1.1955,-0.0758,-0.0929,1.1646,-0.0306,-0.0919,1.1671,-0.0364,-0.0926,1.1653,-0.0307,-0.0916,1.1675,-0.0357,-0.094,1.1839,-0.0553,-0.0966,1.1785,-0.0467,-0.0937,1.1846,-0.0547,-0.0961,1.1791,-0.0461,-0.0548,1.2137,-0.0869,-0.0548,1.213,-0.0881,-0.0733,1.2036,-0.0793,-0.0932,1.1643,-0.0291,-0.0935,1.1639,-0.0298,-0.0981,1.1681,-0.0309,-0.0975,1.1664,-0.03,-0.0978,1.1668,-0.03,-0.0976,1.1671,-0.031,-0.0402,1.2197,-0.0877,-0.0344,1.2233,-0.0867,-0.0341,1.2225,-0.0863,-0.0401,1.221,-0.088,-0.072,1.2022,-0.0757,-0.0555,1.2121,-0.0825,-0.0563,1.2133,-0.0844,-0.0983,1.1698,-0.033,-0.0978,1.1736,-0.0371,-0.0982,1.1731,-0.0375,-0.0981,1.1701,-0.0324,-0.0933,1.1667,-0.0368,-0.0925,1.1726,-0.0462,-0.0903,1.1719,-0.0457,-0.0935,1.1831,-0.0563,-0.0908,1.1895,-0.0629,-0.0895,1.187,-0.0638,-0.0906,1.1896,-0.0619,-0.0821,1.1942,-0.0689,-0.0886,1.1875,-0.0602,-0.0838,1.1817,-0.0598,-0.0896,1.1807,-0.054,-0.0868,1.1779,-0.0539,-0.0863,1.1848,-0.0593,-0.02,1.2154,-0.0684,-0.0202,1.2172,-0.0727,-0.0204,1.2249,-0.0797,-0.0198,1.2276,-0.0786,-0.0203,1.2254,-0.0765,-0.0204,1.2235,-0.0771,-0.0216,1.2229,-0.068,-0.0208,1.226,-0.0721,-0.0202,1.2185,-0.0759,-0.0203,1.2208,-0.0766,-0.0706,1.1982,-0.0744,-0.0794,1.1914,-0.0679,-0.0778,1.1889,-0.0679,-0.045,1.2121,-0.0815,-0.054,1.2098,-0.0813,-0.0461,1.2141,-0.0808,-0.0308,1.2201,-0.0756,-0.0309,1.2234,-0.0779,-0.0374,1.2216,-0.0794,-0.0366,1.2184,-0.0776,-0.0204,1.2212,-0.0806,-0.0215,1.221,-0.0805,-0.0211,1.2252,-0.081,-0.024,1.2156,-0.0741,-0.0223,1.2169,-0.0786,-0.0455,1.2167,-0.0887,-0.0449,1.2183,-0.0888,-0.0546,1.211,-0.0873,-0.028,1.2253,-0.085,-0.0539,1.2083,-0.0859,-0.0532,1.2075,-0.0846,-0.0712,1.1963,-0.0778,-0.0781,1.1882,-0.0688,-0.0797,1.1891,-0.0704,-0.0392,1.2179,-0.0879,-0.0287,1.2264,-0.0835,-0.0254,1.2286,-0.0775,-0.0304,1.2262,-0.0809,-0.0722,1.1997,-0.0798,-0.0267,1.2256,-0.0736,-0.0355,1.2166,-0.0777,-0.0405,1.2166,-0.0791,-0.0395,1.215,-0.0796,-0.092,1.1751,-0.0446,-0.09,1.1722,-0.0448,-0.0916,1.183,-0.054,-0.0958,1.1724,-0.0362,-0.0934,1.1705,-0.0356,-0.0941,1.1776,-0.0453,-0.0941,1.1645,-0.0286,-0.0944,1.1659,-0.0293,-0.0968,1.1676,-0.0299,-0.0841,1.1813,-0.0606,-0.0863,1.1828,-0.0624,-0.0959,1.1768,-0.0464,-0.0938,1.1645,-0.032,-0.0941,1.1637,-0.0302,-0.0453,1.2119,-0.0851,-0.0386,1.2151,-0.0862,-0.0388,1.2146,-0.0837,-0.0453,1.2125,-0.0868,-0.045,1.2114,-0.083,-0.0392,1.2145,-0.0816,-0.0871,1.1774,-0.0547,-0.0844,1.1957,-0.07,-0.0966,1.166,-0.0298,-0.0948,1.1644,-0.0295,-0.0965,1.1662,-0.0296,-0.0947,1.1646,-0.0292,-0.0975,1.1685,-0.033,-0.0942,1.1674,-0.0309,-0.0207,1.2164,-0.0664,-0.0262,1.2173,-0.0796,-0.0942,1.164,-0.0286,-0.0937,1.1639,-0.0286,-0.0972,1.166,-0.0296,-0.0224,1.2198,-0.0643,-0.0269,1.2213,-0.0706,-0.0199,1.2212,-0.0795,-0.0347,1.2159,-0.0802,-0.0286,1.2165,-0.0771,-0.0964,1.1689,-0.0314,-0.0979,1.1686,-0.0306,-0.0445,1.2199,-0.0872,-0.0399,1.2221,-0.0867,-0.0345,1.2244,-0.0853,-0.0462,1.2192,-0.0854,-0.0415,1.2199,-0.0813,-0.0411,1.2218,-0.0841,-0.0466,1.2173,-0.0832,-0.0333,1.2199,-0.0864,-0.0973,1.1714,-0.0375,-0.0896,1.1786,-0.0553,-0.0826,1.1924,-0.0716,-0.0367,1.2239,-0.0822});
			return r_rib12_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_rib12 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_rib12().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_rib12\" 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_rib12 self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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