package Savage.AircraftFixedWing.BearRussia;

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.Shape.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> Russian Bomber TY-95 Bear. </p>
 <p> Related links: Catalog page <a href="../../../../AircraftFixedWing/Bear-Russia/BearIndex.html" target="_blank">Bear</a>,  source <a href="../../../../AircraftFixedWing/Bear-Russia/Bear.java">Bear.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="../../../../AircraftFixedWing/Bear-Russia/Bear.x3d">Bear.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Michael Hadley </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 28 September 2000 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 28 November 2019 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> Russian Bomber TY-95 Bear </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="../../../../AircraftFixedWing/Bear-Russia/BearModelingProjectReport.pdf">BearModelingProjectReport.pdf</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> BearModelingProjectReport.doc </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../AircraftFixedWing/Bear-Russia/tu116-3.gif">tu116-3.gif</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../AircraftFixedWing/Bear-Russia/tu95-8.gif">tu95-8.gif</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../AircraftFixedWing/Bear-Russia/tu95-9.gif">tu95-9.gif</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../AircraftFixedWing/Bear-Russia/tu95kd-1.jpg">tu95kd-1.jpg</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../AircraftFixedWing/Bear-Russia/tu95km-2.gif">tu95km-2.gif</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../AircraftFixedWing/Bear-Russia/tu95m5-1.jpg">tu95m5-1.jpg</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../AircraftFixedWing/Bear-Russia/tu95ms-1.jpg">tu95ms-1.jpg</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../AircraftFixedWing/Bear-Russia/tu95ms-2.jpg">tu95ms-2.jpg</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="../../../../AircraftFixedWing/Bear-Russia/tu95rc-7.jpg">tu95rc-7.jpg</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/AircraftFixedWing/Bear-Russia/Bear.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/Bear-Russia/Bear.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> X3D-Edit 3.3, <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> license </i> </td>
			<td> <a href="../../../../AircraftFixedWing/Bear-Russia/../../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 Michael Hadley
 */

