package Savage.Locations.PortHuenemeCalifornia;

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

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> Basic layout of pier structure at Port Hueneme California. </p>
 <p> Related links: Catalog page <a href="../../../../Locations/PortHuenemeCalifornia/PortHuenemePiersIndex.html" target="_blank">PortHuenemePiers</a>,  source <a href="../../../../Locations/PortHuenemeCalifornia/PortHuenemePiers.java">PortHuenemePiers.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/PortHuenemeCalifornia/PortHuenemePiers.x3d">PortHuenemePiers.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> Basic layout of pier structure at Port Hueneme California. </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> James Harney </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 29 January 2002 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 28 January 2024 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> NIMA Chart 18725 Port Hueneme to Santa Barbara </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="http://www.mapquest.com" target="_blank">http://www.mapquest.com</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/PortHuenemeCalifornia/PortHuenemePiers.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/Locations/PortHuenemeCalifornia/PortHuenemePiers.x3d</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> license </i> </td>
			<td> <a href="../../../../Locations/PortHuenemeCalifornia/../../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 James Harney
 */

public class PortHuenemePiers
{
	/** Default constructor to create this object. */
	public PortHuenemePiers ()
	{
	  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("PortHuenemePiers.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("Basic layout of pier structure at Port Hueneme California."))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("James Harney"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("29 January 2002"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("28 January 2024"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("NIMA Chart 18725 Port Hueneme to Santa Barbara"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("http://www.mapquest.com"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Savage/Locations/PortHuenemeCalifornia/PortHuenemePiers.x3d"))
    .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_LICENSE    ).setContent("../../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("PortHuenemePiers.x3d"))
    .addChild(new ExternProtoDeclare("ViewPositionOrientation").setName("ViewPositionOrientation").setAppinfo("ViewPositionOrientation provides provides console output of local position and orientation as user navigates").setUrl(new String[] {"../../../Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d#ViewPositionOrientation","https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d#ViewPositionOrientation","../../../Savage/Tools/Authoring/ViewPositionOrientationPrototype.wrl#ViewPositionOrientation","https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/ViewPositionOrientationPrototype.wrl#ViewPositionOrientation"})
      .addField(new field().setName("enabled").setType(field.TYPE_SFBOOL).setAccessType(field.ACCESSTYPE_INPUTOUTPUT).setAppinfo("Whether or not ViewPositionOrientation sends output to console."))
      .addField(new field().setName("traceEnabled").setType(field.TYPE_SFBOOL).setAccessType(field.ACCESSTYPE_INITIALIZEONLY).setAppinfo("Output internal trace messages for debugging this node - developer use only can be ignored."))
      .addField(new field().setName("set_traceEnabled").setType(field.TYPE_SFBOOL).setAccessType(field.ACCESSTYPE_INPUTONLY).setAppinfo("Ability to turn output tracing on/off at runtime."))
      .addField(new field().setName("position_changed").setType(field.TYPE_SFVEC3F).setAccessType(field.ACCESSTYPE_OUTPUTONLY).setAppinfo("Output local position."))
      .addField(new field().setName("orientation_changed").setType(field.TYPE_SFROTATION).setAccessType(field.ACCESSTYPE_OUTPUTONLY).setAppinfo("Output local orientation."))
      .addField(new field().setName("outputViewpointString").setType(field.TYPE_MFSTRING).setAccessType(field.ACCESSTYPE_OUTPUTONLY).setAppinfo("MFString value of new Viewpoint")))
    .addChild(new Background().setGroundAngle(new double[] {1.309,1.570796}).setGroundColor(new MFColor(new double[] {0.1,0.1,0.0,0.4,0.25,0.2,0.6,0.6,0.6})).setSkyAngle(new double[] {1.309,1.571}).setSkyColor(new MFColor(new double[] {0.0,0.2,0.7,0.0,0.5,1.0,1.0,1.0,1.0})))
    .addChild(new NavigationInfo().setAvatarSize(new double[] {2.0,1.6,.75}).setSpeed(10).setType(new String[] {"EXAMINE","FLY","ANY"}).setVisibilityLimit(8000))
    .addChild(new Viewpoint().setDescription("View Of Piers").setOrientation(.542,.653,.529,4.2716).setPosition(221.4,1904.9,668.0))
    .addChild(new DirectionalLight().setAmbientIntensity(.3).setDirection(.8,-.2,-.2))
    .addChild(new ProtoInstance("ViewPositionOrientation", "ConsoleOutputViewPositionOrientation").setContainerField("children")
      .addFieldValue(new fieldValue().setName("enabled").setValue(true)))
    .addChild(new Transform("WaterTransform").setTranslation(0.0,-2.0,0.0)
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(0.0,.5686,.796)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,0,-1})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {-2000.0,0.0,-2000.0,-2000.0,0.0,2000.0,1250.0,0.0,2000.0,1250.0,0.0,-2000.0}))))))
    .addChild(new Transform("PierTransform").setTranslation(0.0,1.0,0.0)
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(.6509,.6392,.5726)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,36,38,40,42,44,3,4,5,6,7,8,9,10,11,23,22,21,20,19,18,17,16,15,45,43,41,39,37,14,13,12,-1,23,24,21,22,23,-1,21,20,19,25,24,21,-1,19,18,17,19,-1,17,25,19,17,-1,15,25,17,16,15,-1,37,26,12,13,14,37,-1,23,27,28,29,23,-1,23,11,32,33,34,29,28,27,23,-1,29,24,30,34,29,-1,24,25,35,30,24,-1,25,26,31,35,25,-1,26,12,0,31,26,-1,37,26,39,37,-1,39,41,43,45,39,-1,39,25,15,45,39,-1})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {0.0,-11.0,0.0,340.0,-11.0,260.0,790.0,-11.0,260.0,880.0,-11.0,460.0,700.0,-11.0,460.0,700.0,-11.0,660.0,360.0,-11.0,660.0,360.0,-11.0,1020.0,300.0,-11.0,1020.0,220.0,-11.0,940.0,220.0,-11.0,300.0,-20.0,-11.0,100.0,0.0,3.0,0.0,340.0,3.0,260.0,790.0,3.0,260.0,880.0,3.0,460.0,700.0,3.0,460.0,700.0,3.0,660.0,360.0,3.0,660.0,360.0,3.0,1020.0,300.0,3.0,1020.0,220.0,3.0,940.0,220.0,3.0,300.0,-20.0,3.0,100.0,-20.0,3.0,1100.0,900.0,3.0,1100.0,900.0,3.0,0.0,-220.0,3.0,190.0,-150.0,3.0,400.0,-20.0,3.0,600.0,-20.0,-11.0,1100.0,900.0,-11.0,0.0,-220.0,-11.0,190.0,-150.0,-11.0,400.0,-20.0,-11.0,600.0,900.0,-11.0,1100.0,880.0,-11.0,150.0,880.0,3.0,150.0,900.0,-11.0,190.0,900.0,3.0,190.0,850.0,-11.0,260.0,850.0,3.0,260.0,850.0,-11.0,290.0,850.0,3.0,290.0,880.0,-11.0,290.0,880.0,3.0,290.0}))))))
    .addChild(new Transform("OtherGeo").setTranslation(0.0,-1.0,0.0)
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(.4745,.4667,.3804)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,5,6,7,8,9,10,11,12,0,-1,0,1,14,13,0,-1,1,2,15,14,-1,2,3,16,15,-1,3,4,17,16,3,-1,4,5,18,17,4,-1,5,6,19,18,5,-1,6,7,20,19,6,-1,7,8,21,20,7,-1,8,9,22,21,8,-1,9,10,23,22,9,-1,10,11,24,23,10,-1,11,12,25,24,11,-1,26,12,27,28,29,30,26,-1,31,24,32,33,34,35,31,-1,26,12,24,31,26,-1,12,27,32,24,12,-1,27,28,33,32,27,-1,28,29,34,33,28,-1,29,30,35,34,29,-1})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {0.0,3.0,0.0,50.0,3.0,-125.0,50.0,3.0,-215.0,50.0,3.0,-300.0,-50.0,3.0,-375.0,-250.0,3.0,-450.0,-100.0,3.0,-525.0,0.0,3.0,-650.0,-25.0,3.0,-500.0,0.0,3.0,-475.0,150.0,3.0,-525.0,1250.0,3.0,-1220.0,1250.0,3.0,0.0,0.0,-11.0,0.0,50.0,-11.0,-125.0,50.0,-11.0,-215.0,50.0,-11.0,-300.0,-50.0,-11.0,-375.0,-250.0,-11.0,-450.0,-100.0,-11.0,-525.0,0.0,-11.0,-650.0,-25.0,-11.0,-500.0,0.0,-11.0,-475.0,150.0,-11.0,-525.0,1250.0,-11.0,-1220.0,1250.0,-11.0,0.0,900.0,3.0,0.0,1250.0,3.0,1500.0,-20.0,3.0,1500.0,-20.0,3.0,1100.0,900.0,3.0,1100.0,900.0,-11.0,0.0,1250.0,-11.0,1500.0,-20.0,-11.0,1500.0,-20.0,-11.0,1100.0,900.0,-11.0,1100.0,1250.0,-11.0,0.0,1250.0,3.0,0.0,1250.0,-11.0,-30.0,1250.0,3.0,30.0}))))))
    .addChild(new Transform("Warehouse1")
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(1.0,1.0,1.0)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,6,7,0,-1,1,2,5,6,1,-1,2,3,4,5,2,-1,7,6,5,4,7,-1,0,7,4,3,0,-1})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {770.0,3.0,485.0,770.0,3.0,585.0,740.0,3.0,585.0,740.0,3.0,485.0,740.0,8.0,485.0,740.0,8.0,585.0,770.0,8.0,585.0,770.0,8.0,485.0,748.0,3.0,485.0,749.0,3.0,485.0,749.0,5.0,485.0,748.0,5.0,485.0}))))))
    .addChild(new Transform("Warehouse2")
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(1.0,1.0,1.0)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,6,7,0,-1,1,2,5,6,1,-1,2,3,4,5,2,-1,7,6,5,4,7,-1,3,8,11,10,9,0,7,4,3,-1})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {840.0,3.0,475.0,840.0,3.0,525.0,820.0,3.0,525.0,820.0,3.0,475.0,820.0,8.0,475.0,820.0,8.0,525.0,840.0,8.0,525.0,840.0,8.0,475.0,828.0,3.0,475.0,829.0,3.0,475.0,829.0,5.0,475.0,828.0,5.0,475.0}))))))
    .addChild(new Transform("Warehouse3")
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(1.0,1.0,1.0)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,6,7,0,-1,1,2,5,6,1,-1,2,3,4,5,2,-1,7,6,5,4,7,-1,0,7,4,3,0,-1})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {565.0,3.0,705.0,565.0,3.0,735.0,480.0,3.0,735.0,480.0,3.0,705.0,480.0,8.0,705.0,480.0,8.0,735.0,565.0,8.0,735.0,565.0,8.0,705.0}))))))
    .addChild(new Transform("Warehouse4")
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(1.0,1.0,1.0)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,6,7,0,-1,1,2,5,6,1,-1,2,3,4,5,2,-1,7,6,5,4,7,-1,0,7,4,3,0,-1})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {480.0,3.0,760.0,480.0,3.0,790.0,400.0,3.0,790.0,400.0,3.0,760.0,400.0,8.0,760.0,400.0,8.0,790.0,480.0,8.0,790.0,480.0,8.0,760.0}))))))
    .addChild(new Transform("Warehouse5")
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(1.0,1.0,1.0)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,6,7,0,-1,1,2,5,6,1,-1,2,3,4,5,2,-1,7,6,5,4,7,-1,0,7,4,3,0,-1})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {200.0,3.0,870.0,200.0,3.0,920.0,170.0,3.0,920.0,170.0,3.0,870.0,170.0,8.0,870.0,170.0,8.0,920.0,200.0,8.0,920.0,200.0,8.0,870.0}))))))
    .addChild(new Transform("Warehouse6")
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(1.0,1.0,1.0)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,6,7,0,-1,1,2,5,6,1,-1,2,3,4,5,2,-1,7,6,5,4,7,-1,0,7,4,3,0,-1})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {190.0,3.0,715.0,190.0,3.0,810.0,165.0,3.0,810.0,165.0,3.0,715.0,165.0,8.0,715.0,165.0,8.0,810.0,190.0,8.0,810.0,190.0,8.0,715.0}))))))
    .addChild(new Transform("Warehouse7")
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(1.0,1.0,1.0)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,6,7,0,-1,1,2,5,6,1,-1,2,3,4,5,2,-1,7,6,5,4,7,-1,0,7,4,3,0,-1})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {200.0,3.0,540.0,200.0,3.0,690.0,140.0,3.0,690.0,140.0,3.0,540.0,140.0,8.0,540.0,140.0,8.0,690.0,200.0,8.0,690.0,200.0,8.0,540.0}))))))
    .addChild(new Transform("Warehouse8")
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(1.0,1.0,1.0)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,6,7,0,-1,1,2,5,6,1,-1,2,3,4,5,2,-1,7,6,5,4,7,-1,0,7,4,3,0,-1})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {200.0,3.0,312.0,200.0,3.0,530.0,140.0,3.0,530.0,140.0,3.0,312.0,140.0,8.0,312.0,140.0,8.0,530.0,200.0,8.0,530.0,200.0,8.0,312.0}))))))
    .addChild(new Transform("Warehouse9")
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(1.0,1.0,1.0)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,6,7,0,-1,1,2,5,6,1,-1,2,3,4,5,2,-1,7,6,5,4,7,-1,0,7,4,3,0,-1})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {770.0,3.0,210.0,770.0,3.0,240.0,540.0,3.0,240.0,540.0,3.0,210.0,540.0,8.0,210.0,540.0,8.0,240.0,770.0,8.0,240.0,770.0,8.0,210.0}))))))
    .addChild(new Transform("Warehouse10")
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(1.0,1.0,1.0)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,6,7,0,-1,1,2,5,6,1,-1,2,3,4,5,2,-1,7,6,5,4,7,-1,0,7,4,3,0,-1})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {500.0,3.0,210.0,500.0,3.0,240.0,360.0,3.0,240.0,360.0,3.0,210.0,360.0,8.0,210.0,360.0,8.0,240.0,500.0,8.0,240.0,500.0,8.0,210.0}))))))
    .addChild(new Transform("Warehouse11")
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(1.0,1.0,1.0)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,6,7,0,-1,1,2,5,6,1,-1,2,3,4,5,2,-1,7,6,5,4,7,-1,0,7,4,3,0,-1})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {350.0,3.0,210.0,350.0,3.0,240.0,335.0,3.0,240.0,335.0,3.0,210.0,335.0,8.0,210.0,335.0,8.0,240.0,350.0,8.0,240.0,350.0,8.0,210.0}))))))
    .addChild(new Transform("Warehouse12")
      .addChild(new Shape()
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(1.0,1.0,1.0)))
        .setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(new int[] {0,1,6,7,0,-1,1,2,5,6,1,-1,2,3,4,5,2,-1,7,6,5,4,7,-1,0,7,4,3,0,-1})
          .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {640.0,3.0,110.0,640.0,3.0,150.0,350.0,3.0,150.0,350.0,3.0,110.0,350.0,12.0,110.0,350.0,12.0,150.0,640.0,12.0,150.0,640.0,12.0,110.0})))))));
            }
            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 PortHuenemePiers 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 PortHuenemePiers().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.PortHuenemeCalifornia.PortHuenemePiers\" 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.PortHuenemeCalifornia.PortHuenemePiers self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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