package HumanoidAnimation.Coveroid;

import org.web3d.x3d.jsail.Core.*;
import org.web3d.x3d.jsail.EnvironmentalEffects.*;
import org.web3d.x3d.jsail.fields.*;
import org.web3d.x3d.jsail.Geometry3D.*;
import org.web3d.x3d.jsail.Grouping.*;
import org.web3d.x3d.jsail.Navigation.*;
import org.web3d.x3d.jsail.Rendering.*;
import org.web3d.x3d.jsail.Shape.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> Helmet mesh designed as wearable headgear in Coveroid. Positioned at ground level to support placement on bodies of different heights, or on a table. Initial view from above, visualization axes included. Example model for coveroid development, originally authored using Rhino 8. </p>
 <p> Related links:  source ScaledHelmet.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.Coveroid.ScaledHelmet&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/Coveroid/ScaledHelmet.x3d">ScaledHelmet.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Carol McDonald </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 24 November 2025 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 26 November 2025 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> Helmet mesh designed as wearable headgear in Coveroid. Positioned at ground level to support placement on bodies of different heights, or on a table. Initial view from above, visualization axes included. Example model for coveroid development, originally authored using Rhino 8. </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> source </i> </td>
			<td> originals/Scaled Helmet.x3dv </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/Coveroid/LargeHelmetWithNormals.x3d">LargeHelmetWithNormals.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> contributor </i> </td>
			<td> Don Brutzman </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> Rhino3D, <a href="https://www.rhino3d.com" target="_blank">https://www.rhino3d.com</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> castle-model-converter, <a href="https://castle-engine.io/castle-model-converter" target="_blank">https://castle-engine.io/castle-model-converter</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> identifier </i> </td>
			<td> <a href="https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Coveroid/ScaledHelmet.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Coveroid/ScaledHelmet.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/Coveroid/../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 Carol McDonald
 */

public class ScaledHelmet
{
	/** Default constructor to create this object. */
	public ScaledHelmet ()
	{
	  initialize();
	}

