package Savage.GroundVehicles.Truck;

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

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> Rear bumper and side windows. </p>
 <p> Related links: Catalog page <a href="../../../../GroundVehicles/Truck/RemainderIndex.html" target="_blank">Remainder</a>,  source <a href="../../../../GroundVehicles/Truck/Remainder.java">Remainder.java</a>, <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;">&nbsp; Document Metadata </td>
		</tr>

		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> title </i> </td>
			<td> <a href="../../../../GroundVehicles/Truck/Remainder.x3d">Remainder.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> Rear bumper and side windows </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Donald Coomes </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 28 August 2006 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 20 October 2019 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> subject </i> </td>
			<td> ground vehicle </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> X3D-Edit, Wings3d and Flux Studio </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/Savage/GroundVehicles/Truck/Remainder.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/GroundVehicles/Truck/Remainder.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> license </i> </td>
			<td> <a href="../../../../GroundVehicles/Truck/../../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 Donald Coomes
 */

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

	/** Create and initialize the X3D model for this object. */
	public final void initialize()
	{
            try { // catch-all
  x3dModel = new X3D().setProfile(X3D.PROFILE_IMMERSIVE).setVersion(X3D.VERSION_3_1)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("Remainder.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("Rear bumper and side windows"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Donald Coomes"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("28 August 2006"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("20 October 2019"))
    .addMeta(new meta().setName(meta.NAME_SUBJECT    ).setContent("ground vehicle"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("X3D-Edit, Wings3d and Flux Studio"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Savage/GroundVehicles/Truck/Remainder.x3d"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("Remainder.x3d"))
    .addChild(new Shape("RearBumper")
      .setAppearance(new Appearance()
        .setMaterial(new Material("Chrome").setDiffuseColor(.15,.15,.15).setShininess(.05).setSpecularColor(.8,.8,.8)))
      .setGeometry(new IndexedFaceSet().setCreaseAngle(0.524).setColorIndex(getIndexedFaceSet_4_14_colorIndex()).setCoordIndex(getIndexedFaceSet_4_14_coordIndex())
        .setCoord(new Coordinate().setPoint(getCoordinate_5_14_point()))))
    .addChild(new Shape("RtRearWindow")
      .setAppearance(new Appearance()
        .setMaterial(new Material("ClearGlass").setDiffuseColor(0.0,0.0,.25).setTransparency(.5)))
      .setGeometry(new IndexedFaceSet().setCreaseAngle(0.524).setColorIndex(new int[] {0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1}).setCoordIndex(new int[] {0,1,13,-1,0,13,12,-1,0,9,8,-1,0,8,1,-1,0,12,15,-1,0,15,9,-1,1,8,14,-1,1,14,13,-1,2,3,22,-1,2,22,21,-1,2,10,11,-1,2,11,3,-1,2,21,20,-1,2,20,10,-1,3,11,23,-1,3,23,22,-1,4,5,7,-1,4,7,6,-1,4,6,18,-1,4,18,17,-1,4,17,16,-1,4,16,5,-1,5,16,19,-1,5,19,7,-1,6,7,19,-1,6,19,18,-1,8,9,15,-1,8,15,14,-1,10,20,23,-1,10,23,11,-1,12,13,14,-1,12,14,15,-1,16,17,18,-1,16,18,19,-1,20,21,22,-1,20,22,23,-1})
        .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {-1.98726,.636,-1.16883,-2.01262,.636,-1.16883,-2.01264,.63321,-1.60498,-1.98728,.63321,-1.60498,-2.01262,.636,-1.16895,-2.01262,.636,-1.60445,-1.98727,.636,-1.16895,-1.98727,.636,-1.60445,-2.01262,.74206,-1.05755,-1.98726,.74207,-1.05755,-2.01263,.73928,-1.71089,-1.98728,.73927,-1.71089,-1.98726,1.71159,-1.16883,-2.01262,1.71159,-1.16883,-2.01262,1.60576,-1.05755,-1.98726,1.60577,-1.05755,-2.01262,1.71159,-1.60445,-2.01262,1.71159,-1.16895,-1.98727,1.71159,-1.16895,-1.98727,1.71159,-1.60445,-2.01263,1.60298,-1.71089,-2.01264,1.7088,-1.60498,-1.98728,1.7088,-1.60498,-1.98728,1.60297,-1.71089})))))
    .addChild(new Shape("LftRearWindow")
      .setAppearance(new Appearance()
        .setMaterial(new Material().setUSE("ClearGlass")))
      .setGeometry(new IndexedFaceSet().setCreaseAngle(0.524).setColorIndex(new int[] {0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1}).setCoordIndex(new int[] {0,1,13,-1,0,13,12,-1,0,9,8,-1,0,8,1,-1,0,12,15,-1,0,15,9,-1,1,8,14,-1,1,14,13,-1,2,3,22,-1,2,22,21,-1,2,10,11,-1,2,11,3,-1,2,21,20,-1,2,20,10,-1,3,11,23,-1,3,23,22,-1,4,5,7,-1,4,7,6,-1,4,6,18,-1,4,18,17,-1,4,17,16,-1,4,16,5,-1,5,16,19,-1,5,19,7,-1,6,7,19,-1,6,19,18,-1,8,9,15,-1,8,15,14,-1,10,20,23,-1,10,23,11,-1,12,13,14,-1,12,14,15,-1,16,17,18,-1,16,18,19,-1,20,21,22,-1,20,22,23,-1})
        .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {2.01263,.636,-1.16883,1.98728,.636,-1.16883,1.98726,.63321,-1.60498,2.01261,.63321,-1.60498,1.98727,.636,-1.16895,1.98727,.636,-1.60445,2.01262,.636,-1.16895,2.01262,.636,-1.60445,1.98728,.74206,-1.05755,2.01263,.74207,-1.05755,1.98726,.73928,-1.71089,2.01261,.73927,-1.71089,2.01263,1.71159,-1.16883,1.98728,1.71159,-1.16883,1.98728,1.60576,-1.05755,2.01263,1.60577,-1.05755,1.98727,1.71159,-1.60445,1.98727,1.71159,-1.16895,2.01262,1.71159,-1.16895,2.01262,1.71159,-1.60445,1.98726,1.60298,-1.71089,1.98726,1.7088,-1.60498,2.01261,1.7088,-1.60498,2.01261,1.60297,-1.71089}))))));
            }
            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_4_14_colorIndex_1()
		{
			int[] value = {0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1};
			return value;
		}


		/** Define subarrays using type int[] */
		private int[] getIndexedFaceSet_4_14_coordIndex_1()
		{
			int[] value = {0,1,36,-1,0,36,37,-1,0,37,32,-1,0,32,33,-1,1,0,15,-1,1,15,14,-1,1,14,13,-1,1,13,12,-1,1,12,11,-1,1,11,96,-1,1,96,97,-1,1,97,10,-1,1,10,94,-1,1,94,95,-1,1,95,9,-1,1,9,92,-1,1,92,93,-1,1,93,8,-1,1,8,7,-1,1,7,6,-1,1,6,5,-1,1,5,4,-1,1,4,3,-1,1,3,2,-1,11,12,13,-1,11,13,15,-1,11,15,33,-1,11,33,71,-1,28,27,48,-1,48,27,73,-1,48,73,33,-1,33,73,72,-1,33,72,71,-1,48,49,31,-1,48,31,30,-1,48,30,29,-1,48,29,28,-1,33,15,0,-1,15,13,14,-1,1,2,41,-1,1,41,42,-1,1,42,35,-1,1,35,36,-1,2,3,45,-1,2,45,46,-1,2,46,40,-1,2,40,41,-1,3,4,5,-1,3,5,6,-1,3,6,7,-1,3,7,8,-1,3,8,66,-1,3,66,67,-1,3,67,68,-1,3,68,24,-1,3,24,23,-1,3,23,22,-1,3,22,21,-1,3,21,20,-1,3,20,50,-1,3,50,51,-1,3,51,45,-1,8,93,66,-1,9,69,76,-1,9,76,92,-1,9,95,79,-1,9,79,69,-1,10,70,78,-1,10,78,94,-1,10,97,83,-1,10,83,70,-1,11,71,96,-1,17,18,85,-1,17,85,84,-1,17,84,57,-1,17,57,58,-1,17,58,87,-1,17,87,86,-1,17,86,59,-1,17,59,60,-1,17,60,61,-1,17,61,62,-1,17,62,63,-1,17,63,16,-1,85,18,19,-1,85,19,52,-1,85,52,53,-1,85,53,54,-1,85,54,55,-1,85,55,56,-1,16,34,39,-1,16,39,17,-1,16,49,48,-1,16,48,34,-1,16,63,31,-1,16,31,49,-1,17,39,38,-1,17,38,65,-1,17,65,64,-1,17,64,18,-1,18,43,47,-1,18,47,19,-1,18,64,44,-1,18,44,43,-1,19,47,51,-1,19,51,50,-1,19,50,20,-1,19,20,52,-1,20,21,53,-1,20,53,52,-1,21,22,54,-1,21,54,53,-1,22,23,55,-1,22,55,54,-1,23,24,56,-1,23,56,55,-1,24,68,74,-1,24,74,90,-1,24,90,85,-1,24,85,56,-1,25,26,58,-1,25,58,57,-1,25,57,84,-1,25,84,91,-1,25,91,90,-1,25,90,74,-1,25,74,75,-1,25,75,77,-1,25,77,76,-1,25,76,69,-1,25,69,79,-1,25,79,78,-1,25,78,70,-1,25,70,83,-1,25,83,82,-1,25,82,81,-1,25,81,80,-1,25,80,89,-1,25,89,88,-1,25,88,26,-1,26,88,87,-1,26,87,58,-1,27,28,60,-1,27,60,59,-1,27,59,86,-1,27,86,89,-1,27,89,80,-1,27,80,73,-1,28,29,61,-1,28,61,60,-1,29,30,62,-1,29,62,61,-1,30,31,63,-1,30,63,62,-1,32,34,48,-1,32,48,33,-1,32,37,39,-1,32,39,34,-1,35,37,36,-1,35,38,39,-1,35,39,37,-1,35,42,44,-1,35,44,38,-1,38,44,64,-1,38,64,65,-1,40,42,41,-1,40,43,44,-1,40,44,42,-1,40,46,47,-1,40,47,43,-1,45,51,47,-1,45,47,46,-1,66,77,75,-1,66,75,67,-1,66,93,77,-1,67,75,74,-1,67,74,68,-1,71,72,81,-1,71,81,82,-1,71,82,96,-1,72,73,80,-1,72,80,81,-1,76,77,93,-1,76,93,92,-1,78,79,95,-1,78,95,94,-1,82,83,97,-1,82,97,96,-1,84,85,90,-1,84,90,91,-1,86,87,88,-1,86,88,89,-1};
			return value;
		}


		/** Large attribute array: IndexedFaceSet colorIndex field, scene-graph level=4, element #14, 768 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_4_14_colorIndex()
		{
			MFInt32 IndexedFaceSet_4_14_colorIndex = new MFInt32()/*2.finalize*/
				.append(new MFInt32(getIndexedFaceSet_4_14_colorIndex_1()));
			return IndexedFaceSet_4_14_colorIndex;
		}
		/** Large attribute array: IndexedFaceSet coordIndex field, scene-graph level=4, element #14, 768 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_4_14_coordIndex()
		{
			MFInt32 IndexedFaceSet_4_14_coordIndex = new MFInt32()/*2.finalize*/
				.append(new MFInt32(getIndexedFaceSet_4_14_coordIndex_1()));
			return IndexedFaceSet_4_14_coordIndex;
		}
		/** Large attribute array: Coordinate point field, scene-graph level=5, element #14, 294 total numbers made up of 98 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_5_14_point()
		{
			MFVec3f Coordinate_5_14_point = new MFVec3f(new double[] {1.83514,-.20517,-6.11255,1.84417,-.52425,-6.11276,-1.83447,-.52729,-6.09373,-1.82311,-.20758,-6.09394,-1.34494,-.20749,-6.09546,-1.0997,-.20729,-6.09687,-.85445,-.20708,-6.09829,-.60921,-.20289,-6.09971,-.36397,-.20668,-6.10112,-.11873,-.20648,-6.17856,.12652,-.20627,-6.17998,.37176,-.20607,-6.10537,.617,-.20187,-6.10678,.86225,-.20567,-6.1082,1.10749,-.20546,-6.10961,1.35273,-.20526,-6.11103,1.72954,-.23196,-6.44602,1.73662,-.49746,-6.44619,-1.72705,-.50051,-6.42719,-1.71814,-.23437,-6.42736,-1.34511,-.20749,-6.4021,-1.09987,-.20729,-6.40352,-.85462,-.20708,-6.40493,-.60938,-.20289,-6.40635,-.36414,-.20668,-6.40776,-.1189,-.41969,-6.40918,.12635,-.41949,-6.4106,.37159,-.20607,-6.41201,.61683,-.20187,-6.41343,.86207,-.20567,-6.41484,1.10732,-.20546,-6.41626,1.35256,-.20526,-6.41767,1.83583,-.23196,-6.22372,1.83509,-.20517,-6.1969,1.80282,-.23196,-6.39096,1.81731,-.52428,-6.22377,1.84412,-.52425,-6.19711,1.84335,-.49746,-6.22389,1.78415,-.52428,-6.39101,1.8102,-.49746,-6.39113,-1.83358,-.50051,-6.20489,-1.83452,-.52729,-6.17807,-1.80774,-.52727,-6.20501,-1.80054,-.50051,-6.37213,-1.77468,-.52727,-6.37226,-1.82316,-.20758,-6.17828,-1.82412,-.23437,-6.20507,-1.79125,-.23437,-6.37231,1.77777,-.20517,-6.37569,1.71993,-.20517,-6.41916,-1.70823,-.20758,-6.40062,-1.766,-.20758,-6.35709,-1.34511,-.23429,-6.4289,-1.09986,-.23409,-6.43032,-.8544,-.23388,-6.43173,-.60937,-.22969,-6.43315,-.36435,-.23348,-6.43456,-.11889,-.44649,-6.43598,.12635,-.44629,-6.4374,.37181,-.23287,-6.43881,.61684,-.22868,-6.44023,.86186,-.23247,-6.44164,1.10732,-.23226,-6.44306,1.35256,-.23206,-6.44447,-1.71896,-.52729,-6.40042,1.72849,-.52426,-6.41936,-.364,-.20668,-6.23847,-.36407,-.20668,-6.28511,-.36411,-.20668,-6.34644,-.11876,-.41969,-6.24192,.12648,-.41949,-6.24334,.37173,-.20607,-6.24272,.37166,-.20607,-6.28935,.37162,-.20607,-6.35068,-.28236,-.41983,-6.34691,-.28232,-.41983,-6.28558,-.20051,-.41976,-6.24145,-.28225,-.41983,-6.24098,.04474,-.41956,-6.24287,-.03701,-.41962,-6.24239,.28988,-.41935,-6.35021,.28991,-.41935,-6.28888,.28998,-.41935,-6.24428,.20823,-.41942,-6.24381,-.20071,-.44656,-6.43551,-.28253,-.44663,-6.43504,.28999,-.44616,-6.43834,.20817,-.44622,-6.43787,.20809,-.41942,-6.41107,.28984,-.41935,-6.41154,-.28239,-.41983,-6.40824,-.20064,-.41976,-6.40871,-.20047,-.20654,-6.17809,-.28222,-.20661,-6.17762,.04477,-.20634,-6.1795,-.03698,-.20641,-6.17903,.29001,-.20614,-6.18092,.20827,-.20621,-6.18045});
			return Coordinate_5_14_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 Remainder 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 Remainder().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: \"Savage.GroundVehicles.Truck.Remainder\" 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("Savage.GroundVehicles.Truck.Remainder self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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