package Savage.Locations.RioDeJaneiro;

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.Lighting.*;
import org.web3d.x3d.jsail.Rendering.*;
import org.web3d.x3d.jsail.Shape.*;
import org.web3d.x3d.jsail.Sound.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> Rio de Janeiro. </p>
 <p> Related links: Catalog page <a href="../../../../Locations/RioDeJaneiro/AsaIndex.html" target="_blank">Asa</a>,  source <a href="../../../../Locations/RioDeJaneiro/Asa.java">Asa.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="../../../../Locations/RioDeJaneiro/Asa.x3d">Asa.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> Rio de Janeiro </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Luciano Soares </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> translated </i> </td>
			<td> 2 Outubro 2003 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 30 July 2023 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> Luciano P. Soares, Leonardo Nomura, Marcio C. Cabral, Mario Nagamura, Roseli D. Lopes, and Marcelo K. Zuffo. 2005. Virtual hang-gliding over Rio de Janeiro. In ACM SIGGRAPH 2005 Emerging technologies (SIGGRAPH '05). Association for Computing Machinery, New York, NY, USA, 29–es. </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://doi.org/10.1145/1187297.1187327" target="_blank">https://doi.org/10.1145/1187297.1187327</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> subject </i> </td>
			<td> Asa Wing </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> Vrml97ToX3dNist, <a href="http://ovrt.nist.gov/v2_x3d.html" target="_blank">http://ovrt.nist.gov/v2_x3d.html</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/Savage/Locations/RioDeJaneiro/Asa.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/Locations/RioDeJaneiro/Asa.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> license </i> </td>
			<td> <a href="../../../../Locations/RioDeJaneiro/../../license.html">../../license.html</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> TODO </i> </td>
			<td> add metadata for media rights </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> TODO </i> </td>
			<td> recover lost sound file: sound/drumloop.wav </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 Luciano Soares
 */

public class Asa
{
	/** Default constructor to create this object. */
	public Asa ()
	{
	  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_4_0)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("Asa.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("Rio de Janeiro"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Luciano Soares"))
    .addMeta(new meta().setName(meta.NAME_TRANSLATED ).setContent("2 Outubro 2003"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("30 July 2023"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("Luciano P. Soares, Leonardo Nomura, Marcio C. Cabral, Mario Nagamura, Roseli D. Lopes, and Marcelo K. Zuffo. 2005. Virtual hang-gliding over Rio de Janeiro. In ACM SIGGRAPH 2005 Emerging technologies (SIGGRAPH '05). Association for Computing Machinery, New York, NY, USA, 29–es."))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://doi.org/10.1145/1187297.1187327"))
    .addMeta(new meta().setName(meta.NAME_SUBJECT    ).setContent("Asa Wing"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html"))
    .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/Savage/Locations/RioDeJaneiro/Asa.x3d"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../../license.html"))
    .addMeta(new meta().setName(meta.NAME_TODO       ).setContent("add metadata for media rights"))
    .addMeta(new meta().setName(meta.NAME_TODO       ).setContent("recover lost sound file: sound/drumloop.wav")))
  .setScene(new Scene()
    .addComments(" <Sound location='0 0 0' spatialize='true'> <AudioClip DEF='MYSOUND2' description='drumloop' loop='true' stopTime='0' url='\"sound/drumloop.wav\" \"https://www.web3d.org/x3d/content/examples/Savage/Locations/RioDeJaneiro/sound/drumloop.wav\"'/> </Sound> ")
    .addChild(new WorldInfo().setTitle("Asa.x3d"))
    .addChild(new Sound().setIntensity(0.01)
      .setSource(new AudioClip("MYSOUND3").setDescription("joas").setLoop(true).setUrl(new String[] {"joas.mp3","https://www.web3d.org/x3d/content/examples/Savage/Locations/RioDeJaneiro/joas.mp3"})))
    .addChild(new DirectionalLight().setDirection(0.2,-1.0,-0.2))
    .addChild(new DirectionalLight().setDirection(0.0,1.0,0.0))
    .addChild(new PointLight().setLocation(1000.0,0.0,-1000.0))
    .addChild(new PointLight().setLocation(-1000.0,0.0,1000.0))
    .addChild(new Switch().setWhichChoice(-1)
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material("Asa_Delta_0").setDiffuseColor(0.16,0.486293,0.8).setShininess(0.0))))
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material("Asa_Delta1_1").setShininess(0.0))))
      .addChild(new Shape()
        .setGeometry(new IndexedFaceSet("pCylinder38_0Geo").setDEF("pCylinder38_0Geo").setConvex(false).setSolid(false).setCoordIndex(new int[] {1,2,9,8,-1,3,4,11,10,-1,4,5,12,11,-1,6,0,7,13,-1,8,9,16,15,-1,10,11,18,17,-1,11,12,19,18,-1,13,7,14,20,-1,1,0,21,-1,2,1,21,-1,3,2,21,-1,4,3,21,-1,5,4,21,-1,6,5,21,-1,0,6,21,-1,14,15,22,-1,15,16,22,-1,16,17,22,-1,17,18,22,-1,18,19,22,-1,19,20,22,-1,20,14,22,-1}).setNormalIndex(new int[] {4,5,6,7,-1,12,13,14,15,-1,16,17,18,19,-1,24,25,26,27,-1,7,6,30,31,-1,15,14,34,35,-1,19,18,36,37,-1,27,26,40,41,-1,42,43,44,-1,45,42,44,-1,46,45,44,-1,47,46,44,-1,48,47,44,-1,49,48,44,-1,43,49,44,-1,50,51,52,-1,51,53,52,-1,53,54,52,-1,54,55,52,-1,55,56,52,-1,56,57,52,-1,57,50,52,-1})
          .setNormal(new Normal().setVector(new MFVec3f(new double[] {0.577,0.182,-0.796,0.577,0.182,-0.796,-0.0,0.223,-0.975,-0.0,0.223,-0.975,0.493,-0.543,-0.68,0.493,-0.543,-0.68,0.0,-0.623,-0.782,0.0,-0.623,-0.782,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,-0.472,-0.569,0.673,-0.472,-0.569,0.673,0.0,-0.645,0.764,0.0,-0.645,0.764,-0.469,0.59,0.658,-0.469,0.59,0.658,0.0,0.668,0.744,0.0,0.668,0.744,-0.3,0.86,0.414,-0.3,0.86,0.414,0.0,0.901,0.434,0.0,0.901,0.434,0.3,0.86,-0.414,0.3,0.86,-0.414,0.0,0.901,-0.434,0.0,0.901,-0.434,-0.577,0.182,-0.796,-0.577,0.182,-0.796,-0.493,-0.543,-0.68,-0.493,-0.543,-0.68,-0.0,-1.0,-0.0,-0.0,-1.0,-0.0,0.472,-0.569,0.673,0.472,-0.569,0.673,0.469,0.59,0.658,0.469,0.59,0.658,0.3,0.86,0.414,0.3,0.86,0.414,-0.3,0.86,-0.414,-0.3,0.86,-0.414,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,0.0,0.0,1.0,-0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,-0.0,0.0,-1.0,-0.0,0.0,-1.0,0.0,0.0,-1.0,-0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0})))
          .setCoord(new Coordinate("pCylinder38GeoPoints").setPoint(new MFVec3f(new double[] {18.442,2.134,5.846,18.442,1.816,5.773,18.442,1.562,5.976,18.442,1.562,6.302,18.442,1.816,6.505,18.442,2.134,6.432,18.442,2.275,6.139,0.0,2.134,-7.509,-0.0,1.816,-7.581,-0.0,1.562,-7.378,-0.0,1.562,-6.652,-0.0,1.816,-6.425,0.0,2.134,-6.922,0.0,2.275,-7.216,-18.442,2.134,5.846,-18.442,1.816,5.773,-18.442,1.562,5.976,-18.442,1.562,6.302,-18.442,1.816,6.505,-18.442,2.134,6.432,-18.442,2.275,6.139,18.442,1.9,6.139,-18.442,1.9,6.139})))))
      .addChild(new Shape()
        .setGeometry(new IndexedFaceSet("pCylinder38_1Geo").setDEF("pCylinder38_1Geo").setConvex(false).setSolid(false).setCoordIndex(new int[] {0,1,8,7,-1,2,3,10,9,-1,5,6,13,12,-1,7,8,15,14,-1,9,10,17,16,-1,12,13,20,19,-1}).setNormalIndex(new int[] {0,1,2,3,-1,8,9,10,11,-1,20,21,22,23,-1,3,2,28,29,-1,11,10,32,33,-1,23,22,38,39,-1})
          .setNormal(new Normal().setVector(new MFVec3f(new double[] {0.577,0.182,-0.796,0.577,0.182,-0.796,-0.0,0.223,-0.975,-0.0,0.223,-0.975,0.493,-0.543,-0.68,0.493,-0.543,-0.68,0.0,-0.623,-0.782,0.0,-0.623,-0.782,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,-0.472,-0.569,0.673,-0.472,-0.569,0.673,0.0,-0.645,0.764,0.0,-0.645,0.764,-0.469,0.59,0.658,-0.469,0.59,0.658,0.0,0.668,0.744,0.0,0.668,0.744,-0.3,0.86,0.414,-0.3,0.86,0.414,0.0,0.901,0.434,0.0,0.901,0.434,0.3,0.86,-0.414,0.3,0.86,-0.414,0.0,0.901,-0.434,0.0,0.901,-0.434,-0.577,0.182,-0.796,-0.577,0.182,-0.796,-0.493,-0.543,-0.68,-0.493,-0.543,-0.68,-0.0,-1.0,-0.0,-0.0,-1.0,-0.0,0.472,-0.569,0.673,0.472,-0.569,0.673,0.469,0.59,0.658,0.469,0.59,0.658,0.3,0.86,0.414,0.3,0.86,0.414,-0.3,0.86,-0.414,-0.3,0.86,-0.414,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,0.0,0.0,1.0,-0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,-0.0,0.0,-1.0,-0.0,0.0,-1.0,0.0,0.0,-1.0,-0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0})))
          .setCoord(new Coordinate().setUSE("pCylinder38GeoPoints"))))
      .addChild(new Shape()
        .setGeometry(new IndexedFaceSet("pPlane71_0Geo").setDEF("pPlane71_0Geo").setConvex(false).setSolid(false).setCoordIndex(new int[] {0,1,8,7,-1,1,2,9,8,-1,4,5,12,11,-1,5,6,13,12,-1}).setNormalIndex(new int[] {0,1,2,3,-1,1,4,5,2,-1,8,10,11,9,-1,10,12,13,11,-1})
          .setNormal(new Normal().setVector(new MFVec3f(new double[] {0.0,1.0,0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,0.0,0.0,1.0,0.0})))
          .setCoord(new Coordinate("pPlane71GeoPoints").setPoint(new MFVec3f(new double[] {-16.342,2.086,7.815,-11.084,2.086,5.759,-5.565,2.086,4.533,-0.008,2.086,4.088,5.55,2.086,4.533,11.069,2.086,5.759,16.327,2.086,7.815,-18.262,2.086,6.287,-11.123,2.086,0.927,-5.565,2.086,-2.951,-0.008,2.086,-6.884,5.55,2.086,-2.951,11.108,2.086,0.927,18.247,2.086,6.287})))))
      .addChild(new Shape()
        .setGeometry(new IndexedFaceSet("pPlane71_1Geo").setDEF("pPlane71_1Geo").setConvex(false).setSolid(false).setCoordIndex(new int[] {2,3,10,9,-1,3,4,11,10,-1}).setNormalIndex(new int[] {4,6,7,5,-1,6,8,9,7,-1})
          .setNormal(new Normal().setVector(new MFVec3f(new double[] {0.0,1.0,0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,-0.0,0.0,1.0,0.0,0.0,1.0,0.0})))
          .setCoord(new Coordinate().setUSE("pPlane71GeoPoints"))))
      .addChild(new Shape()
        .setGeometry(new IndexedFaceSet("pTorus4_0Geo").setDEF("pTorus4_0Geo").setConvex(false).setSolid(false).setCoordIndex(new int[] {2,1,7,8,-1,4,3,9,10,-1,0,5,11,6,-1,8,7,13,14,-1,10,9,15,16,-1,6,11,17,12,-1,14,13,19,20,-1,16,15,21,22,-1,12,17,23,18,-1,20,19,25,26,-1,22,21,27,28,-1,18,23,29,24,-1,26,25,31,32,-1,28,27,33,34,-1,24,29,35,30,-1,32,31,37,38,-1,34,33,39,40,-1,30,35,41,36,-1,38,37,1,2,-1,40,39,3,4,-1,36,41,5,0,-1}).setNormalIndex(new int[] {4,5,6,7,-1,12,13,14,15,-1,20,21,22,23,-1,28,29,30,31,-1,36,37,38,39,-1,44,45,46,47,-1,52,53,54,55,-1,60,61,62,63,-1,68,69,70,71,-1,76,77,78,79,-1,84,85,86,87,-1,92,93,94,95,-1,100,101,102,103,-1,108,109,110,111,-1,116,117,118,119,-1,124,125,126,127,-1,132,133,134,135,-1,140,141,142,143,-1,148,149,150,151,-1,156,157,158,159,-1,164,165,166,167,-1})
          .setNormal(new Normal().setVector(getNormal_6_45_vector()))
          .setCoord(new Coordinate("pTorus4GeoPoints").setPoint(new MFVec3f(new double[] {0.03,1.779,-1.623,-0.04,1.786,-1.623,-1.81,-1.788,-1.623,-1.674,-1.988,-1.623,1.718,-1.988,-1.623,1.852,-1.764,-1.623,0.051,1.811,-1.534,-0.062,1.817,-1.534,-1.853,-1.788,-1.534,-1.696,-2.025,-1.534,1.74,-2.025,-1.534,1.895,-1.764,-1.534,0.097,1.881,-1.512,-0.11,1.883,-1.512,-1.949,-1.788,-1.512,-1.744,-2.109,-1.512,1.788,-2.109,-1.512,1.991,-1.764,-1.512,0.133,1.931,-1.573,-0.148,1.929,-1.573,-2.026,-1.788,-1.573,-1.782,-2.176,-1.573,1.826,-2.176,-1.573,2.068,-1.764,-1.573,0.13,1.918,-1.672,-0.148,1.912,-1.672,-2.026,-1.788,-1.672,-1.782,-2.176,-1.672,1.826,-2.176,-1.672,2.068,-1.764,-1.672,0.091,1.846,-1.733,-0.11,1.839,-1.733,-1.949,-1.788,-1.733,-1.744,-2.109,-1.733,1.788,-2.109,-1.733,1.991,-1.764,-1.733,0.044,1.768,-1.711,-0.062,1.762,-1.711,-1.853,-1.788,-1.711,-1.696,-2.025,-1.711,1.74,-2.025,-1.711,1.895,-1.764,-1.711})))))
      .addChild(new Shape()
        .setGeometry(new IndexedFaceSet("pTorus4_1Geo").setDEF("pTorus4_1Geo").setConvex(false).setSolid(false).setCoordIndex(new int[] {1,0,6,7,-1,3,2,8,9,-1,5,4,10,11,-1,7,6,12,13,-1,9,8,14,15,-1,11,10,16,17,-1,13,12,18,19,-1,15,14,20,21,-1,17,16,22,23,-1,19,18,24,25,-1,21,20,26,27,-1,23,22,28,29,-1,25,24,30,31,-1,27,26,32,33,-1,29,28,34,35,-1,31,30,36,37,-1,33,32,38,39,-1,35,34,40,41,-1,37,36,0,1,-1,39,38,2,3,-1,41,40,4,5,-1}).setNormalIndex(new int[] {0,1,2,3,-1,8,9,10,11,-1,16,17,18,19,-1,24,25,26,27,-1,32,33,34,35,-1,40,41,42,43,-1,48,49,50,51,-1,56,57,58,59,-1,64,65,66,67,-1,72,73,74,75,-1,80,81,82,83,-1,88,89,90,91,-1,96,97,98,99,-1,104,105,106,107,-1,112,113,114,115,-1,120,121,122,123,-1,128,129,130,131,-1,136,137,138,139,-1,144,145,146,147,-1,152,153,154,155,-1,160,161,162,163,-1})
          .setNormal(new Normal().setVector(getNormal_6_49_vector()))
          .setCoord(new Coordinate().setUSE("pTorus4GeoPoints"))))
      .addChild(new Shape()
        .setGeometry(new IndexedFaceSet("pCylinder39_0Geo").setDEF("pCylinder39_0Geo").setConvex(false).setSolid(false).setCoordIndex(new int[] {10,11,12,13,-1,0,3,8,7,-1,6,7,11,10,-1,7,8,12,11,-1,8,9,13,12,-1,9,6,10,13,-1}).setNormalIndex(new int[] {8,9,10,11,-1,16,17,18,19,-1,24,25,26,27,-1,28,29,10,9,-1,30,31,32,33,-1,22,15,8,11,-1})
          .setNormal(new Normal().setVector(new MFVec3f(new double[] {0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,-0.0,0.432,0.902,-0.0,0.432,0.902,-0.0,0.432,0.902,-0.0,0.432,0.902,-0.0,0.843,-0.538,0.0,-0.528,-0.849,0.0,-0.528,-0.849,-0.0,0.843,-0.538,-0.0,0.221,-0.975,-0.0,0.432,-0.902,-0.0,0.432,-0.902,-0.0,0.599,-0.801,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.432,-0.902,0.0,0.221,-0.975,-0.0,0.599,-0.801,0.0,0.432,-0.902,1.0,-0.009,-0.001,1.0,-0.009,-0.001,1.0,-0.009,-0.001,1.0,-0.009,-0.001,0.0,-1.0,-0.011,0.0,-1.0,-0.011,-1.0,-0.009,-0.001,-1.0,-0.009,-0.001,-1.0,-0.009,-0.001,-1.0,-0.009,-0.001})))
          .setCoord(new Coordinate("pCylinder39GeoPoints").setPoint(new MFVec3f(new double[] {7.224,1.761,-1.755,7.847,1.761,-1.48,7.549,2.049,-1.618,-7.257,1.761,-1.755,-7.881,1.761,-1.48,-7.582,2.049,-1.618,0.038,2.049,-1.618,0.036,1.761,-1.755,-0.069,1.761,-1.755,-0.072,2.049,-1.618,0.034,1.992,-6.679,0.032,1.819,-6.761,-0.065,1.819,-6.761,-0.068,1.992,-6.679})))))
      .addChild(new Shape()
        .setGeometry(new IndexedFaceSet("pCylinder39_1Geo").setDEF("pCylinder39_1Geo").setConvex(false).setSolid(false).setCoordIndex(new int[] {0,1,4,3,-1,1,2,5,4,-1,2,0,7,6,-1,3,5,9,8,-1,5,2,6,9,-1}).setNormalIndex(new int[] {0,1,2,3,-1,4,5,6,7,-1,12,13,14,15,-1,20,21,22,23,-1,21,12,15,22,-1})
          .setNormal(new Normal().setVector(new MFVec3f(new double[] {0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,-0.0,0.432,0.902,-0.0,0.432,0.902,-0.0,0.432,0.902,-0.0,0.432,0.902,-0.0,0.843,-0.538,0.0,-0.528,-0.849,0.0,-0.528,-0.849,-0.0,0.843,-0.538,-0.0,0.221,-0.975,-0.0,0.432,-0.902,-0.0,0.432,-0.902,-0.0,0.599,-0.801,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.432,-0.902,0.0,0.221,-0.975,-0.0,0.599,-0.801,0.0,0.432,-0.902,1.0,-0.009,-0.001,1.0,-0.009,-0.001,1.0,-0.009,-0.001,1.0,-0.009,-0.001,0.0,-1.0,-0.011,0.0,-1.0,-0.011,-1.0,-0.009,-0.001,-1.0,-0.009,-0.001,-1.0,-0.009,-0.001,-1.0,-0.009,-0.001})))
          .setCoord(new Coordinate().setUSE("pCylinder39GeoPoints")))))
    .addComments(" <ProtoInstance name='Avatar'> <fieldValue name='children'> <Transform DEF='pCylinder38' scale='1.0 1.0 1.0' scaleOrientation='0.0 0.0 1.0 0.0' translation='0.0 0.0 0.0'> <Shape> <Appearance> <Material USE='Asa_Delta_0'/> </Appearance> <IndexedFaceSet USE='pCylinder38_0Geo'/> </Shape> <Shape> <Appearance> <Material USE='Asa_Delta1_1'/> </Appearance> <IndexedFaceSet USE='pCylinder38_1Geo'/> </Shape> </Transform> <Transform DEF='pPlane71' scale='1.0 1.0 1.0' scaleOrientation='0.0 0.0 1.0 0.0' translation='0.0 0.0 0.0'> <Shape> <Appearance> <Material USE='Asa_Delta_0'/> </Appearance> <IndexedFaceSet USE='pPlane71_0Geo'/> </Shape> <Shape> <Appearance> <Material USE='Asa_Delta1_1'/> </Appearance> <IndexedFaceSet USE='pPlane71_1Geo'/> </Shape> </Transform> <Transform DEF='pTorus4' scale='1.0 1.0 1.0' scaleOrientation='0.0 0.0 1.0 0.0' translation='0.0 0.0 0.0'> <Shape> <Appearance> <Material USE='Asa_Delta_0'/> </Appearance> <IndexedFaceSet USE='pTorus4_0Geo'/> </Shape> <Shape> <Appearance> <Material USE='Asa_Delta1_1'/> </Appearance> <IndexedFaceSet USE='pTorus4_1Geo'/> </Shape> </Transform> <Transform DEF='pCylinder39' scale='1.0 1.0 1.0' scaleOrientation='0.0 0.0 1.0 0.0' translation='0.0 0.0 0.0'> <Shape> <Appearance> <Material USE='Asa_Delta1_1'/> </Appearance> <IndexedFaceSet USE='pCylinder39_0Geo'/> </Shape> <Shape> <Appearance> <Material USE='Asa_Delta_0'/> </Appearance> <IndexedFaceSet USE='pCylinder39_1Geo'/> </Shape> </Transform> </fieldValue> </ProtoInstance> "));
            }
            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 double[] */
		private double[] getNormal_6_45_vector_1()
		{
			double[] value = {-0.069,-0.941,0.331,-0.069,-0.941,0.331,-0.069,-0.941,0.331,-0.069,-0.941,0.331,0.832,-0.413,0.371,0.832,-0.413,0.371,0.832,-0.413,0.371,0.832,-0.413,0.371,0.767,0.514,0.384,0.767,0.514,0.384,0.767,0.514,0.384,0.767,0.514,0.384,0.0,0.923,0.385,0.0,0.923,0.385,0.0,0.923,0.385,0.0,0.923,0.385,-0.793,0.472,0.385,-0.793,0.472,0.385,-0.793,0.472,0.385,-0.793,0.472,0.385,-0.826,-0.425,0.371,-0.826,-0.425,0.371,-0.826,-0.425,0.371,-0.826,-0.425,0.371,-0.008,-0.306,0.952,-0.008,-0.306,0.952,-0.008,-0.306,0.952,-0.008,-0.306,0.952,0.239,-0.119,0.964,0.239,-0.119,0.964,0.239,-0.119,0.964,0.239,-0.119,0.964,0.214,0.139,0.967,0.214,0.139,0.967,0.214,0.139,0.967,0.214,0.139,0.967,0.0,0.255,0.967,0.0,0.255,0.967,0.0,0.255,0.967,0.0,0.255,0.967,-0.219,0.13,0.967,-0.219,0.13,0.967,-0.219,0.13,0.967,-0.219,0.13,0.967,-0.237,-0.123,0.964,-0.237,-0.123,0.964,-0.237,-0.123,0.964,-0.237,-0.123,0.964,0.0,0.787,0.617,0.0,0.787,0.617,0.0,0.787,0.617,0.0,0.787,0.617,-0.629,0.317,0.71,-0.629,0.317,0.71,-0.629,0.317,0.71,-0.629,0.317,0.71,-0.572,-0.363,0.735,-0.572,-0.363,0.735,-0.572,-0.363,0.735,-0.572,-0.363,0.735,-0.0,-0.677,0.736,-0.0,-0.677,0.736,-0.0,-0.677,0.736,-0.0,-0.677,0.736,0.584,-0.344,0.736,0.584,-0.344,0.736,0.584,-0.344,0.736,0.584,-0.344,0.736,0.626,0.326,0.709,0.626,0.326,0.709,0.626,0.326,0.709,0.626,0.326,0.709,-0.015,0.989,-0.15,-0.015,0.989,-0.15,-0.015,0.989,-0.15,-0.015,0.989,-0.15,-0.891,0.451,-0.039,-0.891,0.451,-0.039,-0.891,0.451,-0.039,-0.891,0.451,-0.039,-0.846,-0.533,0.0,-0.846,-0.533,0.0,-0.846,-0.533,0.0,-0.846,-0.533,0.0,-0.0,-1.0,-0.0,-0.0,-1.0,-0.0,-0.0,-1.0,-0.0,-0.0,-1.0,-0.0,0.862,-0.507,-0.0,0.862,-0.507,-0.0,0.862,-0.507,-0.0,0.862,-0.507,-0.0,0.885,0.464,-0.041,0.885,0.464,-0.041,0.885,0.464,-0.041,0.885,0.464,-0.041,-0.018,0.647,-0.762,-0.018,0.647,-0.762,-0.018,0.647,-0.762,-0.018,0.647,-0.762};
			return value;
		}
		private double[] getNormal_6_45_vector_2()
		{
			double[] value = {-0.597,0.303,-0.742,-0.597,0.303,-0.742,-0.597,0.303,-0.742,-0.597,0.303,-0.742,-0.572,-0.363,-0.735,-0.572,-0.363,-0.735,-0.572,-0.363,-0.735,-0.572,-0.363,-0.735,-0.0,-0.677,-0.736,-0.0,-0.677,-0.736,-0.0,-0.677,-0.736,-0.0,-0.677,-0.736,0.584,-0.344,-0.736,0.584,-0.344,-0.736,0.584,-0.344,-0.736,0.584,-0.344,-0.736,0.592,0.312,-0.743,0.592,0.312,-0.743,0.592,0.312,-0.743,0.592,0.312,-0.743,0.012,-0.272,-0.962,0.012,-0.272,-0.962,0.012,-0.272,-0.962,0.012,-0.272,-0.962,0.232,-0.117,-0.966,0.232,-0.117,-0.966,0.232,-0.117,-0.966,0.232,-0.117,-0.966,0.214,0.139,-0.967,0.214,0.139,-0.967,0.214,0.139,-0.967,0.214,0.139,-0.967,0.0,0.255,-0.967,0.0,0.255,-0.967,0.0,0.255,-0.967,0.0,0.255,-0.967,-0.219,0.13,-0.967,-0.219,0.13,-0.967,-0.219,0.13,-0.967,-0.219,0.13,-0.967,-0.23,-0.121,-0.966,-0.23,-0.121,-0.966,-0.23,-0.121,-0.966,-0.23,-0.121,-0.966,-0.008,-0.982,0.19,-0.008,-0.982,0.19,-0.008,-0.982,0.19,-0.008,-0.982,0.19,0.865,-0.432,-0.254,0.865,-0.432,-0.254,0.865,-0.432,-0.254,0.865,-0.432,-0.254,0.767,0.514,-0.384,0.767,0.514,-0.384,0.767,0.514,-0.384,0.767,0.514,-0.384,0.0,0.923,-0.385,0.0,0.923,-0.385,0.0,0.923,-0.385,0.0,0.923,-0.385,-0.793,0.472,-0.385,-0.793,0.472,-0.385,-0.793,0.472,-0.385,-0.793,0.472,-0.385,-0.86,-0.447,-0.246,-0.86,-0.447,-0.246,-0.86,-0.447,-0.246,-0.86,-0.447,-0.246};
			return value;
		}


		/** Define subarrays using type double[] */
		private double[] getNormal_6_49_vector_1()
		{
			double[] value = {-0.069,-0.941,0.331,-0.069,-0.941,0.331,-0.069,-0.941,0.331,-0.069,-0.941,0.331,0.832,-0.413,0.371,0.832,-0.413,0.371,0.832,-0.413,0.371,0.832,-0.413,0.371,0.767,0.514,0.384,0.767,0.514,0.384,0.767,0.514,0.384,0.767,0.514,0.384,0.0,0.923,0.385,0.0,0.923,0.385,0.0,0.923,0.385,0.0,0.923,0.385,-0.793,0.472,0.385,-0.793,0.472,0.385,-0.793,0.472,0.385,-0.793,0.472,0.385,-0.826,-0.425,0.371,-0.826,-0.425,0.371,-0.826,-0.425,0.371,-0.826,-0.425,0.371,-0.008,-0.306,0.952,-0.008,-0.306,0.952,-0.008,-0.306,0.952,-0.008,-0.306,0.952,0.239,-0.119,0.964,0.239,-0.119,0.964,0.239,-0.119,0.964,0.239,-0.119,0.964,0.214,0.139,0.967,0.214,0.139,0.967,0.214,0.139,0.967,0.214,0.139,0.967,0.0,0.255,0.967,0.0,0.255,0.967,0.0,0.255,0.967,0.0,0.255,0.967,-0.219,0.13,0.967,-0.219,0.13,0.967,-0.219,0.13,0.967,-0.219,0.13,0.967,-0.237,-0.123,0.964,-0.237,-0.123,0.964,-0.237,-0.123,0.964,-0.237,-0.123,0.964,0.0,0.787,0.617,0.0,0.787,0.617,0.0,0.787,0.617,0.0,0.787,0.617,-0.629,0.317,0.71,-0.629,0.317,0.71,-0.629,0.317,0.71,-0.629,0.317,0.71,-0.572,-0.363,0.735,-0.572,-0.363,0.735,-0.572,-0.363,0.735,-0.572,-0.363,0.735,-0.0,-0.677,0.736,-0.0,-0.677,0.736,-0.0,-0.677,0.736,-0.0,-0.677,0.736,0.584,-0.344,0.736,0.584,-0.344,0.736,0.584,-0.344,0.736,0.584,-0.344,0.736,0.626,0.326,0.709,0.626,0.326,0.709,0.626,0.326,0.709,0.626,0.326,0.709,-0.015,0.989,-0.15,-0.015,0.989,-0.15,-0.015,0.989,-0.15,-0.015,0.989,-0.15,-0.891,0.451,-0.039,-0.891,0.451,-0.039,-0.891,0.451,-0.039,-0.891,0.451,-0.039,-0.846,-0.533,0.0,-0.846,-0.533,0.0,-0.846,-0.533,0.0,-0.846,-0.533,0.0,-0.0,-1.0,-0.0,-0.0,-1.0,-0.0,-0.0,-1.0,-0.0,-0.0,-1.0,-0.0,0.862,-0.507,-0.0,0.862,-0.507,-0.0,0.862,-0.507,-0.0,0.862,-0.507,-0.0,0.885,0.464,-0.041,0.885,0.464,-0.041,0.885,0.464,-0.041,0.885,0.464,-0.041,-0.018,0.647,-0.762,-0.018,0.647,-0.762,-0.018,0.647,-0.762,-0.018,0.647,-0.762};
			return value;
		}
		private double[] getNormal_6_49_vector_2()
		{
			double[] value = {-0.597,0.303,-0.742,-0.597,0.303,-0.742,-0.597,0.303,-0.742,-0.597,0.303,-0.742,-0.572,-0.363,-0.735,-0.572,-0.363,-0.735,-0.572,-0.363,-0.735,-0.572,-0.363,-0.735,-0.0,-0.677,-0.736,-0.0,-0.677,-0.736,-0.0,-0.677,-0.736,-0.0,-0.677,-0.736,0.584,-0.344,-0.736,0.584,-0.344,-0.736,0.584,-0.344,-0.736,0.584,-0.344,-0.736,0.592,0.312,-0.743,0.592,0.312,-0.743,0.592,0.312,-0.743,0.592,0.312,-0.743,0.012,-0.272,-0.962,0.012,-0.272,-0.962,0.012,-0.272,-0.962,0.012,-0.272,-0.962,0.232,-0.117,-0.966,0.232,-0.117,-0.966,0.232,-0.117,-0.966,0.232,-0.117,-0.966,0.214,0.139,-0.967,0.214,0.139,-0.967,0.214,0.139,-0.967,0.214,0.139,-0.967,0.0,0.255,-0.967,0.0,0.255,-0.967,0.0,0.255,-0.967,0.0,0.255,-0.967,-0.219,0.13,-0.967,-0.219,0.13,-0.967,-0.219,0.13,-0.967,-0.219,0.13,-0.967,-0.23,-0.121,-0.966,-0.23,-0.121,-0.966,-0.23,-0.121,-0.966,-0.23,-0.121,-0.966,-0.008,-0.982,0.19,-0.008,-0.982,0.19,-0.008,-0.982,0.19,-0.008,-0.982,0.19,0.865,-0.432,-0.254,0.865,-0.432,-0.254,0.865,-0.432,-0.254,0.865,-0.432,-0.254,0.767,0.514,-0.384,0.767,0.514,-0.384,0.767,0.514,-0.384,0.767,0.514,-0.384,0.0,0.923,-0.385,0.0,0.923,-0.385,0.0,0.923,-0.385,0.0,0.923,-0.385,-0.793,0.472,-0.385,-0.793,0.472,-0.385,-0.793,0.472,-0.385,-0.793,0.472,-0.385,-0.86,-0.447,-0.246,-0.86,-0.447,-0.246,-0.86,-0.447,-0.246,-0.86,-0.447,-0.246};
			return value;
		}

		/** Large attribute array: Normal vector field, scene-graph level=6, element #45, 504 total numbers made up of 168 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 getNormal_6_45_vector()
		{
			MFVec3f Normal_6_45_vector = new MFVec3f()/*2.finalize*/
				.append(new MFVec3f(getNormal_6_45_vector_1()))
				.append(new MFVec3f(getNormal_6_45_vector_2()));
			return Normal_6_45_vector;
		}
		/** Large attribute array: Normal vector field, scene-graph level=6, element #49, 504 total numbers made up of 168 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 getNormal_6_49_vector()
		{
			MFVec3f Normal_6_49_vector = new MFVec3f()/*2.finalize*/
				.append(new MFVec3f(getNormal_6_49_vector_1()))
				.append(new MFVec3f(getNormal_6_49_vector_2()));
			return Normal_6_49_vector;
		}

	/** 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 Asa 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 Asa().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.Locations.RioDeJaneiro.Asa\" 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.Locations.RioDeJaneiro.Asa self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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