	/** Create and initialize the X3D model for this object. */
	public final void initialize()
	{
            try { // catch-all
  x3dModel = new X3D().setProfile(X3D.PROFILE_INTERCHANGE).setVersion(X3D.VERSION_4_0)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("ScaledHelmet.x3d"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Carol McDonald"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("24 November 2025"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("26 November 2025"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("Helmet mesh designed as wearable headgear in Coveroid. Positioned at ground level to support placement on bodies of different heights, or on a table. Initial view from above, visualization axes included. Example model for coveroid development, originally authored using Rhino 8."))
    .addMeta(new meta().setName(meta.NAME_SOURCE     ).setContent("originals/Scaled Helmet.x3dv"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("LargeHelmetWithNormals.x3d"))
    .addMeta(new meta().setName(meta.NAME_CONTRIBUTOR).setContent("Don Brutzman"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("Rhino3D, https://www.rhino3d.com"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("castle-model-converter, https://castle-engine.io/castle-model-converter"))
    .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_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Coveroid/ScaledHelmet.x3d"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("ScaledHelmet.x3d"))
    .addChild(new Background().setSkyColor(new MFColor(new double[] {1.0,1.0,1.0})))
    .addChild(new Viewpoint().setDescription("Simple helmet, view from above 1m").setOrientation(1.0,0.0,0.0,-1.570796).setPosition(0.0,1.0,0.0))
    .addChild(new Viewpoint().setDescription("Simple helmet, view from front 1m").setCenterOfRotation(0.0,0.1,0.0).setPosition(0.0,0.1,1.0))
    .addChild(new Viewpoint().setDescription("Simple helmet, view from left side 1m").setCenterOfRotation(0.0,0.1,0.0).setOrientation(0.0,1.0,0.0,-1.570796).setPosition(-1.0,0.1,0.0))
    .addChild(new Viewpoint().setDescription("Simple helmet, view from right side 1m").setCenterOfRotation(0.0,0.1,0.0).setOrientation(0.0,1.0,0.0,1.570796).setPosition(1.0,0.1,0.0))
    .addChild(new Viewpoint().setDescription("Simple helmet, view from behind 1m").setCenterOfRotation(0.0,0.1,0.0).setOrientation(0.0,1.0,0.0,-3.141593).setPosition(0.0,0.1,-1.0))
    .addChild(new Shape("AxisLinesShape")
      .addComments(" RGB lines showing XYZ axes ")
      .setGeometry(new IndexedLineSet().setColorPerVertex(false).setColorIndex(new int[] {0,1,2}).setCoordIndex(new int[] {0,1,-1,0,2,-1,0,3,-1})
        .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {0.0,0.0,0.0,0.3048,0.0,0.0,0.0,0.3048,0.0,0.0,0.0,0.3048}))
          .addComments(" 12 inches = 0.3048 meters ")
          .addComments(" point array (4 tuples, 12 total floats) has open geometry with distinct endpoints "))
        .setColor(new Color().setColor(new MFColor(new double[] {1.0,0.0,0.0,0.0,0.6,0.0,0.0,0.0,1.0})))))
    .addChild(new Transform().setTranslation(0.0,-1.45,0.0)
      .addComments(" Original helmet is 1.45m above ground (and tilted), corrected to be centered at origin by this Transform ")
      .addComments(" Size is 24\" (0.6096m) deep, 36\" (0.9144m) wide ")
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setAmbientIntensity(0).setDiffuseColor(0.545098,0.521569,1.0).setShininess(1)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(getIndexedFaceSet_5_28_coordIndex()).setTexCoordIndex(getIndexedFaceSet_5_28_texCoordIndex())
          .setCoord(new Coordinate().setPoint(getCoordinate_6_28_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 subarrays using type int[] */
		private int[] getIndexedFaceSet_5_28_coordIndex_1()
		{
			int[] value = {0,2,1,-1,0,3,2,-1,0,4,3,-1,0,5,4,-1,0,6,5,-1,0,7,6,-1,0,8,7,-1,0,9,8,-1,0,10,9,-1,0,11,10,-1,0,12,11,-1,0,13,12,-1,0,14,13,-1,0,15,14,-1,0,16,15,-1,0,17,16,-1,0,18,17,-1,0,19,18,-1,0,20,19,-1,0,1,20,-1,1,2,21,-1,2,3,22,-1,3,4,23,-1,4,5,24,-1,5,6,25,-1,6,7,27,-1,7,8,28,-1,8,9,29,-1,9,10,30,-1,10,11,31,-1,11,12,31,-1,12,13,32,-1,13,14,33,-1,14,15,34,-1,15,16,35,-1,16,17,37,-1,17,18,38,-1,18,19,39,-1,19,20,40,-1,20,1,21,-1,21,22,41,-1,22,23,42,-1,23,24,43,-1,24,25,44,-1,25,26,45,-1,26,27,47,-1,27,28,48,-1,28,29,49,-1,29,30,50,-1,30,31,51,-1,31,32,51,-1,32,33,52,-1,33,34,53,-1,34,35,54,-1,35,36,55,-1,36,37,57,-1,37,38,58,-1,38,39,59,-1,39,40,60,-1,40,21,41,-1,41,42,61,-1,42,43,62,-1,43,44,63,-1,44,45,64,-1,45,46,65,-1,46,47,67,-1,47,48,68,-1,48,49,69,-1,49,50,70,-1,50,51,71,-1,51,52,71,-1,52,53,72,-1,53,54,73,-1,54,55,74,-1,55,56,75,-1,56,57,77,-1,57,58,78,-1,58,59,79,-1,59,60,80,-1,60,41,61,-1,61,62,81,-1,62,63,82,-1,63,64,83,-1,64,65,84,-1,65,66,85,-1,66,67,87,-1,67,68,88,-1,68,69,89,-1,69,70,90,-1,70,71,91,-1,71,72,91,-1,72,73,92,-1,73,74,93,-1,74,75,94,-1,75,76,95,-1,76,77,97,-1,77,78,98,-1,78,79,99,-1,79,80,100,-1,80,61,81,-1,81,82,102,-1,82,83,102,-1,83,84,103,-1,84,85,104,-1,85,86,105,-1,86,87,107,-1,87,88,108,-1,88,89,109,-1,89,90,110,-1,90,91,110,-1,91,92,111,-1,92,93,112,-1,93,94,113,-1,94,95,114,-1,95,96,115,-1,96,97,117,-1,97,98,118,-1,98,99,119,-1,99,100,120,-1,100,81,101,-1,101,102,122,-1,102,103,122,-1,103,104,123,-1,104,105,124,-1,105,106,125,-1,106,107,127,-1,107,108,128,-1,108,109,129,-1,109,110,130,-1,110,111,130,-1,111,112,131,-1,112,113,132,-1,113,114,133,-1,114,115,134,-1,115,116,135,-1,116,117,137,-1,117,118,138,-1,118,119,139,-1,119,120,140,-1,120,101,121,-1,121,122,142,-1,122,123,142,-1,123,124,143,-1,124,125,144,-1,125,126,145,-1,126,127,147,-1,127,128,148,-1,128,129,149,-1,129,130,150,-1,130,131,150,-1,131,132,151,-1,132,133,152,-1,133,134,153,-1,134,135,154,-1,135,136,155,-1,136,137,157,-1,137,138,158,-1,138,139,159,-1,139,140,160,-1,140,121,141,-1,141,142,162,-1,142,143,163,-1,143,144,163,-1,144,145,164,-1,147,148,168,-1,148,149,169,-1,149,150,169,-1,150,151,170,-1,151,152,171,-1,152,153,172,-1,153,154,173,-1,154,155,174,-1,155,156,175,-1,156,157,177,-1,157,158,178,-1,158,159,179,-1,159,160,180,-1,160,141,161,-1,172,173,183,-1,173,174,184,-1,174,175,185,-1,175,176,186,-1,176,177,188,-1,177,178,189,-1,178,179,190,-1,179,180,191,-1,166,145,146,-1,165,145,166,-1,147,166,146,-1,166,147,167,-1,162,193,161,-1,193,162,194,-1,195,181,161,-1,163,196,162,-1,196,163,197,-1,196,198,162,-1,199,163,200,-1,164,200,163,-1,164,201,200,-1,203,202,163,-1,205,164,165,-1,204,164,205,-1,205,165,206,-1,207,165,166,-1,208,166,167,-1,168,209,167,-1,209,168,210,-1,211,208,167,-1,169,212,168,-1,169,213,212,-1,214,210,168,-1,215,169,170,-1,213,169,215,-1,217,216,170,-1,182,170,171,-1,182,218,170,-1,182,171,183,-1,181,180,161,-1,191,180,181,-1,182,183,219,-1,221,220,183,-1,223,222,183,-1,184,223,183,-1,224,223,184,-1,185,225,184,-1,185,226,225,-1,184,228,227,-1,184,229,228,-1,186,230,185,-1,186,231,230,-1,233,232,185,-1,192,186,187,-1,192,231,186,-1,188,234,187,-1,234,188,235,-1,236,192,187,-1,189,237,188,-1,237,189,238,-1,240,239,188,-1,190,241,189,-1,241,190,242,-1,244,243,189,-1,191,245,190,-1,191,246,245,-1,247,242,190,-1,181,248,191,-1,248,249,191,-1,171,172,183,-1,2,22,21,-1,3,23,22,-1};
			return value;
		}
		private int[] getIndexedFaceSet_5_28_coordIndex_2()
		{
			int[] value = {4,24,23,-1,5,25,24,-1,6,26,25,-1,6,27,26,-1,7,28,27,-1,8,29,28,-1,9,30,29,-1,10,31,30,-1,12,32,31,-1,13,33,32,-1,14,34,33,-1,15,35,34,-1,16,36,35,-1,16,37,36,-1,17,38,37,-1,18,39,38,-1,19,40,39,-1,20,21,40,-1,22,42,41,-1,23,43,42,-1,24,44,43,-1,25,45,44,-1,26,46,45,-1,26,47,46,-1,27,48,47,-1,28,49,48,-1,29,50,49,-1,30,51,50,-1,32,52,51,-1,33,53,52,-1,34,54,53,-1,35,55,54,-1,36,56,55,-1,36,57,56,-1,37,58,57,-1,38,59,58,-1,39,60,59,-1,40,41,60,-1,42,62,61,-1,43,63,62,-1,44,64,63,-1,45,65,64,-1,46,66,65,-1,46,67,66,-1,47,68,67,-1,48,69,68,-1,49,70,69,-1,50,71,70,-1,52,72,71,-1,53,73,72,-1,54,74,73,-1,55,75,74,-1,56,76,75,-1,56,77,76,-1,57,78,77,-1,58,79,78,-1,59,80,79,-1,60,61,80,-1,62,82,81,-1,63,83,82,-1,64,84,83,-1,65,85,84,-1,66,86,85,-1,66,87,86,-1,67,88,87,-1,68,89,88,-1,69,90,89,-1,70,91,90,-1,72,92,91,-1,73,93,92,-1,74,94,93,-1,75,95,94,-1,76,96,95,-1,76,97,96,-1,77,98,97,-1,78,99,98,-1,79,100,99,-1,80,81,100,-1,81,102,101,-1,83,103,102,-1,84,104,103,-1,85,105,104,-1,86,106,105,-1,86,107,106,-1,87,108,107,-1,88,109,108,-1,89,110,109,-1,91,111,110,-1,92,112,111,-1,93,113,112,-1,94,114,113,-1,95,115,114,-1,96,116,115,-1,96,117,116,-1,97,118,117,-1,98,119,118,-1,99,120,119,-1,100,101,120,-1,101,122,121,-1,103,123,122,-1,104,124,123,-1,105,125,124,-1,106,126,125,-1,106,127,126,-1,107,128,127,-1,108,129,128,-1,109,130,129,-1,111,131,130,-1,112,132,131,-1,113,133,132,-1,114,134,133,-1,115,135,134,-1,116,136,135,-1,116,137,136,-1,117,138,137,-1,118,139,138,-1,119,140,139,-1,120,121,140,-1,121,142,141,-1,123,143,142,-1,124,144,143,-1,125,145,144,-1,126,146,145,-1,126,147,146,-1,127,148,147,-1,128,149,148,-1,129,150,149,-1,131,151,150,-1,132,152,151,-1,133,153,152,-1,134,154,153,-1,135,155,154,-1,136,156,155,-1,136,157,156,-1,137,158,157,-1,138,159,158,-1,139,160,159,-1,140,141,160,-1,141,162,161,-1,142,163,162,-1,144,164,163,-1,145,165,164,-1,147,168,167,-1,148,169,168,-1,150,170,169,-1,151,171,170,-1,152,172,171,-1,153,173,172,-1,154,174,173,-1,155,175,174,-1,156,176,175,-1,156,177,176,-1,157,178,177,-1,158,179,178,-1,159,180,179,-1,160,161,180,-1,173,184,183,-1,174,185,184,-1,175,186,185,-1,176,187,186,-1,176,188,187,-1,177,189,188,-1,178,190,189,-1,179,191,190,-1};
			return value;
		}


		/** Define subarrays using type int[] */
		private int[] getIndexedFaceSet_5_28_texCoordIndex_1()
		{
			int[] value = {0,2,1,-1,0,3,2,-1,0,4,3,-1,0,5,4,-1,0,6,5,-1,0,7,6,-1,0,8,7,-1,0,9,8,-1,0,10,9,-1,0,11,10,-1,0,12,11,-1,0,13,12,-1,0,14,13,-1,0,15,14,-1,0,16,15,-1,0,17,16,-1,0,18,17,-1,0,19,18,-1,0,20,19,-1,0,1,20,-1,1,2,21,-1,2,3,22,-1,3,4,23,-1,4,5,24,-1,5,6,25,-1,6,7,27,-1,7,8,28,-1,8,9,29,-1,9,10,30,-1,10,11,31,-1,11,12,31,-1,12,13,32,-1,13,14,33,-1,14,15,34,-1,15,16,35,-1,16,17,37,-1,17,18,38,-1,18,19,39,-1,19,20,40,-1,20,1,21,-1,21,22,41,-1,22,23,42,-1,23,24,43,-1,24,25,44,-1,25,26,45,-1,26,27,47,-1,27,28,48,-1,28,29,49,-1,29,30,50,-1,30,31,51,-1,31,32,51,-1,32,33,52,-1,33,34,53,-1,34,35,54,-1,35,36,55,-1,36,37,57,-1,37,38,58,-1,38,39,59,-1,39,40,60,-1,40,21,41,-1,41,42,61,-1,42,43,62,-1,43,44,63,-1,44,45,64,-1,45,46,65,-1,46,47,67,-1,47,48,68,-1,48,49,69,-1,49,50,70,-1,50,51,71,-1,51,52,71,-1,52,53,72,-1,53,54,73,-1,54,55,74,-1,55,56,75,-1,56,57,77,-1,57,58,78,-1,58,59,79,-1,59,60,80,-1,60,41,61,-1,61,62,81,-1,62,63,82,-1,63,64,83,-1,64,65,84,-1,65,66,85,-1,66,67,87,-1,67,68,88,-1,68,69,89,-1,69,70,90,-1,70,71,91,-1,71,72,91,-1,72,73,92,-1,73,74,93,-1,74,75,94,-1,75,76,95,-1,76,77,97,-1,77,78,98,-1,78,79,99,-1,79,80,100,-1,80,61,81,-1,81,82,102,-1,82,83,102,-1,83,84,103,-1,84,85,104,-1,85,86,105,-1,86,87,107,-1,87,88,108,-1,88,89,109,-1,89,90,110,-1,90,91,110,-1,91,92,111,-1,92,93,112,-1,93,94,113,-1,94,95,114,-1,95,96,115,-1,96,97,117,-1,97,98,118,-1,98,99,119,-1,99,100,120,-1,100,81,101,-1,101,102,122,-1,102,103,122,-1,103,104,123,-1,104,105,124,-1,105,106,125,-1,106,107,127,-1,107,108,128,-1,108,109,129,-1,109,110,130,-1,110,111,130,-1,111,112,131,-1,112,113,132,-1,113,114,133,-1,114,115,134,-1,115,116,135,-1,116,117,137,-1,117,118,138,-1,118,119,139,-1,119,120,140,-1,120,101,121,-1,121,122,142,-1,122,123,142,-1,123,124,143,-1,124,125,144,-1,125,126,145,-1,126,127,147,-1,127,128,148,-1,128,129,149,-1,129,130,150,-1,130,131,150,-1,131,132,151,-1,132,133,152,-1,133,134,153,-1,134,135,154,-1,135,136,155,-1,136,137,157,-1,137,138,158,-1,138,139,159,-1,139,140,160,-1,140,121,141,-1,141,142,162,-1,142,143,163,-1,143,144,163,-1,144,145,164,-1,147,148,168,-1,148,149,169,-1,149,150,169,-1,150,151,170,-1,151,152,171,-1,152,153,172,-1,153,154,173,-1,154,155,174,-1,155,156,175,-1,156,157,177,-1,157,158,178,-1,158,159,179,-1,159,160,180,-1,160,141,161,-1,172,173,183,-1,173,174,184,-1,174,175,185,-1,175,176,186,-1,176,177,188,-1,177,178,189,-1,178,179,190,-1,179,180,191,-1,166,145,146,-1,165,145,166,-1,147,166,146,-1,166,147,167,-1,162,193,161,-1,193,162,194,-1,195,181,161,-1,163,196,162,-1,196,163,197,-1,196,198,162,-1,199,163,200,-1,164,200,163,-1,164,201,200,-1,203,202,163,-1,205,164,165,-1,204,164,205,-1,205,165,206,-1,207,165,166,-1,208,166,167,-1,168,209,167,-1,209,168,210,-1,211,208,167,-1,169,212,168,-1,169,213,212,-1,214,210,168,-1,215,169,170,-1,213,169,215,-1,217,216,170,-1,182,170,171,-1,182,218,170,-1,182,171,183,-1,181,180,161,-1,191,180,181,-1,182,183,219,-1,221,220,183,-1,223,222,183,-1,184,223,183,-1,224,223,184,-1,185,225,184,-1,185,226,225,-1,184,228,227,-1,184,229,228,-1,186,230,185,-1,186,231,230,-1,233,232,185,-1,192,186,187,-1,192,231,186,-1,188,234,187,-1,234,188,235,-1,236,192,187,-1,189,237,188,-1,237,189,238,-1,240,239,188,-1,190,241,189,-1,241,190,242,-1,244,243,189,-1,191,245,190,-1,191,246,245,-1,247,242,190,-1,181,248,191,-1,248,249,191,-1,171,172,183,-1,2,22,21,-1,3,23,22,-1};
			return value;
		}
		private int[] getIndexedFaceSet_5_28_texCoordIndex_2()
		{
			int[] value = {4,24,23,-1,5,25,24,-1,6,26,25,-1,6,27,26,-1,7,28,27,-1,8,29,28,-1,9,30,29,-1,10,31,30,-1,12,32,31,-1,13,33,32,-1,14,34,33,-1,15,35,34,-1,16,36,35,-1,16,37,36,-1,17,38,37,-1,18,39,38,-1,19,40,39,-1,20,21,40,-1,22,42,41,-1,23,43,42,-1,24,44,43,-1,25,45,44,-1,26,46,45,-1,26,47,46,-1,27,48,47,-1,28,49,48,-1,29,50,49,-1,30,51,50,-1,32,52,51,-1,33,53,52,-1,34,54,53,-1,35,55,54,-1,36,56,55,-1,36,57,56,-1,37,58,57,-1,38,59,58,-1,39,60,59,-1,40,41,60,-1,42,62,61,-1,43,63,62,-1,44,64,63,-1,45,65,64,-1,46,66,65,-1,46,67,66,-1,47,68,67,-1,48,69,68,-1,49,70,69,-1,50,71,70,-1,52,72,71,-1,53,73,72,-1,54,74,73,-1,55,75,74,-1,56,76,75,-1,56,77,76,-1,57,78,77,-1,58,79,78,-1,59,80,79,-1,60,61,80,-1,62,82,81,-1,63,83,82,-1,64,84,83,-1,65,85,84,-1,66,86,85,-1,66,87,86,-1,67,88,87,-1,68,89,88,-1,69,90,89,-1,70,91,90,-1,72,92,91,-1,73,93,92,-1,74,94,93,-1,75,95,94,-1,76,96,95,-1,76,97,96,-1,77,98,97,-1,78,99,98,-1,79,100,99,-1,80,81,100,-1,81,102,101,-1,83,103,102,-1,84,104,103,-1,85,105,104,-1,86,106,105,-1,86,107,106,-1,87,108,107,-1,88,109,108,-1,89,110,109,-1,91,111,110,-1,92,112,111,-1,93,113,112,-1,94,114,113,-1,95,115,114,-1,96,116,115,-1,96,117,116,-1,97,118,117,-1,98,119,118,-1,99,120,119,-1,100,101,120,-1,101,122,121,-1,103,123,122,-1,104,124,123,-1,105,125,124,-1,106,126,125,-1,106,127,126,-1,107,128,127,-1,108,129,128,-1,109,130,129,-1,111,131,130,-1,112,132,131,-1,113,133,132,-1,114,134,133,-1,115,135,134,-1,116,136,135,-1,116,137,136,-1,117,138,137,-1,118,139,138,-1,119,140,139,-1,120,121,140,-1,121,142,141,-1,123,143,142,-1,124,144,143,-1,125,145,144,-1,126,146,145,-1,126,147,146,-1,127,148,147,-1,128,149,148,-1,129,150,149,-1,131,151,150,-1,132,152,151,-1,133,153,152,-1,134,154,153,-1,135,155,154,-1,136,156,155,-1,136,157,156,-1,137,158,157,-1,138,159,158,-1,139,160,159,-1,140,141,160,-1,141,162,161,-1,142,163,162,-1,144,164,163,-1,145,165,164,-1,147,168,167,-1,148,169,168,-1,150,170,169,-1,151,171,170,-1,152,172,171,-1,153,173,172,-1,154,174,173,-1,155,175,174,-1,156,176,175,-1,156,177,176,-1,157,178,177,-1,158,179,178,-1,159,180,179,-1,160,161,180,-1,173,184,183,-1,174,185,184,-1,175,186,185,-1,176,187,186,-1,176,188,187,-1,177,189,188,-1,178,190,189,-1,179,191,190,-1};
			return value;
		}


		/** Define subarrays using type double[] */
		private double[] getCoordinate_6_28_point_1()
		{
			double[] value = {6.979599E-18,1.6095126,-0.025841722,0.02314745,1.6076422,-0.025905248,0.022014534,1.6078916,-0.017025854,0.018726682,1.6081166,-0.009015639,0.013605731,1.6082952,-0.0026586961,0.007152956,1.6084098,0.0014227126,8.396972E-18,1.6084493,0.0028290702,-0.007152956,1.6084098,0.0014227126,-0.013605731,1.6082952,-0.0026586961,-0.018726682,1.6081166,-0.009015639,-0.022014534,1.6078916,-0.017025854,-0.02314745,1.6076422,-0.025905248,-0.022014534,1.6073927,-0.03478464,-0.018726682,1.6071677,-0.042794853,-0.013605731,1.6069891,-0.049151797,-0.007152956,1.6068745,-0.053233206,-1.7831585E-17,1.606835,-0.054639563,0.007152956,1.6068745,-0.053233206,0.013605731,1.6069891,-0.049151797,0.018726682,1.6071677,-0.042794853,0.022014534,1.6073927,-0.03478464,0.045724936,1.6020769,-0.026094258,0.043486997,1.6025697,-0.008554113,0.03699225,1.6030141,0.00726908,0.026876442,1.6033669,0.019826436,0.014129782,1.6035933,0.027888756,9.779444E-18,1.6036714,0.030666843,-0.014129782,1.6035933,0.027888756,-0.026876442,1.6033669,0.019826436,-0.03699225,1.6030141,0.00726908,-0.043486997,1.6025697,-0.008554113,-0.045724936,1.6020769,-0.026094258,-0.043486997,1.6015842,-0.043634403,-0.03699225,1.6011398,-0.059457596,-0.026876442,1.600787,-0.07201495,-0.014129782,1.6005605,-0.08007727,-4.2031836E-17,1.6004825,-0.08285536,0.014129782,1.6005605,-0.08007727,0.026876442,1.600787,-0.07201495,0.03699225,1.6011398,-0.059457596,0.043486997,1.6015842,-0.043634403,0.06717652,1.592954,-0.0264041,0.06388867,1.5936779,-6.350993E-4,0.054346945,1.5943309,0.022611452,0.03948537,1.5948491,0.04106002,0.020758687,1.5951818,0.05290473,1.1092974E-17,1.5952965,0.05698614,-0.020758687,1.5951818,0.05290473,-0.03948537,1.5948491,0.04106002,-0.054346945,1.5943309,0.022611452,-0.06388867,1.5936779,-6.350993E-4,-0.06717652,1.592954,-0.0264041,-0.06388867,1.5922301,-0.0521731,-0.054346945,1.5915772,-0.07541965,-0.03948537,1.5910589,-0.09386822,-0.020758687,1.5907261,-0.10571293,-6.5025264E-17,1.5906116,-0.10979433,0.020758687,1.5907261,-0.10571293,0.03948537,1.5910589,-0.09386822,0.054346945,1.5915772,-0.07541965,0.06388867,1.5922301,-0.0521731,0.086973995,1.5804979,-0.026827144,0.08271719,1.5814351,0.0065361937,0.07036344,1.5822805,0.036633696,0.051122032,1.5829515,0.060519207,0.026876442,1.5833822,0.07585465,1.2305221E-17,1.5835308,0.08113889,-0.026876442,1.5833822,0.07585465,-0.051122032,1.5829515,0.060519207,-0.07036344,1.5822805,0.036633696,-0.08271719,1.5814351,0.0065361937,-0.086973995,1.5804979,-0.026827144,-0.08271719,1.5795608,-0.06019048,-0.07036344,1.5787153,-0.09028798,-0.051122032,1.5780443,-0.114173494,-0.026876442,1.5776136,-0.12950894,-8.624569E-17,1.577465,-0.13479318,0.026876442,1.5776136,-0.12950894,0.051122032,1.5780443,-0.114173494,0.07036344,1.5787153,-0.09028798,0.08271719,1.5795608,-0.06019048,0.10462988,1.5650154,-0.027352974,0.09950893,1.5661429,0.012783186,0.08464735,1.56716,0.048990536,0.0614999,1.5679672,0.07772485,0.032332413,1.5684854,0.09617342,1.3386332E-17,1.568664,0.10253037,-0.032332413,1.5684854,0.09617342,-0.0614999,1.5679672,0.07772485,-0.08464735,1.56716,0.048990536,-0.09950893,1.5661429,0.012783186,-0.10462988,1.5650154,-0.027352974,-0.09950893,1.563888,-0.06748913,-0.08464735,1.5628709,-0.10369648,-0.0614999,1.5620638,-0.1324308,-0.032332413,1.5615455,-0.15087937,-1.051706E-16,1.5613669,-0.15723631,0.032332413,1.5615455,-0.15087937,0.0614999,1.5620638,-0.1324308,0.08464735,1.5628709,-0.10369648};
			return value;
		}
		private double[] getCoordinate_6_28_point_2()
		{
			double[] value = {0.09950893,1.563888,-0.06748913,0.11970943,1.5468878,-0.027968641,0.11385044,1.5481777,0.017952055,0.09684697,1.5493414,0.05937771,0.07036344,1.5502648,0.0922533,0.03699225,1.5508578,0.113360725,1.4309689E-17,1.5510621,0.12063385,-0.03699225,1.5508578,0.113360725,-0.07036344,1.5502648,0.0922533,-0.09684697,1.5493414,0.05937771,-0.11385044,1.5481777,0.017952055,-0.11970943,1.5468878,-0.027968641,-0.11385044,1.5455979,-0.07388934,-0.09684697,1.5444342,-0.11531499,-0.07036344,1.5435107,-0.14819057,-0.03699225,1.5429177,-0.16929801,-1.21334E-16,1.5427135,-0.17657113,0.03699225,1.5429177,-0.16929801,0.07036344,1.5435107,-0.14819057,0.09684697,1.5444342,-0.11531499,0.11385044,1.5455979,-0.07388934,0.13184135,1.5265614,-0.028658986,0.12538856,1.527982,0.021915525,0.106661886,1.5292636,0.067539446,0.0774944,1.5302807,0.1037468,0.040741216,1.5309336,0.12699336,1.5052553E-17,1.5311587,0.13500357,-0.040741216,1.5309336,0.12699336,-0.0774944,1.5302807,0.1037468,-0.106661886,1.5292636,0.067539446,-0.12538856,1.527982,0.021915525,-0.13184135,1.5265614,-0.028658986,-0.12538856,1.5251406,-0.0792335,-0.106661886,1.523859,-0.12485742,-0.0774944,1.5228419,-0.16106477,-0.040741216,1.522189,-0.18431133,-1.343379E-16,1.521964,-0.19232154,0.040741216,1.522189,-0.18431133,0.0774944,1.5228419,-0.16106477,0.106661886,1.523859,-0.12485742,0.12538856,1.5251406,-0.0792335,0.14072688,1.5045365,-0.029407011,0.13383922,1.506053,0.024576003,0.11385044,1.5074209,0.073274784,0.08271719,1.5085065,0.11192235,0.043486997,1.5092036,0.13673562,1.5596636E-17,1.5094438,0.1452857,-0.043486997,1.5092036,0.13673562,-0.08271719,1.5085065,0.11192235,-0.11385044,1.5074209,0.073274784,-0.13383922,1.506053,0.024576003,-0.14072688,1.5045365,-0.029407011,-0.13383922,1.5030202,-0.08339003,-0.11385044,1.5016521,-0.13208881,-0.08271719,1.5005666,-0.17073637,-0.043486997,1.4998696,-0.19554965,-1.4386209E-16,1.4996294,-0.20409971,0.043486997,1.4998696,-0.19554965,0.08271719,1.5005666,-0.17073637,0.11385044,1.5016521,-0.13208881,0.13383922,1.5030202,-0.08339003,0.14614725,1.4813558,-0.030194296,0.1389943,1.4829307,0.02586798,0.11823561,1.4843513,0.076442495,0.085903205,1.4854788,0.11657865,0.045161985,1.4862026,0.14234765,1.5928537E-17,1.486452,0.15122704,-0.045161985,1.4862026,0.14234765,-0.085903205,1.4854788,0.11657865,-0.11823561,1.4843513,0.076442495,-0.1389943,1.4829307,0.02586798,-0.14614725,1.4813558,-0.030194296,-0.1389943,1.479781,-0.08625657,-0.11823561,1.4783603,-0.13683109,-0.085903205,1.4772329,-0.17696725,-0.045161985,1.476509,-0.20273624,-1.4967206E-16,1.4762596,-0.21161564,0.045161985,1.476509,-0.20273624,0.085903205,1.4772329,-0.17696725,0.11823561,1.4783603,-0.13683109,0.1389943,1.479781,-0.08625657,0.147969,1.4575899,-0.031001456,-0.147969,1.4575899,-0.031001456,-0.14072688,1.4559954,-0.08776256,-0.11970943,1.4545571,-0.13896748,-0.086973995,1.4534155,-0.17960395,-0.045724936,1.4526826,-0.20569415,-1.5162473E-16,1.4524301,-0.21468423,0.045724936,1.4526826,-0.20569415,0.086973995,1.4534155,-0.17960395,0.11970943,1.4545571,-0.13896748,0.14072688,1.4559954,-0.08776256,-1.4967206E-16,1.4287277,-0.21322995,0.1420186,1.464468,0.012425297,0.14018689,1.4665853,0.025793409,0.1420186,1.464468,0.012425297,0.12863308,1.4709451,0.053320754,0.11883873,1.4746411,0.07665613,0.14018689,1.4665853,0.025793409,0.10776998,1.4767897,0.09022137};
			return value;
		}
		private double[] getCoordinate_6_28_point_3()
		{
			double[] value = {0.0961447,1.4790462,0.10446867,0.08610567,1.4809948,0.11677196,0.11883873,1.4746411,0.07665613,0.10776998,1.4767897,0.09022137,0.08610567,1.4809948,0.11677196,0.047519498,1.4848247,0.14095235,0.045189217,1.4850559,0.14241265,0.045189217,1.4850559,0.14241265,-0.045189217,1.4850559,0.14241265,-0.047519498,1.4848247,0.14095235,-0.08610567,1.4809948,0.11677196,-0.047519498,1.4848247,0.14095235,-0.09411648,1.4794399,0.10695435,-0.11883873,1.4746411,0.07665613,-0.09411648,1.4794399,0.10695435,-0.12863308,1.4709451,0.053320754,-0.12863308,1.4709451,0.053320754,-0.14018689,1.4665853,0.025793409,-0.14018689,1.4665853,0.025793409,-0.1420186,1.4507117,-0.07442821,-0.1420186,1.4507117,-0.07442821,-0.14018689,1.4485945,-0.08779632,-0.14018689,1.4485945,-0.08779632,-0.12863308,1.4442345,-0.11532366,-0.11883873,1.4405385,-0.13865905,-0.09411648,1.4357398,-0.16895726,-0.08610567,1.4341848,-0.17877486,-0.11883873,1.4405385,-0.13865905,-0.0961447,1.4361335,-0.16647159,-0.09411648,1.4357398,-0.16895726,-0.047519498,1.4303551,-0.20295526,-0.045189217,1.4301238,-0.20441556,-0.08610567,1.4341848,-0.17877486,-0.047519498,1.4303551,-0.20295526,0.043079484,1.4300586,-0.20482707,0.045189217,1.4301238,-0.20441556,0.043079484,1.4300586,-0.20482707,0.07925323,1.4335047,-0.18306902,0.08610567,1.4341848,-0.17877486,0.045189217,1.4301238,-0.20441556,0.07925323,1.4335047,-0.18306902,0.10776998,1.43839,-0.15222429,0.11883873,1.4405385,-0.13865905,0.08610567,1.4341848,-0.17877486,0.10776998,1.43839,-0.15222429,0.12863308,1.4442345,-0.11532366,0.14018689,1.4485945,-0.08779632,0.12863308,1.4442345,-0.11532366,0.1420186,1.4507117,-0.07442821,0.14018689,1.4485945,-0.08779632};
			return value;
		}

		/** Large attribute array: IndexedFaceSet coordIndex field, scene-graph level=5, element #28, 1656 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 getIndexedFaceSet_5_28_coordIndex()
		{
			MFInt32 IndexedFaceSet_5_28_coordIndex = new MFInt32()/*2.finalize*/
				.append(new MFInt32(getIndexedFaceSet_5_28_coordIndex_1()))
				.append(new MFInt32(getIndexedFaceSet_5_28_coordIndex_2()));
			return IndexedFaceSet_5_28_coordIndex;
		}
		/** Large attribute array: IndexedFaceSet texCoordIndex field, scene-graph level=5, element #28, 1656 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 getIndexedFaceSet_5_28_texCoordIndex()
		{
			MFInt32 IndexedFaceSet_5_28_texCoordIndex = new MFInt32()/*2.finalize*/
				.append(new MFInt32(getIndexedFaceSet_5_28_texCoordIndex_1()))
				.append(new MFInt32(getIndexedFaceSet_5_28_texCoordIndex_2()));
			return IndexedFaceSet_5_28_texCoordIndex;
		}
		/** Large attribute array: Coordinate point field, scene-graph level=6, element #28, 750 total numbers made up of 250 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 getCoordinate_6_28_point()
		{
			MFVec3f Coordinate_6_28_point = new MFVec3f()/*2.finalize*/
				.append(new MFVec3f(getCoordinate_6_28_point_1()))
				.append(new MFVec3f(getCoordinate_6_28_point_2()))
				.append(new MFVec3f(getCoordinate_6_28_point_3()));
			return Coordinate_6_28_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 ScaledHelmet 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 ScaledHelmet().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.Coveroid.ScaledHelmet\" 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.Coveroid.ScaledHelmet self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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