public class Bear
{
	/** Default constructor to create this object. */
	public Bear ()
	{
	  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_0)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("Bear.x3d"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Michael Hadley"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("28 September 2000"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("28 November 2019"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("Russian Bomber TY-95 Bear"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("BearModelingProjectReport.pdf"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("BearModelingProjectReport.doc"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("tu116-3.gif"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("tu95-8.gif"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("tu95-9.gif"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("tu95kd-1.jpg"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("tu95km-2.gif"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("tu95m5-1.jpg"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("tu95ms-1.jpg"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("tu95ms-2.jpg"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("tu95rc-7.jpg"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/Bear-Russia/Bear.x3d"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../../license.html")))
  .setScene(new Scene()
    .addComments(" View Points ")
    .addChild(new WorldInfo().setTitle("Bear.x3d"))
    .addChild(new NavigationInfo("Examine"))
    .addChild(new Viewpoint("Side").setDescription("Bear side view").setPosition(-17.0,0.0,50.0))
    .addChild(new Viewpoint("Front").setDescription("Bear front view").setOrientation(0.0,1.0,0.0,1.57).setPosition(25.0,0.0,0.0))
    .addChild(new Viewpoint("Top").setDescription("Bear top view").setOrientation(1.0,0.0,0.0,-1.57).setPosition(-17.0,60.0,0.0))
    .addChild(new Background().setGroundAngle(new double[] {1.309,1.570796}).setGroundColor(new MFColor(new double[] {0.0,0.3,.7,0.0,0.35,0.75,0.0,0.4,0.8})).setSkyAngle(new double[] {1.309,1.571}).setSkyColor(new MFColor(new double[] {0.0,0.3,0.8,0.0,0.5,1.0,1.0,1.0,1.0})))
    .addComments(" Main Transform of Bear ")
    .addChild(new Transform()
      .addChild(new Shape()
        .addComments(" Fuselage of Bear ")
        .setGeometry(new Extrusion("Fuselage").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {0.00,1.30,.494,1.196,.923,.923,1.196,.494,1.30,0.00,1.196,-.494,.923,-.923,.494,-1.196,0.00,-1.30,-.494,-1.196,-.923,-.923,-1.196,-.494,-1.30,-0.0,-1.196,.494,-.923,.923,-.494,1.196,0.00,1.30})).setOrientation(new MFRotation(new double[] {0.0,0.0,1.0,.78,0.0,0.0,1.0,-.785,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0})).setScale(new MFVec2f(new double[] {.05,.05,.5,.3,.6,.4,.7,.5,.8,.6,.9,.7,1.0,.8,1.0,.9,1.0,1.0,1.0,1.0})).setSpine(new MFVec3f(new double[] {-39.1,1.3,0.0,-39.0,1.25,0.0,-36.4,1.2,0.0,-33.8,1.15,0.0,-31.2,1.1,0.0,-28.6,1.05,0.0,-26.0,1.0,0.0,-23.4,1.0,0.0,0.0,1.0,0.0,2.6,1.0,0.0})))
        .setAppearance(new Appearance("plane_color")
          .setMaterial(new Material())))
      .addChild(new Shape()
        .addComments(" Main Wing ")
        .setGeometry(new Extrusion("Wing").setCcw(false).setCreaseAngle(3.14).setCrossSection(new MFVec2f(new double[] {0.00,1.00,-5.2,0.00,4.0,-.5,4.6,-.4,4.8,-.2,4.9,.1,4.9,.3,4.5,.6,4.0,.8,3.0,1.0,1.0,1.1,0.00,1.00})).setOrientation(new MFRotation(new double[] {0.0,0.0,1.0,.6,0.0,0.0,1.0,0.0,0.0,0.0,1.0,-.6})).setScale(new MFVec2f(new double[] {.25,.1,1.0,1.0,.25,.1})).setSpine(new MFVec3f(new double[] {-19.5,.1,23.4,-6.5,.7,0.0,-19.5,.1,-23.4})))
        .setAppearance(new Appearance().setUSE("plane_color")))
      .addChild(new Shape()
        .addComments(" Tail ")
        .setGeometry(new Extrusion("Tail").setCreaseAngle(3.14).setCrossSection(new MFVec2f(new double[] {4.5,0.0,2.0,-.4,0.0,-.5,-3.0,-.4,-4.2,-.3,-4.3,0.0,-4.2,.3,-3.0,.4,0.0,.5,2.0,.4,4.5,0.0})).setOrientation(new MFRotation(new double[] {0.0,0.0,1.0,-.85,0.0,0.0,1.0,-.85,0.0,0.0,1.0,-.60,0.0,0.0,1.0,-.60})).setScale(new MFVec2f(new double[] {1.0,.9,1.0,.9,.7,.9,.3,.9})).setSpine(new MFVec3f(new double[] {-33.2,.98,0.0,-34.0,1.9,0.0,-35.0,2.4,0.0,-38.0,7.2,0.0})))
        .setAppearance(new Appearance().setUSE("plane_color")))
      .addChild(new Shape()
        .addComments(" Stabalizer ")
        .setGeometry(new Extrusion("Stabalizers").setCcw(false).setCreaseAngle(3.14).setCrossSection(new MFVec2f(new double[] {0.00,1.00,-5.2,0.00,4.0,-.5,4.6,-.4,4.8,-.2,4.9,.1,4.9,.3,4.5,.6,4.0,.8,3.0,1.0,1.0,1.1,0.00,1.00})).setOrientation(new MFRotation(new double[] {0.0,0.0,1.0,.6,0.0,0.0,1.0,0.0,0.0,0.0,1.0,-.6})).setScale(new MFVec2f(new double[] {.25,.1,.5,.5,.25,.1})).setSpine(new MFVec3f(new double[] {-40.2,1.75,7.5,-35.0,1.8,0.0,-40.2,1.75,-7.5})))
        .setAppearance(new Appearance().setUSE("plane_color")))
      .addChild(new Shape()
        .addComments(" Nose of Plane ")
        .setGeometry(new Extrusion("nose").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {-.75,0.0,-.698,.494,-.5615,.923,-.347,1.196,0.0,1.3,.494,1.196,.923,.923,1.196,.494,1.3,0.0,1.196,-.494,.923,-.923,.494,-1.196,0.0,-1.3,-.347,-1.196,-.5615,-.923,-.698,-.494,-.75,0.0})).setScale(new MFVec2f(new double[] {1.0,1.0,1.0,1.0,1.0,.92,.68,.62,.37,.31,0.01,0.01})).setSpine(new MFVec3f(new double[] {2.6,1.0,0.0,3.2,1.0,0.0,4.0,1.0,0.0,5.0,1.0,0.0,5.6,1.0,0.0,5.8,1.0,0.0})))
        .setAppearance(new Appearance().setUSE("plane_color")))
      .addChild(new Transform("Gunner_nose").setScale(1.5,1.0,1.4).setTranslation(5.2,.9,0.0)
        .addComments(" Glass portion of nose for gunner ")
        .addChild(new Shape()
          .setGeometry(new Sphere("Gunners_nose").setRadius(.5))
          .setAppearance(new Appearance("glass")
            .setMaterial(new Material().setDiffuseColor(0.1,0.1,0.8)))))
      .addChild(new Shape()
        .addComments(" Glass Portion of Cockpit for pilot ")
        .setGeometry(new Extrusion("cockpit").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {0.0,-1.3,-.494,-1.196,-.923,-.923,-1.196,-.494,-1.3,0.0,-1.196,.494,-.923,.923,-.494,1.196,0.0,1.3,0.0,-1.3})).setScale(new MFVec2f(new double[] {1.0,1.0,.98,.92,.68,.62,.37,.31,0.01,0.01})).setSpine(new MFVec3f(new double[] {2.5,1.0,0.0,2.75,1.0,0.0,3.0,1.0,0.0,3.5,1.0,0.0,4.0,1.0,0.0})))
        .setAppearance(new Appearance().setUSE("glass")))
      .addChild(new Transform("Engine_pod_trans1_").setTranslation(-13.24,.5,11.7)
        .addComments(" Engine Pod # 1 (Leftmost looking towards the nose of plane) Pod 1 defines all elements that are then reused for Pods 2 3 and 4 ")
        .addComments(" Pod 1 defines all elements that are then reused for Pods 2 3 and 4 ")
        .addChild(new Shape()
          .setGeometry(new Extrusion("Engine_pod").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.00,-0.00,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00})).setScale(new MFVec2f(new double[] {.1,.2,.4,.3,.6,.5,.8,.6,.9,.9,1.0,1.0})).setSpine(new MFVec3f(new double[] {0.0,.3,0.0,1.0,.25,0.0,2.0,.2,0.0,3.0,0.0,0.0,4.0,0.0,0.0,7.5,0.0,0.0})))
          .setAppearance(new Appearance().setUSE("plane_color")))
        .addChild(new Transform("Engine_Prop_Base").setTranslation(7.5,0.0,0.0)
          .addChild(new Shape()
            .setGeometry(new Extrusion("Engine_inside_prop_base").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.00,-0.00,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00})).setScale(new MFVec2f(new double[] {1.0,1.0,.9,.9,.85,.55})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,.3,0.0,0.0,.6,0.0,0.0})))
            .setAppearance(new Appearance("prop_base")
              .setMaterial(new Material().setDiffuseColor(0.4,0.4,0.4))))
          .addChild(new Shape()
            .setGeometry(new Extrusion("Engine_outside_prop_base").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.00,-0.00,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00})).setScale(new MFVec2f(new double[] {.8,.8,.5,.5,.1,.1})).setSpine(new MFVec3f(new double[] {.61,0.0,0.0,1.3,0.0,0.0,1.9,0.0,0.0})))
            .setAppearance(new Appearance().setUSE("prop_base")))
          .addChild(new Shape()))
        .addChild(new Group()
          .addComments(" Small Prop blades Group 1 - includes all small (front) prop blades. Defined here and reused for each pod. ")
          .addChild(new Transform().setRotation(1.0,0.0,0.0,.785).setTranslation(8.2,0.0,0.0)
            .addChild(new Transform()
              .addChild(new Shape()
                .setGeometry(new Extrusion("small_props").setCreaseAngle(3.14).setCrossSection(new MFVec2f(new double[] {-1.9,0.0,-1.8,-.1,-1.5,-.2,-1.2,-.3,0.0,-.15,0.0,.15,-1.2,.3,-1.5,.2,-1.8,.1,-1.9,0.0})).setOrientation(new MFRotation(new double[] {1.0,0.0,0.0,.48,1.0,0.0,0.0,.49,1.0,0.0,0.0,.5})).setScale(new MFVec2f(new double[] {1.0,1.0,1.0,1.0,1.0,1.0})).setSolid(false).setSpine(new MFVec3f(new double[] {.295,0.0,0.0,.3,0.0,0.0,.305,0.0,0.0})))
                .setAppearance(new Appearance("props")
                  .setMaterial(new Material().setDiffuseColor(.1,.1,.1).setShininess(.7)))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("small_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,3.14)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("small_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,4.71)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("small_props"))
                .setAppearance(new Appearance().setUSE("props"))))))
        .addChild(new Group()
          .addComments(" Large Prop blades Group 1 - includes all large (rear) prop blades. Defined here and reused for each pod. ")
          .addChild(new Transform().setTranslation(7.5,0.0,0.0)
            .addChild(new Transform()
              .addChild(new Shape()
                .setGeometry(new Extrusion("big_props").setCreaseAngle(3.14).setCrossSection(new MFVec2f(new double[] {-2.5,0.0,-2.45,-.1,-2.2,-.2,-1.2,-.3,0.0,-.15,0.0,.15,-1.2,.3,-2.2,.2,-2.45,.1,-2.5,0.0})).setOrientation(new MFRotation(new double[] {1.0,0.0,0.0,.48,1.0,0.0,0.0,.49,1.0,0.0,0.0,.5})).setScale(new MFVec2f(new double[] {1.0,1.0,1.0,1.0,1.0,1.0})).setSolid(false).setSpine(new MFVec3f(new double[] {.295,0.0,0.0,.3,0.0,0.0,.305,0.0,0.0})))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("big_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,3.14)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("big_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,4.71)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("big_props"))
                .setAppearance(new Appearance().setUSE("props")))))))
      .addChild(new Transform("Engine_pod_trans_2_").setTranslation(-9.94,.8,4.9)
        .addChild(new Shape()
          .setGeometry(new Extrusion().setUSE("Engine_pod"))
          .setAppearance(new Appearance().setUSE("plane_color")))
        .addChild(new Shape()
          .setGeometry(new Extrusion("fuel_pod_2").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.00,-0.00,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00})).setScale(new MFVec2f(new double[] {.2,.1,.8,.7,.8,.8,.8,.8,.8,.7,.4,.3,.3,.2})).setSpine(new MFVec3f(new double[] {-7.5,.15,0.0,-4.0,.15,0.0,-3.0,.15,0.0,-2.0,.15,0.0,-1.5,.15,0.0,0.0,.15,0.0,.2,.15,0.0})))
          .setAppearance(new Appearance().setUSE("plane_color")))
        .addChild(new Transform("Engine_Prop_2").setTranslation(7.5,0.0,0.0)
          .addChild(new Shape()
            .setGeometry(new Extrusion("Engine_inside_prop_2").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.00,-0.00,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00})).setScale(new MFVec2f(new double[] {1.0,1.0,.9,.9,.85,.55})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,.3,0.0,0.0,.6,0.0,0.0})))
            .setAppearance(new Appearance().setUSE("prop_base")))
          .addChild(new Shape()
            .setGeometry(new Extrusion("Engine_outside_prop_2").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.00,-0.00,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00})).setScale(new MFVec2f(new double[] {.8,.8,.5,.5,.1,.1})).setSpine(new MFVec3f(new double[] {.61,0.0,0.0,1.3,0.0,0.0,1.9,0.0,0.0})))
            .setAppearance(new Appearance().setUSE("prop_base"))))
        .addChild(new Group()
          .addComments(" Large Prop blades Group 2 ")
          .addChild(new Transform().setTranslation(7.5,0.0,0.0)
            .addChild(new Transform()
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("big_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("big_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,3.14)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("big_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,4.71)
              .addChild(new Shape()
                .setGeometry(new Extrusion("props_1a").setCreaseAngle(3.14).setCrossSection(new MFVec2f(new double[] {-2.5,0.0,-2.45,-.1,-2.2,-.2,-1.2,-.3,0.0,-.15,0.0,.15,-1.2,.3,-2.2,.2,-2.45,.1,-2.5,0.0})).setOrientation(new MFRotation(new double[] {1.0,0.0,0.0,.48,1.0,0.0,0.0,.49,1.0,0.0,0.0,.5})).setScale(new MFVec2f(new double[] {1.0,1.0,1.0,1.0,1.0,1.0})).setSolid(false).setSpine(new MFVec3f(new double[] {.295,0.0,0.0,.3,0.0,0.0,.305,0.0,0.0})))
                .setAppearance(new Appearance().setUSE("props"))))))
        .addChild(new Group()
          .addComments(" Small Prop blades Group 2 ")
          .addChild(new Transform().setRotation(1.0,0.0,0.0,.785).setTranslation(8.2,0.0,0.0)
            .addChild(new Transform()
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("small_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("small_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,3.14)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("small_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,4.71)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("small_props"))
                .setAppearance(new Appearance().setUSE("props")))))))
      .addChild(new Transform("Engine_pod_trans_3_").setTranslation(-9.94,.8,-4.9)
        .addChild(new Shape()
          .setGeometry(new Extrusion("Engine_pod_3").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.00,-0.00,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00})).setScale(new MFVec2f(new double[] {.1,.2,.4,.3,.6,.5,.8,.6,.9,.9,1.0,1.0})).setSpine(new MFVec3f(new double[] {0.0,.3,0.0,1.0,.25,0.0,2.0,.2,0.0,3.0,0.0,0.0,4.0,0.0,0.0,7.5,0.0,0.0})))
          .setAppearance(new Appearance().setUSE("plane_color")))
        .addChild(new Shape()
          .setGeometry(new Extrusion("fuel_pod_3").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.00,-0.00,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00})).setScale(new MFVec2f(new double[] {.2,.1,.8,.7,.8,.8,.8,.8,.8,.7,.4,.3,.3,.2})).setSpine(new MFVec3f(new double[] {-7.5,.15,0.0,-4.0,.15,0.0,-3.0,.15,0.0,-2.0,.15,0.0,-1.5,.15,0.0,0.0,.15,0.0,.2,.15,0.0})))
          .setAppearance(new Appearance().setUSE("plane_color")))
        .addChild(new Transform("Engine_Prop_3").setTranslation(7.5,0.0,0.0)
          .addChild(new Shape()
            .setGeometry(new Extrusion("Engine_inside_prop_3").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.00,-0.00,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00})).setScale(new MFVec2f(new double[] {1.0,1.0,.9,.9,.85,.55})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,.3,0.0,0.0,.6,0.0,0.0})))
            .setAppearance(new Appearance().setUSE("prop_base")))
          .addChild(new Shape()
            .setGeometry(new Extrusion("Engine_outside_prop_3").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.00,-0.00,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00})).setScale(new MFVec2f(new double[] {.8,.8,.5,.5,.1,.1})).setSpine(new MFVec3f(new double[] {.61,0.0,0.0,1.3,0.0,0.0,1.9,0.0,0.0})))
            .setAppearance(new Appearance().setUSE("prop_base"))))
        .addChild(new Group()
          .addComments(" Large Prop blades Group 3 ")
          .addChild(new Transform().setTranslation(7.5,0.0,0.0)
            .addChild(new Transform()
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("big_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("big_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,3.14)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("big_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,4.71)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("big_props"))
                .setAppearance(new Appearance().setUSE("props"))))))
        .addChild(new Group()
          .addComments(" Small Prop blades Group 3 ")
          .addChild(new Transform().setRotation(1.0,0.0,0.0,.785).setTranslation(8.2,0.0,0.0)
            .addChild(new Transform()
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("small_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("small_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,3.14)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("small_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,4.71)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("small_props"))
                .setAppearance(new Appearance().setUSE("props")))))))
      .addChild(new Transform("Engine_pod_trans_4").setTranslation(-13.24,.5,-11.7)
        .addChild(new Shape()
          .setGeometry(new Extrusion("Engine_pod_4").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.00,-0.00,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00})).setScale(new MFVec2f(new double[] {.1,.2,.4,.3,.6,.5,.8,.6,.9,.9,1.0,1.0})).setSpine(new MFVec3f(new double[] {0.0,.3,0.0,1.0,.25,0.0,2.0,.2,0.0,3.0,0.0,0.0,4.0,0.0,0.0,7.5,0.0,0.0})))
          .setAppearance(new Appearance().setUSE("plane_color")))
        .addChild(new Transform("Engine_Props_4").setTranslation(7.5,0.0,0.0)
          .addChild(new Shape()
            .setGeometry(new Extrusion("Engine_inside_prop_4").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.00,-0.00,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00})).setScale(new MFVec2f(new double[] {1.0,1.0,.9,.9,.85,.55})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,.3,0.0,0.0,.6,0.0,0.0})))
            .setAppearance(new Appearance().setUSE("prop_base")))
          .addChild(new Shape()
            .setGeometry(new Extrusion("Engine_outside_prop_4").setCreaseAngle(2.5).setCrossSection(new MFVec2f(new double[] {1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.00,-0.00,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00})).setScale(new MFVec2f(new double[] {.8,.8,.5,.5,.1,.1})).setSpine(new MFVec3f(new double[] {.61,0.0,0.0,1.3,0.0,0.0,1.9,0.0,0.0})))
            .setAppearance(new Appearance().setUSE("prop_base"))))
        .addChild(new Group()
          .addComments(" Large Prop blades Group 4 ")
          .addChild(new Transform().setTranslation(7.5,0.0,0.0)
            .addChild(new Transform()
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("big_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("big_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,3.14)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("big_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,4.71)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("big_props"))
                .setAppearance(new Appearance().setUSE("props"))))))
        .addChild(new Group()
          .addComments(" Small Prop blades Group 4 ")
          .addChild(new Transform().setRotation(1.0,0.0,0.0,.785).setTranslation(8.2,0.0,0.0)
            .addChild(new Transform()
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("small_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("small_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,3.14)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("small_props"))
                .setAppearance(new Appearance().setUSE("props"))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,4.71)
              .addChild(new Shape()
                .setGeometry(new Extrusion().setUSE("small_props"))
                .setAppearance(new Appearance().setUSE("props")))))))));
            }
            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

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

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