<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">package X3dForWebAuthors.KelpForestExhibit;

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

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * &lt;p&gt; One simple Fish with three levels of detail. &lt;/p&gt;
 &lt;p&gt; Related links: Catalog page &lt;a href="../../../KelpForestExhibit/FishIndex.html" target="_blank"&gt;Fish&lt;/a&gt;,  source &lt;a href="../../../KelpForestExhibit/Fish.java"&gt;Fish.java&lt;/a&gt;, &lt;a href="https://www.web3d.org/x3d/content/examples/X3dResources.html" target="_blank"&gt;X3D Resources&lt;/a&gt;, &lt;a href="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html" target="_blank"&gt;X3D Scene Authoring Hints&lt;/a&gt;, and &lt;a href="https://www.web3d.org/x3d/content/X3dTooltips.html" target="_blank"&gt;X3D Tooltips&lt;/a&gt;. &lt;/p&gt;
	&lt;table style="color:black; border:0px solid; border-spacing:10px 0px;"&gt;
        &lt;caption&gt;Scene Meta Information&lt;/caption&gt;
		&lt;tr style="background-color:silver; border-color:silver;"&gt;
			&lt;td style="text-align:center; padding:10px 0px;"&gt;&lt;i&gt;meta tags&lt;/i&gt;&lt;/td&gt;
			&lt;td style="text-align:left;   padding:10px 0px;"&gt;&amp;nbsp; Document Metadata &lt;/td&gt;
		&lt;/tr&gt;

		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; title &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; &lt;a href="../../../KelpForestExhibit/Fish.x3d"&gt;Fish.x3d&lt;/a&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; description &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; One simple Fish with three levels of detail. &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; creator &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; Stewart Liles, Sean Hynes &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; created &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; 25 September 1998 &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; modified &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; 20 October 2019 &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; reference &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; &lt;a href="https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/KelpForestDesignPaperWeb3dSymposiumFebruary2002.pdf" target="_blank"&gt;https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/KelpForestDesignPaperWeb3dSymposiumFebruary2002.pdf&lt;/a&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; reference &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; &lt;a href="https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/Teaching3d-KelpForestCaseStudy.pdf" target="_blank"&gt;https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/Teaching3d-KelpForestCaseStudy.pdf&lt;/a&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; accessRights &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; All content has permissions for free use. Please provide credit to the Naval Postgraduate School (NPS) Modeling Virtual Environments and Simulation (MOVES) Institute. &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; identifier &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; &lt;a href="https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/Fish.x3d" target="_blank"&gt;https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/Fish.x3d&lt;/a&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; generator &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; X3D-Edit 3.3, &lt;a href="https://savage.nps.edu/X3D-Edit" target="_blank"&gt;https://savage.nps.edu/X3D-Edit&lt;/a&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; license &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; &lt;a href="../../../KelpForestExhibit/../license.html"&gt;../license.html&lt;/a&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="background-color:silver; border-color:silver;"&gt;
			&lt;td style="text-align:center;" colspan="2"&gt;  &amp;nbsp; &lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;

	&lt;p&gt;
		This program uses the
		&lt;a href="https://www.web3d.org/specifications/java/X3DJSAIL.html" target="_blank"&gt;X3D Java Scene Access Interface Library (X3DJSAIL)&lt;/a&gt;.
		It has been produced using the 
		&lt;a href="https://www.web3d.org/x3d/stylesheets/X3dToJava.xslt" target="_blank"&gt;X3dToJava.xslt&lt;/a&gt;
		stylesheet
	       (&lt;a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/X3dToJava.xslt" target="_blank"&gt;version control&lt;/a&gt;)
                which is used to create Java source code from an original &lt;code&gt;.x3d&lt;/code&gt; model.
	&lt;/p&gt;

	* @author Stewart Liles, Sean Hynes
 */

public class Fish
{
	/** Default constructor to create this object. */
	public Fish ()
	{
	  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_3)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("Fish.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("One simple Fish with three levels of detail."))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Stewart Liles, Sean Hynes"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("25 September 1998"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("20 October 2019"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/KelpForestDesignPaperWeb3dSymposiumFebruary2002.pdf"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/Teaching3d-KelpForestCaseStudy.pdf"))
    .addMeta(new meta().setName(meta.NAME_ACCESSRIGHTS).setContent("All content has permissions for free use. Please provide credit to the Naval Postgraduate School (NPS) Modeling Virtual Environments and Simulation (MOVES) Institute."))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/Fish.x3d"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../license.html")))
  .setScene(new Scene()
    .addChild(new Group("Viewpoints")
      .addChild(new Viewpoint().setDescription("Fish High Resolution"))
      .addChild(new Viewpoint().setDescription("Fish Medium Resolution").setPosition(0.0,0.0,35.0))
      .addChild(new Viewpoint().setDescription("Fish Low Resolution").setPosition(0.0,0.0,65.0))
      .addChild(new Viewpoint().setDescription("Fish No Resolution").setPosition(0.0,0.0,105.0)))
    .addComments(" Align fish with X axis ")
    .addChild(new Transform().setRotation(0.0,1.0,0.0,-1.57)
      .addChild(new LOD("FishLOD").setRange(new double[] {30.0,60.0,100.0})
        .addComments(" Three levels of visible detail, then disappears. ")
        .addChild(new Group("Near")
          .addComments(" High resolution fish. ")
          .addChild(new Transform("Fish1").setScale(0.1,0.1,0.1)
            .addChild(new Shape()
              .setAppearance(new Appearance("FishAppear")
                .setMaterial(new Material().setDiffuseColor(0.6,0.65,0.7).setShininess(0.8))
                .setTexture(new ImageTexture("FishJPG").setUrl(new String[] {"Fish2Patch.jpg","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/Fish2Patch.jpg"})))
              .setGeometry(new IndexedFaceSet("FishIndex").setDEF("FishIndex").setCcw(false).setCreaseAngle(3.14).setSolid(false).setCoordIndex(new int[] {0,2,1,-1,0,3,2,-1,0,4,3,-1,0,5,4,-1,0,1,8,-1,0,8,7,-1,0,7,6,-1,0,6,5,-1,1,2,10,9,-1,2,3,11,10,-1,3,4,12,11,-1,4,5,13,12,-1,1,9,16,8,-1,8,16,15,7,-1,7,15,14,6,-1,6,14,13,5,-1,9,10,18,17,-1,10,11,19,18,-1,11,12,20,19,-1,12,13,21,20,-1,9,17,24,16,-1,16,24,23,15,-1,15,23,22,14,-1,14,22,21,13,-1,17,18,26,25,-1,18,19,27,26,-1,19,20,28,27,-1,20,21,29,28,-1,17,25,32,24,-1,24,32,31,23,-1,23,31,30,22,-1,22,30,29,21,-1,25,26,34,33,-1,26,27,35,34,-1,27,28,36,35,-1,28,29,37,36,-1,25,33,40,32,-1,32,40,39,31,-1,31,39,38,30,-1,30,38,37,29,-1,33,34,41,-1,34,35,41,-1,35,42,41,-1,35,43,42,-1,36,43,35,-1,36,37,43,-1,33,41,40,-1,40,41,39,-1,39,41,42,-1,39,42,43,-1,39,43,37,-1,38,43,37,-1})
                .setCoord(new Coordinate("Fish").setPoint(new MFVec3f(new double[] {0.0,0.0,-1.5,0.0,0.5,-1.0,-0.12,0.25,-1.0,-0.25,0.0,-1.0,-0.12,-0.25,-1.0,0.0,-0.5,-1.0,0.12,-0.25,-1.0,0.25,0.0,-1.0,0.12,0.25,-1.0,0.0,1.0,0.0,-0.25,0.5,0.0,-0.5,0.0,0.0,-0.25,-0.5,0.0,0.0,-1.0,0.0,0.25,-0.5,0.0,0.5,0.0,0.0,0.25,0.5,0.0,0.0,0.88,0.9,-0.19,0.44,0.9,-0.37,0.0,0.9,-0.19,-0.44,0.9,0.0,-0.88,0.9,0.19,-0.44,0.9,0.37,0.0,0.9,0.19,0.44,0.9,0.0,0.75,1.75,-0.12,0.35,1.75,-0.25,0.0,1.75,-0.12,-0.35,1.75,0.0,-0.75,1.75,0.12,-0.35,1.75,0.25,0.0,1.75,0.12,0.35,1.75,0.0,0.5,2.5,-0.05,0.25,2.5,-0.1,0.0,2.5,-0.05,-0.25,2.5,0.0,-0.5,2.5,0.05,-0.25,2.5,0.1,0.0,2.5,0.05,0.25,2.5,0.0,1.25,3.25,0.0,0.0,3.0,0.0,-1.25,3.25})))))))
        .addChild(new Group("Medium")
          .addComments(" Medium resolution fish. ")
          .addChild(new Transform("Fish2").setScale(0.1,0.1,0.1)
            .addChild(new Shape()
              .setAppearance(new Appearance().setUSE("FishAppear"))
              .setGeometry(new IndexedFaceSet().setCcw(false).setCoordIndex(new int[] {0,2,3,-1,0,3,4,-1,0,4,1,-1,0,1,2,-1,1,4,5,-1,2,1,5,-1,3,5,4,-1,3,2,5,-1,5,7,6,-1,5,6,7,-1})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {0.0,0.0,-2.0,0.0,-1.25,0.0,0.5,0.0,0.0,0.0,1.25,0.0,-0.5,0.0,0.0,0.0,0.0,2.25,0.0,1.25,3.0,0.0,-1.25,3.0})))))))
        .addChild(new Group("Far")
          .addComments(" Low resolution fish. ")
          .addChild(new Transform("Fish3").setScale(0.1,0.1,0.1)
            .addChild(new Shape()
              .setAppearance(new Appearance()
                .setMaterial(new Material().setDiffuseColor(0.6,0.9,0.9)))
              .setGeometry(new IndexedFaceSet().setCcw(false).setCreaseAngle(1.57).setCoordIndex(new int[] {0,2,3,-1,0,3,4,-1,0,4,1,-1,0,1,2,-1,1,4,5,-1,2,1,5,-1,3,5,4,-1,3,2,5,-1,5,7,6,-1,5,6,7,-1})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {0.0,0.0,-2.0,0.0,-1.25,0.0,0.3,0.0,0.0,0.0,1.25,0.0,-0.3,0.0,0.0,0.0,0.0,2.25,0.0,1.25,3.0,0.0,-1.25,3.0})))))))
        .addChild(new WorldInfo().setInfo(new String[] {"null"})
          .addComments(" Lowest resolution node is nothing. "))))
    .addChild(new TimeSensor("Clock").setCycleInterval(2.0).setLoop(true))
    .addChild(new CoordinateInterpolator("FishWiggle").setKey(new double[] {0.0,0.25,0.5,0.75,1.0}).setKeyValue(getFishWiggle_3_43_keyValue()))
    .addChild(new ROUTE().setFromNode("Clock").setFromField("fraction_changed").setToNode("FishWiggle").setToField("set_fraction"))
    .addChild(new ROUTE().setFromNode("FishWiggle").setFromField("value_changed").setToNode("Fish").setToField("set_point")));
            }
            catch (Exception ex)
            {       
                System.err.println ("*** Further hints on X3DJSAIL errors and exceptions at");
                System.err.println ("*** https://www.web3d.org/specifications/java/X3DJSAIL.html");
                throw (ex);
            }
	}
	// end of initialize() method

		/** Define subarrays using type double[] */
		private double[] getFishWiggle_3_43_keyValue_1()
		{
			double[] value = {0.0,0.0,-1.5,0.0,0.5,-1.0,-0.12,0.25,-1.0,-0.25,0.0,-1.0,-0.12,-0.25,-1.0,0.0,-0.5,-1.0,0.12,-0.25,-1.0,0.25,0.0,-1.0,0.12,0.25,-1.0,0.0,1.0,0.0,-0.25,0.5,0.0,-0.5,0.0,0.0,-0.25,-0.5,0.0,0.0,-1.0,0.0,0.25,-0.5,0.0,0.5,0.0,0.0,0.25,0.5,0.0,0.0,0.88,0.9,-0.19,0.44,0.9,-0.37,0.0,0.9,-0.19,-0.44,0.9,0.0,-0.88,0.9,0.19,-0.44,0.9,0.37,0.0,0.9,0.19,0.44,0.9,0.0,0.75,1.75,-0.12,0.35,1.75,-0.25,0.0,1.75,-0.12,-0.35,1.75,0.0,-0.75,1.75,0.12,-0.35,1.75,0.25,0.0,1.75,0.12,0.35,1.75,0.0,0.5,2.5,-0.05,0.25,2.5,-0.1,0.0,2.5,-0.05,-0.25,2.5,0.0,-0.5,2.5,0.05,-0.25,2.5,0.1,0.0,2.5,0.05,0.25,2.5,0.0,1.25,3.25,0.0,0.0,3.0,0.0,-1.25,3.25,0.0,0.0,-1.5,0.0,0.5,-1.0,-0.12,0.25,-1.0,-0.25,0.0,-1.0,-0.12,-0.25,-1.0,0.0,-0.5,-1.0,0.12,-0.25,-1.0,0.25,0.0,-1.0,0.12,0.25,-1.0,0.0,1.0,0.0,-0.25,0.5,0.0,-0.5,0.0,0.0,-0.25,-0.5,0.0,0.0,-1.0,0.0,0.25,-0.5,0.0,0.5,0.0,0.0,0.25,0.5,0.0,0.0,0.88,0.9,-0.19,0.44,0.9,-0.37,0.0,0.9,-0.19,-0.44,0.9,0.0,-0.88,0.9,0.19,-0.44,0.9,0.37,0.0,0.9,0.19,0.44,0.9,0.2,0.75,1.75,0.08,0.35,1.75,-0.05,0.0,1.75,0.08,-0.35,1.75,0.2,-0.75,1.75,0.32,-0.35,1.75,0.45,0.0,1.75,0.32,0.35,1.75,0.3,0.5,2.5,0.25,0.25,2.5,0.15,0.0,2.5,0.25,-0.25,2.5,0.3,-0.5,2.5,0.35,-0.25,2.5,0.4,0.0,2.5,0.35,0.25,2.5,0.5,1.25,3.25,0.5,0.0,3.0,0.5,-1.25,3.25,0.0,0.0,-1.5,0.0,0.5,-1.0,-0.12,0.25,-1.0,-0.25,0.0,-1.0,-0.12,-0.25,-1.0,0.0,-0.5,-1.0,0.12,-0.25,-1.0,0.25,0.0,-1.0,0.12,0.25,-1.0,0.0,1.0,0.0,-0.25,0.5,0.0,-0.5,0.0,0.0};
			return value;
		}
		private double[] getFishWiggle_3_43_keyValue_2()
		{
			double[] value = {-0.25,-0.5,0.0,0.0,-1.0,0.0,0.25,-0.5,0.0,0.5,0.0,0.0,0.25,0.5,0.0,0.0,0.88,0.9,-0.19,0.44,0.9,-0.37,0.0,0.9,-0.19,-0.44,0.9,0.0,-0.88,0.9,0.19,-0.44,0.9,0.37,0.0,0.9,0.19,0.44,0.9,0.0,0.75,1.75,-0.12,0.35,1.75,-0.25,0.0,1.75,-0.12,-0.35,1.75,0.0,-0.75,1.75,0.12,-0.35,1.75,0.25,0.0,1.75,0.12,0.35,1.75,0.0,0.5,2.5,-0.05,0.25,2.5,-0.1,0.0,2.5,-0.05,-0.25,2.5,0.0,-0.5,2.5,0.05,-0.25,2.5,0.1,0.0,2.5,0.05,0.25,2.5,0.0,1.25,3.25,0.0,0.0,3.0,0.0,-1.25,3.25,0.0,0.0,-1.5,0.0,0.5,-1.0,-0.12,0.25,-1.0,-0.25,0.0,-1.0,-0.12,-0.25,-1.0,0.0,-0.5,-1.0,0.12,-0.25,-1.0,0.25,0.0,-1.0,0.12,0.25,-1.0,0.0,1.0,0.0,-0.25,0.5,0.0,-0.5,0.0,0.0,-0.25,-0.5,0.0,0.0,-1.0,0.0,0.25,-0.5,0.0,0.5,0.0,0.0,0.25,0.5,0.0,0.0,0.88,0.9,-0.19,0.44,0.9,-0.37,0.0,0.9,-0.19,-0.44,0.9,0.0,-0.88,0.9,0.19,-0.44,0.9,0.37,0.0,0.9,0.19,0.44,0.9,-0.2,0.75,1.75,-0.32,0.35,1.75,-0.45,0.0,1.75,-0.32,-0.35,1.75,-0.2,-0.75,1.75,-0.08,-0.35,1.75,0.05,0.0,1.75,-0.08,0.35,1.75,-0.3,0.5,2.5,-0.35,0.25,2.5,-0.4,0.0,2.5,-0.35,-0.25,2.5,-0.3,-0.5,2.5,-0.25,-0.25,2.5,-0.2,0.0,2.5,-0.25,0.25,2.5,-0.5,1.25,3.25,-0.5,0.0,3.0,-0.5,-1.25,3.25,0.0,0.0,-1.5,0.0,0.5,-1.0,-0.12,0.25,-1.0,-0.25,0.0,-1.0,-0.12,-0.25,-1.0,0.0,-0.5,-1.0,0.12,-0.25,-1.0,0.25,0.0,-1.0,0.12,0.25,-1.0,0.0,1.0,0.0,-0.25,0.5,0.0,-0.5,0.0,0.0,-0.25,-0.5,0.0,0.0,-1.0,0.0,0.25,-0.5,0.0,0.5,0.0,0.0,0.25,0.5,0.0,0.0,0.88,0.9,-0.19,0.44,0.9,-0.37,0.0,0.9,-0.19,-0.44,0.9,0.0,-0.88,0.9,0.19,-0.44,0.9,0.37,0.0,0.9};
			return value;
		}
		private double[] getFishWiggle_3_43_keyValue_3()
		{
			double[] value = {0.19,0.44,0.9,0.0,0.75,1.75,-0.12,0.35,1.75,-0.25,0.0,1.75,-0.12,-0.35,1.75,0.0,-0.75,1.75,0.12,-0.35,1.75,0.25,0.0,1.75,0.12,0.35,1.75,0.0,0.5,2.5,-0.05,0.25,2.5,-0.1,0.0,2.5,-0.05,-0.25,2.5,0.0,-0.5,2.5,0.05,-0.25,2.5,0.1,0.0,2.5,0.05,0.25,2.5,0.0,1.25,3.25,0.0,0.0,3.0,0.0,-1.25,3.25};
			return value;
		}

		/** Large attribute array: CoordinateInterpolator DEF='FishWiggle' keyValue field, scene-graph level=3, element #43, 660 total numbers made up of 220 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 getFishWiggle_3_43_keyValue()
		{
			MFVec3f FishWiggle_3_43_keyValue = new MFVec3f()/*2.finalize*/
				.append(new MFVec3f(getFishWiggle_3_43_keyValue_1()))
				.append(new MFVec3f(getFishWiggle_3_43_keyValue_2()))
				.append(new MFVec3f(getFishWiggle_3_43_keyValue_3()));
			return FishWiggle_3_43_keyValue;
		}

	/** The initialized model object, created within initialize() method. */
	private X3D x3dModel;

	/** 
	 * Provide a 
	 * &lt;a href="https://dzone.com/articles/java-copy-shallow-vs-deep-in-which-you-will-swim" target="_blank"&gt;shallow copy&lt;/a&gt;
	 * of the X3D model.
	 * @see &lt;a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html"&gt;X3D&lt;/a&gt;
	 * @return Fish 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 &lt;a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html#handleArguments-java.lang.String:A-"&gt;X3D.handleArguments(args)&lt;/a&gt;
     * @see &lt;a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html#validationReport--"&gt;X3D.validationReport()&lt;/a&gt;
     * @see &lt;a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/CommandLine.html"&gt;CommandLine&lt;/a&gt;
     * @see &lt;a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/CommandLine.html#USAGE"&gt;CommandLine.USAGE&lt;/a&gt;
     * @see &lt;a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/ConfigurationProperties.html"&gt;ConfigurationProperties&lt;/a&gt;
     */
    public static void main(String args[])
    {
        System.out.println("Build this X3D model, showing validation diagnostics...");
        X3D thisExampleX3dModel = new Fish().getX3dModel();
//      System.out.println("X3D model construction complete.");
	
        // next handle command line arguments
        boolean hasArguments = (args != null) &amp;&amp; (args.length &gt; 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: \"X3dForWebAuthors.KelpForestExhibit.Fish\" 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("X3dForWebAuthors.KelpForestExhibit.Fish self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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