package Savage.Submarines.SSGNOhioUnitedStates;
/*
Copyright (c) 1995-2019 held by the author(s). All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of the Web3D Consortium (http://www.web3D.org)
nor the names of its contributors may be used to endorse or
promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
import java.util.*;
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.Interpolation.*;
import org.web3d.x3d.jsail.Networking.*;
import org.web3d.x3d.jsail.PointingDeviceSensor.*;
import org.web3d.x3d.jsail.Rendering.*;
import org.web3d.x3d.jsail.Shape.*;
import org.web3d.x3d.jsail.Text.*;
import org.web3d.x3d.jsail.Time.*;
// Javadoc annotations follow, see below for source.
/**
*
Trident Missile Tube for Ohio Class SSBN or SSGN. Future work: allow closing, boolean eventIns to open and close, expose open/close status.
Related links: TridentMissileTubePrototype.java source, TridentMissileTubePrototype catalog page, X3D Resources, X3D Scene Authoring Hints, and X3D Tooltips.
This program uses the
X3D Java Scene Access Interface Library (X3DJSAIL).
It has been produced using the
X3dToJava.xslt
stylesheet to create Java source code from an .x3d
model.
* @author Jeffrey Weekley
*/
public class TridentMissileTubePrototype
{
/** Default constructor to create this object. */
public TridentMissileTubePrototype ()
{
initialize();
}
/** Create and initialize the X3D model for this object. */
public final void initialize()
{
x3dModel = new X3DObject().setProfile(X3DObject.PROFILE_IMMERSIVE).setVersion(X3DObject.VERSION_3_0)
.setHead(new headObject()
.addMeta(new metaObject().setName(metaObject.NAME_TITLE ).setContent("TridentMissileTubePrototype.x3d"))
.addMeta(new metaObject().setName(metaObject.NAME_DESCRIPTION).setContent("Trident Missile Tube for Ohio Class SSBN or SSGN. Future work: allow closing, boolean eventIns to open and close, expose open/close status."))
.addMeta(new metaObject().setName(metaObject.NAME_CREATOR ).setContent("Jeffrey Weekley"))
.addMeta(new metaObject().setName(metaObject.NAME_CREATED ).setContent("19 September 2001"))
.addMeta(new metaObject().setName(metaObject.NAME_MODIFIED ).setContent("14 January 2014"))
.addMeta(new metaObject().setName(metaObject.NAME_REFERENCE ).setContent("http://www.fas.org/nuke/guide/usa/slbm/ssbn-726.htm"))
.addMeta(new metaObject().setName(metaObject.NAME_REFERENCE ).setContent("http://www.chinfo.navy.mil/navpalib/cno/n87/usw/issue_6/ssgn.html"))
.addMeta(new metaObject().setName(metaObject.NAME_REFERENCE ).setContent("SsgnSecondCareer.pdf"))
.addMeta(new metaObject().setName(metaObject.NAME_REFERENCE ).setContent("http://www.chinfo.navy.mil/navpalib/cno/n87/future/ssgn.html"))
.addMeta(new metaObject().setName(metaObject.NAME_REFERENCE ).setContent("http://www.ohio.navy.mil/html/conversion.htm"))
.addMeta(new metaObject().setName(metaObject.NAME_SUBJECT ).setContent("Trident Missile Tube Prototype Ohio Class Submarine"))
.addMeta(new metaObject().setName(metaObject.NAME_IDENTIFIER ).setContent("https://savage.nps.edu/Savage/Submarines/SSGN-Ohio-UnitedStates/TridentMissileTubePrototype.x3d"))
.addMeta(new metaObject().setName(metaObject.NAME_GENERATOR ).setContent("X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit"))
.addMeta(new metaObject().setName(metaObject.NAME_LICENSE ).setContent("../../license.html")))
.setScene(new SceneObject()
.addChild(new ProtoDeclareObject("TridentMissileTube").setName("TridentMissileTube").setAppinfo("Builds a Trident missile tube for Ohio Class Submarine.")
.setProtoBody(new ProtoBodyObject()
.addChild(new GroupObject("MissileTube")
.addChild(new TransformObject().setTranslation(-4.71f,-1.91f,0.0f)
.addChild(new GroupObject("TridentHatchAssembly")
.addChild(new TouchSensorObject("OpenHatch").setDescription("touch to operate"))
.addChild(new TimeSensorObject("HatchClock"))
.addChild(new ROUTEObject().setFromNode("OpenHatch").setFromField("touchTime").setToNode("HatchClock").setToField("set_startTime"))
.addChild(new TransformObject("Hatch").setCenter(5.875f,2.4f,0.0f).setScale(0.2f,0.2f,0.2f)
.addChild(new GroupObject("HatchRing")
.addChild(new GroupObject("OuterRing")
.addChild(new GroupObject("LongFan")
.addChild(new TransformObject("LongSlice")
.addChild(new ShapeObject()
.setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {0.0f,4.9f,0.0f,5.08f,0.9f,5.0f,0.875f,4.825f,0.0f,4.9f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.25f,0.0f})))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.65f,0.7f,0.7f).setShininess(0.66f).setSpecularColor(0.75f,0.8f,0.8f)))))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,0.35f)
.addChild(new TransformObject().setUSE("LongSlice")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,0.7f)
.addChild(new TransformObject().setUSE("LongSlice")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,1.05f)
.addChild(new TransformObject().setUSE("LongSlice")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,1.4f)
.addChild(new TransformObject().setUSE("LongSlice")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,1.75f)
.addChild(new TransformObject().setUSE("LongSlice")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,2.10f)
.addChild(new TransformObject().setUSE("LongSlice")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,2.45f)
.addChild(new TransformObject().setUSE("LongSlice")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,2.8f)
.addChild(new TransformObject().setUSE("LongSlice"))))
.addChild(new GroupObject()
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,3.14f)
.addChild(new GroupObject().setUSE("LongFan")))))
.addChild(new GroupObject("InnerRing")
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,0.175f).setScale(0.975f,1.0f,0.975f)
.addChild(new GroupObject().setUSE("OuterRing"))))
.addChild(new GroupObject("UpperRing")
.addChild(new TransformObject().setScale(0.975f,1.0f,0.975f)
.addChild(new GroupObject().setUSE("OuterRing")))
.addChild(new TransformObject().setScale(0.975f,1.0f,0.975f).setTranslation(0.0f,0.25f,0.0f)
.addChild(new GroupObject().setUSE("OuterRing")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,0.175f).setScale(0.975f,1.0f,0.975f).setTranslation(0.0f,0.25f,0.0f)
.addChild(new GroupObject().setUSE("OuterRing")))))
.addChild(new GroupObject("HatchDome")
.addComments(" Both these indexed face sets were originally presented in Dave LaFlam's Half Domes used in the Communications area of the SAVAGE Archive. See http://www.web3d.org/WorkingGroups/vrtp/demo/helicopter/DomeGreen.x3d ")
.addChild(new TransformObject().setScale(4.825f,2.0f,4.825f).setTranslation(0.0f,0.495f,0.0f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setEmissiveColor(0.1f,0.1f,0.1f)))
.setGeometry(new IndexedFaceSetObject().setCreaseAngle(.01f).setCoordIndex(getIndexedFaceSet_12_58_coordIndex())
.setCoord(new CoordinateObject().setPoint(getCoordinate_13_58_point())))))
.addChild(new TransformObject().setScale(5.04f,2.5f,5.04f).setTranslation(0.0f,0.25f,0.0f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.15f,0.175f,0.175f)))
.setGeometry(new IndexedFaceSetObject().setCreaseAngle(.01f).setSolid(false).setCoordIndex(getIndexedFaceSet_12_64_coordIndex())
.setCoord(new CoordinateObject().setPoint(getCoordinate_13_64_point()))))))
.addChild(new GroupObject("TopofHatchOuterHullHousing")
.addChild(new TransformObject().setRotation(0.0f,0.0f,1.0f,0.075f).setTranslation(-5.0f,1.35f,0.0f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setRadius(0.09f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject()))))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,1.57f).setTranslation(5.875f,2.4f,0.0f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(1.0f,10.5f,0.975f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.15f,0.175f,0.175f)))))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,1.57f).setScale(5.0f,5.0f,5.0f).setTranslation(0.0f,2.25f,0.0f)
.addChild(new ShapeObject("HatchCover")
.setGeometry(new ExtrusionObject().setConvex(false).setCrossSection(new MFVec2fObject(new float[] {1.0f,1.225f,1.0f,0.0f,0.975f,-0.15f,0.9375f,-0.34375f,0.85625f,-0.49375f,0.7625f,-0.6375f,0.6375f,-0.7625f,0.49375f,-0.85625f,0.34375f,-0.9375f,0.15f,-0.975f,0.0f,-1.0f,-0.15f,-0.975f,-0.34375f,-0.9375f,-0.49375f,-0.85625f,-0.6375f,-0.7625f,-0.7625f,-0.6375f,-0.85625f,-0.49375f,-0.9375f,-0.34375f,-0.975f,-0.15f,-1.0f,0.0f,-1.0f,1.225f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f,1.05f,1.05f,1.05f,1.05f})).setSolid(false).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.1125f,0.0f,0.0f,0.1125f,0.0f,0.0f,0.125f,0.0f})))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.15f,0.175f,0.175f)))))))
.addChild(new OrientationInterpolatorObject("HatchInterpolator").setKey(new float[] {0.0f,0.125f,0.25f,0.375f,0.5f,0.75f,1.0f}).setKeyValue(new MFRotationObject(new float[] {0.0f,0.0f,-1.0f,0.0f,0.0f,0.0f,-1.0f,0.26f,0.0f,0.0f,-1.0f,0.52f,0.0f,0.0f,-1.0f,0.78f,0.0f,0.0f,-1.0f,1.05f,0.0f,0.0f,-1.0f,1.31f,0.0f,0.0f,-1.0f,1.83f})))
.addChild(new PositionInterpolatorObject("HatchPositionInterpolator").setKey(new float[] {0.0f,0.25f,0.75f,1.0f}).setKeyValue(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.125f,0.0f,0.0f,0.25f,0.0f,0.0f,0.33f,0.0f,0.0f})))
.addChild(new ROUTEObject().setFromNode("HatchClock").setFromField("fraction_changed").setToNode("HatchInterpolator").setToField("set_fraction"))
.addChild(new ROUTEObject().setFromNode("HatchInterpolator").setFromField("value_changed").setToNode("Hatch").setToField("set_rotation"))
.addChild(new ROUTEObject().setFromNode("HatchClock").setFromField("fraction_changed").setToNode("HatchPositionInterpolator").setToField("set_fraction"))
.addChild(new ROUTEObject().setFromNode("HatchPositionInterpolator").setFromField("value_changed").setToNode("Hatch").setToField("set_translation"))
.addChild(new TransformObject()
.addChild(new GroupObject("OuterWall")
.addChild(new TransformObject("Wall").setCenter(0.0f,1.0f,0.0f).setTranslation(5.9125f,1.3f,0.0f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(0.1f,2.0f,2.3f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.15f,0.175f,0.175f))))))
.addChild(new OrientationInterpolatorObject("WallInterpolator").setKey(new float[] {0.0f,1.0f}).setKeyValue(new MFRotationObject(new float[] {0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,-1.0f,0.225f})))
.addChild(new PositionInterpolatorObject("WallPositionInterpolator").setKey(new float[] {0.0f,1.0f}).setKeyValue(new MFVec3fObject(new float[] {5.9125f,1.3f,0.0f,6.2425f,1.3125f,0.0f})))
.addChild(new TimeSensorObject("WallClock"))
.addChild(new ROUTEObject().setFromNode("OpenHatch").setFromField("touchTime").setToNode("WallClock").setToField("set_startTime"))
.addChild(new ROUTEObject().setFromNode("WallClock").setFromField("fraction_changed").setToNode("WallInterpolator").setToField("set_fraction"))
.addChild(new ROUTEObject().setFromNode("WallInterpolator").setFromField("value_changed").setToNode("Wall").setToField("set_rotation"))
.addChild(new ROUTEObject().setFromNode("WallClock").setFromField("fraction_changed").setToNode("WallPositionInterpolator").setToField("set_fraction"))
.addChild(new ROUTEObject().setFromNode("WallPositionInterpolator").setFromField("value_changed").setToNode("Wall").setToField("set_translation"))))
.addChild(new GroupObject("OuterHousing")
.addChild(new TransformObject().setTranslation(4.7f,1.92f,0.0f)
.addChild(new TransformObject("Bezel").setRotation(0.18f,0.0f,1.0f,3.14f).setScale(0.2f,0.2f,0.2f)
.addChild(new GroupObject().setUSE("HatchRing")))
.addChild(new TransformObject("TubeFace").setScale(0.5f,1.0f,0.5f)
.addChild(new ShapeObject("TubeWallPart")
.setGeometry(new IndexedFaceSetObject().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,-1})
.setCoord(new CoordinateObject().setPoint(new MFVec3fObject(new float[] {-0.125f,-0.1f,2.0f,0.125f,-0.1f,2.0f,0.125f,-10.0f,2.0f,-0.125f,-10.0f,2.0f,-0.125f,-0.1f,2.0f}))))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(1.0f,1.0f,1.0f)))))
.addChild(new TransformObject("WallOne")
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,0.05f)
.addChild(new TransformObject().setUSE("TubeFace")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,0.10f)
.addChild(new TransformObject().setUSE("TubeFace")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,0.15f)
.addChild(new TransformObject().setUSE("TubeFace")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,0.2f)
.addChild(new TransformObject().setUSE("TubeFace")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,0.25f)
.addChild(new TransformObject().setUSE("TubeFace")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,0.30f)
.addChild(new TransformObject().setUSE("TubeFace"))))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,0.3f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,0.6f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,0.9f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,1.2f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,1.5f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,1.8f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,2.1f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,2.4f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,2.7f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,3.0f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,3.3f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,3.6f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,3.9f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,4.2f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,4.5f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,4.8f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,5.1f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,5.4f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,5.7f)
.addChild(new TransformObject().setUSE("WallOne")))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,6.0f)
.addChild(new TransformObject().setUSE("WallOne"))))))
.addChild(new GroupObject("HatchHullSection")
.addChild(new TransformObject("HatchCornerAft").setRotation(0.0f,1.0f,0.0f,1.57f).setTranslation(0.0f,0.5825f,0.0f)
.addChild(new ShapeObject()
.setGeometry(new ExtrusionObject().setConvex(false).setCrossSection(new MFVec2fObject(new float[] {1.0f,1.275f,1.2f,1.275f,1.2f,-1.25f,-1.2f,-1.25f,-1.2f,1.275f,-1.0f,1.275f,-0.975f,-0.15f,-0.9375f,-0.34375f,-0.85625f,-0.49375f,-0.7625f,-0.6375f,-0.6375f,-0.7625f,-0.49375f,-0.85625f,-0.34375f,-0.9375f,-0.15f,-0.975f,0.0f,-1.0f,0.15f,-0.975f,0.34375f,-0.9375f,0.49375f,-0.85625f,0.6375f,-0.7625f,0.7625f,-0.6375f,0.85625f,-0.49375f,0.9375f,-0.34375f,0.975f,-0.15f,1.0f,1.275f,1.2f,1.275f,1.2f,-1.25f})).setSolid(false).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,-0.1125f,0.0f,0.0f,-0.1125f,0.0f,0.0f,-0.125f,0.0f,0.0f,-0.2f,0.0f})))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.15f,0.175f,0.175f))))))
.addChild(new TransformObject().setTranslation(0.0f,-10.4f,0.0f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(2.3f,0.125f,2.3f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.15f,0.175f,0.175f)))))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,3.14f).setScale(1.0f,0.4f,1.0f).setTranslation(0.0f,-9.95f,0.0f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setEmissiveColor(0.1f,0.1f,0.1f)))
.setGeometry(new IndexedFaceSetObject().setCreaseAngle(.01f).setSolid(false).setCoordIndex(getIndexedFaceSet_8_185_coordIndex())
.setCoord(new CoordinateObject().setPoint(getCoordinate_9_185_point()))))))))
.addChild(new BackgroundObject().setGroundAngle(new float[] {1.309f,1.570796f}).setGroundColor(new MFColorObject(new float[] {0.0f,0.2f,0.4f,0.05f,0.25f,0.6f,0.1f,0.2f,0.4f})).setSkyAngle(new float[] {1.309f,1.571f}).setSkyColor(new MFColorObject(new float[] {0.1f,0.1f,0.4f,0.1f,0.125f,0.4f,0.1f,0.1f,0.3f})))
.addComments(" Redirection text in case a user examines this PROTO file via a 3D browser: ")
.addChild(new AnchorObject().setDescription("Trident Missile Tube Example").setParameter(new String[] {"target=_blank"}).setUrl(new String[] {"TridentMissileTubeExample.x3d","https://savage.nps.edu/Savage/Submarines/SSGN-Ohio-UnitedStates/TridentMissileTubeExample.x3d","TridentMissileTubeExample.wrl","https://savage.nps.edu/Savage/Submarines/SSGN-Ohio-UnitedStates/TridentMissileTubeExample.wrl"})
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.0f,1.0f,1.0f).setEmissiveColor(0.0f,1.0f,1.0f)))
.setGeometry(new TextObject().setString(new String[] {"TridentMissileTubePrototype","is a Prototype definition file.","","See an example scene with this node","by clicking this text to view","TridentMissileTubeExampleExample.wrl"})
.setFontStyle(new FontStyleObject().setJustify(FontStyleObject.JUSTIFY_MIDDLE_MIDDLE).setSize(0.75f))))));
}
// end of initialize() method
/** Define subarrays using type int[] */
private int[] getIndexedFaceSet_12_58_coordIndex_1()
{
int[] value = {0,1,2,-1,1,3,4,-1,2,4,5,-1,3,6,7,-1,4,7,8,-1,5,8,9,-1,6,10,11,-1,7,11,12,-1,8,12,13,-1,9,13,14,-1,10,15,16,-1,11,16,17,-1,12,17,18,-1,13,18,19,-1,14,19,20,-1,1,4,2,-1,3,7,4,-1,4,8,5,-1,6,11,7,-1,7,12,8,-1,8,13,9,-1,10,16,11,-1,11,17,12,-1,12,18,13,-1,13,19,14,-1,21,22,23,-1,22,24,25,-1,23,25,26,-1,24,27,28,-1,25,28,29,-1,26,29,30,-1,27,31,32,-1,28,32,33,-1,29,33,34,-1,30,34,35,-1,31,0,2,-1,32,2,5,-1,33,5,9,-1,34,9,14,-1,35,14,20,-1,22,25,23,-1,24,28,25,-1,25,29,26,-1,27,32,28,-1,28,33,29,-1,29,34,30,-1,31,2,32,-1,32,5,33,-1,33,9,34,-1,34,14,35,-1,21,36,22,-1,36,37,38,-1,22,38,24,-1,37,39,40,-1,38,40,41,-1,24,41,27,-1,41,42,43,-1,27,43,31,-1,31,44,0,-1,36,38,22,-1,37,40,38,-1,38,41,24,-1,40,42,41,-1,41,43,27,-1,43,44,31,-1,15,45,16,-1,45,46,47,-1,16,47,17,-1,46,48,49,-1,47,49,50,-1,17,50,18,-1,48,51,52,-1,49,52,53,-1,50,53,54,-1,18,54,19,-1,51,55,56,-1,52,56,57,-1,53,57,58,-1,54,58,59,-1,19,59,20,-1,45,47,16,-1,46,49,47,-1,47,50,17,-1,48,52,49,-1,49,53,50,-1,50,54,18,-1,51,56,52,-1,52,57,53,-1,53,58,54,-1,54,59,19,-1,15,60,45,-1,45,61,46,-1,61,62,63,-1,46,63,48,-1,63,64,65,-1,48,65,51,-1,64,66,67,-1,65,67,68,-1,51,68,55,-1,60,61,45,-1,61,63,46,-1,62,64,63,-1,63,65,48,-1,64,67,65,-1,65,68,51,-1,55,69,56,-1,69,70,71,-1,56,71,57,-1,70,72,73,-1,71,73,74,-1,57,74,58,-1,72,75,76,-1,73,76,77,-1,74,77,78,-1,58,78,59,-1,75,79,80,-1,76,80,81,-1,77,81,82,-1,78,82,83,-1,59,83,20,-1,69,71,56,-1,70,73,71,-1,71,74,57,-1,72,76,73,-1,73,77,74,-1,74,78,58,-1,75,80,76,-1,76,81,77,-1,77,82,78,-1,78,83,59,-1,55,84,69,-1,84,85,86,-1,69,86,70,-1,85,87,88,-1,86,88,89,-1,70,89,72,-1,87,90,91,-1,88,91,92,-1,89,92,93,-1,72,93,75,-1,90,94,95,-1,91,95,96,-1,92,96,97,-1,93,97,98,-1,75,98,79,-1,84,86,69,-1,85,88,86,-1,86,89,70,-1,87,91,88,-1,88,92,89,-1,89,93,72,-1,90,95,91,-1,91,96,92,-1,92,97,93,-1,93,98,75,-1,79,99,80,-1,99,100,101,-1,80,101,81,-1,100,102,103,-1,101,103,104,-1,81,104,82,-1,102,105,106,-1,103,106,107,-1,104,107,108,-1,82,108,83,-1,105,21,23,-1,106,23,26,-1,107,26,30,-1,108,30,35,-1,83,35,20,-1,99,101,80,-1,100,103,101,-1,101,104,81,-1,102,106,103,-1,103,107,104,-1,104,108,82,-1,105,23,106,-1,106,26,107,-1,107,30,108,-1,108,35,83,-1,79,109,99,-1,109,110,111,-1,99,111,100,-1,110,112,113,-1,111,113,114,-1,100,114,102,-1,112,115,116,-1,113,116,117,-1,114,117,118,-1,102,118,105,-1,115,119,120,-1,116,120,121,-1,117,121,122,-1,118,122,123,-1,105,123,21,-1,109,111,99,-1,110,113,111,-1,111,114,100,-1,112,116,113,-1,113,117,114,-1,114,118,102,-1,115,120,116,-1,116,121,117,-1,117,122,118,-1,118,123,105,-1,119,115,124,-1,115,112,128,-1,124,128,125,-1,112,110,129,-1,128,129,130,-1,125,130,126,-1,110,109,131,-1,129,131,132,-1,130,132,133,-1,126,133,127,-1,109,79,98,-1,131,98,97,-1,132,97,96,-1,133,96,95,-1,127,95,94,-1,115,128,124,-1,112,129,128,-1,128,130,125,-1,110,131,129,-1,129,132,130,-1,130,133,126,-1,109,98,131,-1,131,97,132,-1,132,96,133,-1,133,95,127,-1,39,37,135,-1,37,36,137,-1,135,137,138,-1,136,138,139,-1,36,21,123,-1,137,123,122,-1,138,122,121,-1,139,121,120,-1,134,120,119,-1,37,137,135,-1,135,138,136,-1,36,123,137,-1,137,122,138,-1,138,121,139,-1,139,120,134,-1,94,90,140,-1,90,87,141,-1,87,85,142,-1,141,142,143,-1,85,84,144,-1};
return value;
}
private int[] getIndexedFaceSet_12_58_coordIndex_2()
{
int[] value = {142,144,145,-1,84,55,68,-1,144,68,67,-1,145,67,66,-1,90,141,140,-1,87,142,141,-1,85,144,142,-1,142,145,143,-1,84,68,144,-1,144,67,145,-1};
return value;
}
/** Define subarrays using type float[] */
private float[] getCoordinate_13_58_point_1()
{
float[] value = {0.5257f,0.0f,0.8507f,0.3477f,0.0f,0.9376f,0.4636f,0.1875f,0.866f,0.1227f,0.0f,0.9924f,0.2531f,0.2047f,0.9455f,0.368f,0.397f,0.8408f,-0.1227f,0.0f,0.9924f,0.0f,0.2116f,0.9773f,0.1308f,0.4233f,0.8965f,0.2453f,0.5955f,0.765f,-0.3477f,0.0f,0.9376f,-0.2531f,0.2047f,0.9455f,-0.1308f,0.4233f,0.8965f,0.0f,0.6142f,0.7891f,0.1159f,0.7501f,0.6511f,-0.5257f,0.0f,0.8507f,-0.4636f,0.1875f,0.866f,-0.368f,0.397f,0.8408f,-0.2453f,0.5955f,0.765f,-0.1159f,0.7501f,0.6511f,0.0f,0.8507f,0.5257f,0.8507f,0.5257f,0.0f,0.866f,0.4636f,0.1875f,0.7501f,0.6511f,0.1159f,0.8408f,0.368f,0.397f,0.7408f,0.5844f,0.3313f,0.5955f,0.765f,0.2453f,0.765f,0.2453f,0.5955f,0.6849f,0.4732f,0.5541f,0.5541f,0.6849f,0.4732f,0.397f,0.8408f,0.368f,0.6511f,0.1159f,0.7501f,0.5844f,0.3313f,0.7408f,0.4732f,0.5541f,0.6849f,0.3313f,0.7408f,0.5844f,0.1875f,0.866f,0.4636f,0.9376f,0.3477f,0.0f,0.9924f,0.1227f,0.0f,0.9455f,0.2531f,0.2047f,0.9924f,0.0f,0.0f,0.9773f,0.0f,0.2116f,0.8965f,0.1308f,0.4233f,0.8965f,0.0f,0.4233f,0.7891f,0.0f,0.6142f,0.6511f,0.0f,0.7501f,-0.6511f,0.1159f,0.7501f,-0.765f,0.2453f,0.5955f,-0.5844f,0.3313f,0.7408f,-0.8408f,0.368f,0.397f,-0.6849f,0.4732f,0.5541f,-0.4732f,0.5541f,0.6849f,-0.866f,0.4636f,0.1875f,-0.7408f,0.5844f,0.3313f,-0.5541f,0.6849f,0.4732f,-0.3313f,0.7408f,0.5844f,-0.8507f,0.5257f,0.0f,-0.7501f,0.6511f,0.1159f,-0.5955f,0.765f,0.2453f,-0.397f,0.8408f,0.368f,-0.1875f,0.866f,0.4636f,-0.6511f,0.0f,0.7501f,-0.7891f,0.0f,0.6142f,-0.8965f,0.0f,0.4233f,-0.8965f,0.1308f,0.4233f,-0.9773f,0.0f,0.2116f,-0.9455f,0.2531f,0.2047f,-0.9924f,0.0f,0.0f,-0.9924f,0.1227f,0.0f,-0.9376f,0.3477f,0.0f,-0.7501f,0.6511f,-0.1159f,-0.5955f,0.765f,-0.2453f,-0.6142f,0.7891f,0.0f,-0.397f,0.8408f,-0.368f,-0.4233f,0.8965f,-0.1308f,-0.4233f,0.8965f,0.1308f,-0.1875f,0.866f,-0.4636f,-0.2047f,0.9455f,-0.2531f,-0.2116f,0.9773f,0.0f,-0.2047f,0.9455f,0.2531f,0.0f,0.8507f,-0.5257f,0.0f,0.9376f,-0.3477f,0.0f,0.9924f,-0.1227f,0.0f,0.9924f,0.1227f,0.0f,0.9376f,0.3477f,-0.866f,0.4636f,-0.1875f,-0.8408f,0.368f,-0.397f,-0.7408f,0.5844f,-0.3313f,-0.765f,0.2453f,-0.5955f,-0.6849f,0.4732f,-0.5541f,-0.5541f,0.6849f,-0.4732f,-0.6511f,0.1159f,-0.7501f,-0.5844f,0.3313f,-0.7408f,-0.4732f,0.5541f,-0.6849f,-0.3313f,0.7408f,-0.5844f,-0.5257f,0.0f,-0.8507f,-0.4636f,0.1875f,-0.866f,-0.368f,0.397f,-0.8408f,-0.2453f,0.5955f,-0.765f,-0.1159f,0.7501f,-0.6511f,0.1875f,0.866f,-0.4636f};
return value;
}
private float[] getCoordinate_13_58_point_2()
{
float[] value = {0.397f,0.8408f,-0.368f,0.2047f,0.9455f,-0.2531f,0.5955f,0.765f,-0.2453f,0.4233f,0.8965f,-0.1308f,0.2116f,0.9773f,0.0f,0.7501f,0.6511f,-0.1159f,0.6142f,0.7891f,0.0f,0.4233f,0.8965f,0.1308f,0.2047f,0.9455f,0.2531f,0.1159f,0.7501f,-0.6511f,0.2453f,0.5955f,-0.765f,0.3313f,0.7408f,-0.5844f,0.368f,0.397f,-0.8408f,0.4732f,0.5541f,-0.6849f,0.5541f,0.6849f,-0.4732f,0.4636f,0.1875f,-0.866f,0.5844f,0.3313f,-0.7408f,0.6849f,0.4732f,-0.5541f,0.7408f,0.5844f,-0.3313f,0.5257f,0.0f,-0.8507f,0.6511f,0.1159f,-0.7501f,0.765f,0.2453f,-0.5955f,0.8408f,0.368f,-0.397f,0.866f,0.4636f,-0.1875f,0.3477f,0.0f,-0.9376f,0.1227f,0.0f,-0.9924f,-0.1227f,0.0f,-0.9924f,-0.3477f,0.0f,-0.9376f,0.2531f,0.2047f,-0.9455f,0.1308f,0.4233f,-0.8965f,0.0f,0.2116f,-0.9773f,0.0f,0.6142f,-0.7891f,-0.1308f,0.4233f,-0.8965f,-0.2531f,0.2047f,-0.9455f,0.6511f,0.0f,-0.7501f,0.9773f,0.0f,-0.2116f,0.8965f,0.0f,-0.4233f,0.9455f,0.2531f,-0.2047f,0.8965f,0.1308f,-0.4233f,0.7891f,0.0f,-0.6142f,-0.6511f,0.0f,-0.7501f,-0.7891f,0.0f,-0.6142f,-0.8965f,0.1308f,-0.4233f,-0.8965f,0.0f,-0.4233f,-0.9455f,0.2531f,-0.2047f,-0.9773f,0.0f,-0.2116f};
return value;
}
/** Define subarrays using type int[] */
private int[] getIndexedFaceSet_12_64_coordIndex_1()
{
int[] value = {0,1,2,-1,1,3,4,-1,2,4,5,-1,3,6,7,-1,4,7,8,-1,5,8,9,-1,6,10,11,-1,7,11,12,-1,8,12,13,-1,9,13,14,-1,10,15,16,-1,11,16,17,-1,12,17,18,-1,13,18,19,-1,14,19,20,-1,1,4,2,-1,3,7,4,-1,4,8,5,-1,6,11,7,-1,7,12,8,-1,8,13,9,-1,10,16,11,-1,11,17,12,-1,12,18,13,-1,13,19,14,-1,21,22,23,-1,22,24,25,-1,23,25,26,-1,24,27,28,-1,25,28,29,-1,26,29,30,-1,27,31,32,-1,28,32,33,-1,29,33,34,-1,30,34,35,-1,31,0,2,-1,32,2,5,-1,33,5,9,-1,34,9,14,-1,35,14,20,-1,22,25,23,-1,24,28,25,-1,25,29,26,-1,27,32,28,-1,28,33,29,-1,29,34,30,-1,31,2,32,-1,32,5,33,-1,33,9,34,-1,34,14,35,-1,21,36,22,-1,36,37,38,-1,22,38,24,-1,37,39,40,-1,38,40,41,-1,24,41,27,-1,41,42,43,-1,27,43,31,-1,31,44,0,-1,36,38,22,-1,37,40,38,-1,38,41,24,-1,40,42,41,-1,41,43,27,-1,43,44,31,-1,15,45,16,-1,45,46,47,-1,16,47,17,-1,46,48,49,-1,47,49,50,-1,17,50,18,-1,48,51,52,-1,49,52,53,-1,50,53,54,-1,18,54,19,-1,51,55,56,-1,52,56,57,-1,53,57,58,-1,54,58,59,-1,19,59,20,-1,45,47,16,-1,46,49,47,-1,47,50,17,-1,48,52,49,-1,49,53,50,-1,50,54,18,-1,51,56,52,-1,52,57,53,-1,53,58,54,-1,54,59,19,-1,15,60,45,-1,45,61,46,-1,61,62,63,-1,46,63,48,-1,63,64,65,-1,48,65,51,-1,64,66,67,-1,65,67,68,-1,51,68,55,-1,60,61,45,-1,61,63,46,-1,62,64,63,-1,63,65,48,-1,64,67,65,-1,65,68,51,-1,55,69,56,-1,69,70,71,-1,56,71,57,-1,70,72,73,-1,71,73,74,-1,57,74,58,-1,72,75,76,-1,73,76,77,-1,74,77,78,-1,58,78,59,-1,75,79,80,-1,76,80,81,-1,77,81,82,-1,78,82,83,-1,59,83,20,-1,69,71,56,-1,70,73,71,-1,71,74,57,-1,72,76,73,-1,73,77,74,-1,74,78,58,-1,75,80,76,-1,76,81,77,-1,77,82,78,-1,78,83,59,-1,55,84,69,-1,84,85,86,-1,69,86,70,-1,85,87,88,-1,86,88,89,-1,70,89,72,-1,87,90,91,-1,88,91,92,-1,89,92,93,-1,72,93,75,-1,90,94,95,-1,91,95,96,-1,92,96,97,-1,93,97,98,-1,75,98,79,-1,84,86,69,-1,85,88,86,-1,86,89,70,-1,87,91,88,-1,88,92,89,-1,89,93,72,-1,90,95,91,-1,91,96,92,-1,92,97,93,-1,93,98,75,-1,79,99,80,-1,99,100,101,-1,80,101,81,-1,100,102,103,-1,101,103,104,-1,81,104,82,-1,102,105,106,-1,103,106,107,-1,104,107,108,-1,82,108,83,-1,105,21,23,-1,106,23,26,-1,107,26,30,-1,108,30,35,-1,83,35,20,-1,99,101,80,-1,100,103,101,-1,101,104,81,-1,102,106,103,-1,103,107,104,-1,104,108,82,-1,105,23,106,-1,106,26,107,-1,107,30,108,-1,108,35,83,-1,79,109,99,-1,109,110,111,-1,99,111,100,-1,110,112,113,-1,111,113,114,-1,100,114,102,-1,112,115,116,-1,113,116,117,-1,114,117,118,-1,102,118,105,-1,115,119,120,-1,116,120,121,-1,117,121,122,-1,118,122,123,-1,105,123,21,-1,109,111,99,-1,110,113,111,-1,111,114,100,-1,112,116,113,-1,113,117,114,-1,114,118,102,-1,115,120,116,-1,116,121,117,-1,117,122,118,-1,118,123,105,-1,119,115,124,-1,115,112,128,-1,124,128,125,-1,112,110,129,-1,128,129,130,-1,125,130,126,-1,110,109,131,-1,129,131,132,-1,130,132,133,-1,126,133,127,-1,109,79,98,-1,131,98,97,-1,132,97,96,-1,133,96,95,-1,127,95,94,-1,115,128,124,-1,112,129,128,-1,128,130,125,-1,110,131,129,-1,129,132,130,-1,130,133,126,-1,109,98,131,-1,131,97,132,-1,132,96,133,-1,133,95,127,-1,39,37,135,-1,37,36,137,-1,135,137,138,-1,136,138,139,-1,36,21,123,-1,137,123,122,-1,138,122,121,-1,139,121,120,-1,134,120,119,-1,37,137,135,-1,135,138,136,-1,36,123,137,-1,137,122,138,-1,138,121,139,-1,139,120,134,-1,94,90,140,-1,90,87,141,-1,87,85,142,-1,141,142,143,-1,85,84,144,-1};
return value;
}
private int[] getIndexedFaceSet_12_64_coordIndex_2()
{
int[] value = {142,144,145,-1,84,55,68,-1,144,68,67,-1,145,67,66,-1,90,141,140,-1,87,142,141,-1,85,144,142,-1,142,145,143,-1,84,68,144,-1,144,67,145,-1};
return value;
}
/** Define subarrays using type float[] */
private float[] getCoordinate_13_64_point_1()
{
float[] value = {0.5257f,0.0f,0.8507f,0.3477f,0.0f,0.9376f,0.4636f,0.1875f,0.866f,0.1227f,0.0f,0.9924f,0.2531f,0.2047f,0.9455f,0.368f,0.397f,0.8408f,-0.1227f,0.0f,0.9924f,0.0f,0.2116f,0.9773f,0.1308f,0.4233f,0.8965f,0.2453f,0.5955f,0.765f,-0.3477f,0.0f,0.9376f,-0.2531f,0.2047f,0.9455f,-0.1308f,0.4233f,0.8965f,0.0f,0.6142f,0.7891f,0.1159f,0.7501f,0.6511f,-0.5257f,0.0f,0.8507f,-0.4636f,0.1875f,0.866f,-0.368f,0.397f,0.8408f,-0.2453f,0.5955f,0.765f,-0.1159f,0.7501f,0.6511f,0.0f,0.8507f,0.5257f,0.8507f,0.5257f,0.0f,0.866f,0.4636f,0.1875f,0.7501f,0.6511f,0.1159f,0.8408f,0.368f,0.397f,0.7408f,0.5844f,0.3313f,0.5955f,0.765f,0.2453f,0.765f,0.2453f,0.5955f,0.6849f,0.4732f,0.5541f,0.5541f,0.6849f,0.4732f,0.397f,0.8408f,0.368f,0.6511f,0.1159f,0.7501f,0.5844f,0.3313f,0.7408f,0.4732f,0.5541f,0.6849f,0.3313f,0.7408f,0.5844f,0.1875f,0.866f,0.4636f,0.9376f,0.3477f,0.0f,0.9924f,0.1227f,0.0f,0.9455f,0.2531f,0.2047f,0.9924f,0.0f,0.0f,0.9773f,0.0f,0.2116f,0.8965f,0.1308f,0.4233f,0.8965f,0.0f,0.4233f,0.7891f,0.0f,0.6142f,0.6511f,0.0f,0.7501f,-0.6511f,0.1159f,0.7501f,-0.765f,0.2453f,0.5955f,-0.5844f,0.3313f,0.7408f,-0.8408f,0.368f,0.397f,-0.6849f,0.4732f,0.5541f,-0.4732f,0.5541f,0.6849f,-0.866f,0.4636f,0.1875f,-0.7408f,0.5844f,0.3313f,-0.5541f,0.6849f,0.4732f,-0.3313f,0.7408f,0.5844f,-0.8507f,0.5257f,0.0f,-0.7501f,0.6511f,0.1159f,-0.5955f,0.765f,0.2453f,-0.397f,0.8408f,0.368f,-0.1875f,0.866f,0.4636f,-0.6511f,0.0f,0.7501f,-0.7891f,0.0f,0.6142f,-0.8965f,0.0f,0.4233f,-0.8965f,0.1308f,0.4233f,-0.9773f,0.0f,0.2116f,-0.9455f,0.2531f,0.2047f,-0.9924f,0.0f,0.0f,-0.9924f,0.1227f,0.0f,-0.9376f,0.3477f,0.0f,-0.7501f,0.6511f,-0.1159f,-0.5955f,0.765f,-0.2453f,-0.6142f,0.7891f,0.0f,-0.397f,0.8408f,-0.368f,-0.4233f,0.8965f,-0.1308f,-0.4233f,0.8965f,0.1308f,-0.1875f,0.866f,-0.4636f,-0.2047f,0.9455f,-0.2531f,-0.2116f,0.9773f,0.0f,-0.2047f,0.9455f,0.2531f,0.0f,0.8507f,-0.5257f,0.0f,0.9376f,-0.3477f,0.0f,0.9924f,-0.1227f,0.0f,0.9924f,0.1227f,0.0f,0.9376f,0.3477f,-0.866f,0.4636f,-0.1875f,-0.8408f,0.368f,-0.397f,-0.7408f,0.5844f,-0.3313f,-0.765f,0.2453f,-0.5955f,-0.6849f,0.4732f,-0.5541f,-0.5541f,0.6849f,-0.4732f,-0.6511f,0.1159f,-0.7501f,-0.5844f,0.3313f,-0.7408f,-0.4732f,0.5541f,-0.6849f,-0.3313f,0.7408f,-0.5844f,-0.5257f,0.0f,-0.8507f,-0.4636f,0.1875f,-0.866f,-0.368f,0.397f,-0.8408f,-0.2453f,0.5955f,-0.765f,-0.1159f,0.7501f,-0.6511f,0.1875f,0.866f,-0.4636f};
return value;
}
private float[] getCoordinate_13_64_point_2()
{
float[] value = {0.397f,0.8408f,-0.368f,0.2047f,0.9455f,-0.2531f,0.5955f,0.765f,-0.2453f,0.4233f,0.8965f,-0.1308f,0.2116f,0.9773f,0.0f,0.7501f,0.6511f,-0.1159f,0.6142f,0.7891f,0.0f,0.4233f,0.8965f,0.1308f,0.2047f,0.9455f,0.2531f,0.1159f,0.7501f,-0.6511f,0.2453f,0.5955f,-0.765f,0.3313f,0.7408f,-0.5844f,0.368f,0.397f,-0.8408f,0.4732f,0.5541f,-0.6849f,0.5541f,0.6849f,-0.4732f,0.4636f,0.1875f,-0.866f,0.5844f,0.3313f,-0.7408f,0.6849f,0.4732f,-0.5541f,0.7408f,0.5844f,-0.3313f,0.5257f,0.0f,-0.8507f,0.6511f,0.1159f,-0.7501f,0.765f,0.2453f,-0.5955f,0.8408f,0.368f,-0.397f,0.866f,0.4636f,-0.1875f,0.3477f,0.0f,-0.9376f,0.1227f,0.0f,-0.9924f,-0.1227f,0.0f,-0.9924f,-0.3477f,0.0f,-0.9376f,0.2531f,0.2047f,-0.9455f,0.1308f,0.4233f,-0.8965f,0.0f,0.2116f,-0.9773f,0.0f,0.6142f,-0.7891f,-0.1308f,0.4233f,-0.8965f,-0.2531f,0.2047f,-0.9455f,0.6511f,0.0f,-0.7501f,0.9773f,0.0f,-0.2116f,0.8965f,0.0f,-0.4233f,0.9455f,0.2531f,-0.2047f,0.8965f,0.1308f,-0.4233f,0.7891f,0.0f,-0.6142f,-0.6511f,0.0f,-0.7501f,-0.7891f,0.0f,-0.6142f,-0.8965f,0.1308f,-0.4233f,-0.8965f,0.0f,-0.4233f,-0.9455f,0.2531f,-0.2047f,-0.9773f,0.0f,-0.2116f};
return value;
}
/** Define subarrays using type int[] */
private int[] getIndexedFaceSet_8_185_coordIndex_1()
{
int[] value = {0,1,2,-1,1,3,4,-1,2,4,5,-1,3,6,7,-1,4,7,8,-1,5,8,9,-1,6,10,11,-1,7,11,12,-1,8,12,13,-1,9,13,14,-1,10,15,16,-1,11,16,17,-1,12,17,18,-1,13,18,19,-1,14,19,20,-1,1,4,2,-1,3,7,4,-1,4,8,5,-1,6,11,7,-1,7,12,8,-1,8,13,9,-1,10,16,11,-1,11,17,12,-1,12,18,13,-1,13,19,14,-1,21,22,23,-1,22,24,25,-1,23,25,26,-1,24,27,28,-1,25,28,29,-1,26,29,30,-1,27,31,32,-1,28,32,33,-1,29,33,34,-1,30,34,35,-1,31,0,2,-1,32,2,5,-1,33,5,9,-1,34,9,14,-1,35,14,20,-1,22,25,23,-1,24,28,25,-1,25,29,26,-1,27,32,28,-1,28,33,29,-1,29,34,30,-1,31,2,32,-1,32,5,33,-1,33,9,34,-1,34,14,35,-1,21,36,22,-1,36,37,38,-1,22,38,24,-1,37,39,40,-1,38,40,41,-1,24,41,27,-1,41,42,43,-1,27,43,31,-1,31,44,0,-1,36,38,22,-1,37,40,38,-1,38,41,24,-1,40,42,41,-1,41,43,27,-1,43,44,31,-1,15,45,16,-1,45,46,47,-1,16,47,17,-1,46,48,49,-1,47,49,50,-1,17,50,18,-1,48,51,52,-1,49,52,53,-1,50,53,54,-1,18,54,19,-1,51,55,56,-1,52,56,57,-1,53,57,58,-1,54,58,59,-1,19,59,20,-1,45,47,16,-1,46,49,47,-1,47,50,17,-1,48,52,49,-1,49,53,50,-1,50,54,18,-1,51,56,52,-1,52,57,53,-1,53,58,54,-1,54,59,19,-1,15,60,45,-1,45,61,46,-1,61,62,63,-1,46,63,48,-1,63,64,65,-1,48,65,51,-1,64,66,67,-1,65,67,68,-1,51,68,55,-1,60,61,45,-1,61,63,46,-1,62,64,63,-1,63,65,48,-1,64,67,65,-1,65,68,51,-1,55,69,56,-1,69,70,71,-1,56,71,57,-1,70,72,73,-1,71,73,74,-1,57,74,58,-1,72,75,76,-1,73,76,77,-1,74,77,78,-1,58,78,59,-1,75,79,80,-1,76,80,81,-1,77,81,82,-1,78,82,83,-1,59,83,20,-1,69,71,56,-1,70,73,71,-1,71,74,57,-1,72,76,73,-1,73,77,74,-1,74,78,58,-1,75,80,76,-1,76,81,77,-1,77,82,78,-1,78,83,59,-1,55,84,69,-1,84,85,86,-1,69,86,70,-1,85,87,88,-1,86,88,89,-1,70,89,72,-1,87,90,91,-1,88,91,92,-1,89,92,93,-1,72,93,75,-1,90,94,95,-1,91,95,96,-1,92,96,97,-1,93,97,98,-1,75,98,79,-1,84,86,69,-1,85,88,86,-1,86,89,70,-1,87,91,88,-1,88,92,89,-1,89,93,72,-1,90,95,91,-1,91,96,92,-1,92,97,93,-1,93,98,75,-1,79,99,80,-1,99,100,101,-1,80,101,81,-1,100,102,103,-1,101,103,104,-1,81,104,82,-1,102,105,106,-1,103,106,107,-1,104,107,108,-1,82,108,83,-1,105,21,23,-1,106,23,26,-1,107,26,30,-1,108,30,35,-1,83,35,20,-1,99,101,80,-1,100,103,101,-1,101,104,81,-1,102,106,103,-1,103,107,104,-1,104,108,82,-1,105,23,106,-1,106,26,107,-1,107,30,108,-1,108,35,83,-1,79,109,99,-1,109,110,111,-1,99,111,100,-1,110,112,113,-1,111,113,114,-1,100,114,102,-1,112,115,116,-1,113,116,117,-1,114,117,118,-1,102,118,105,-1,115,119,120,-1,116,120,121,-1,117,121,122,-1,118,122,123,-1,105,123,21,-1,109,111,99,-1,110,113,111,-1,111,114,100,-1,112,116,113,-1,113,117,114,-1,114,118,102,-1,115,120,116,-1,116,121,117,-1,117,122,118,-1,118,123,105,-1,119,115,124,-1,115,112,128,-1,124,128,125,-1,112,110,129,-1,128,129,130,-1,125,130,126,-1,110,109,131,-1,129,131,132,-1,130,132,133,-1,126,133,127,-1,109,79,98,-1,131,98,97,-1,132,97,96,-1,133,96,95,-1,127,95,94,-1,115,128,124,-1,112,129,128,-1,128,130,125,-1,110,131,129,-1,129,132,130,-1,130,133,126,-1,109,98,131,-1,131,97,132,-1,132,96,133,-1,133,95,127,-1,39,37,135,-1,37,36,137,-1,135,137,138,-1,136,138,139,-1,36,21,123,-1,137,123,122,-1,138,122,121,-1,139,121,120,-1,134,120,119,-1,37,137,135,-1,135,138,136,-1,36,123,137,-1,137,122,138,-1,138,121,139,-1,139,120,134,-1,94,90,140,-1,90,87,141,-1,87,85,142,-1,141,142,143,-1,85,84,144,-1};
return value;
}
private int[] getIndexedFaceSet_8_185_coordIndex_2()
{
int[] value = {142,144,145,-1,84,55,68,-1,144,68,67,-1,145,67,66,-1,90,141,140,-1,87,142,141,-1,85,144,142,-1,142,145,143,-1,84,68,144,-1,144,67,145,-1};
return value;
}
/** Define subarrays using type float[] */
private float[] getCoordinate_9_185_point_1()
{
float[] value = {0.5257f,0.0f,0.8507f,0.3477f,0.0f,0.9376f,0.4636f,0.1875f,0.866f,0.1227f,0.0f,0.9924f,0.2531f,0.2047f,0.9455f,0.368f,0.397f,0.8408f,-0.1227f,0.0f,0.9924f,0.0f,0.2116f,0.9773f,0.1308f,0.4233f,0.8965f,0.2453f,0.5955f,0.765f,-0.3477f,0.0f,0.9376f,-0.2531f,0.2047f,0.9455f,-0.1308f,0.4233f,0.8965f,0.0f,0.6142f,0.7891f,0.1159f,0.7501f,0.6511f,-0.5257f,0.0f,0.8507f,-0.4636f,0.1875f,0.866f,-0.368f,0.397f,0.8408f,-0.2453f,0.5955f,0.765f,-0.1159f,0.7501f,0.6511f,0.0f,0.8507f,0.5257f,0.8507f,0.5257f,0.0f,0.866f,0.4636f,0.1875f,0.7501f,0.6511f,0.1159f,0.8408f,0.368f,0.397f,0.7408f,0.5844f,0.3313f,0.5955f,0.765f,0.2453f,0.765f,0.2453f,0.5955f,0.6849f,0.4732f,0.5541f,0.5541f,0.6849f,0.4732f,0.397f,0.8408f,0.368f,0.6511f,0.1159f,0.7501f,0.5844f,0.3313f,0.7408f,0.4732f,0.5541f,0.6849f,0.3313f,0.7408f,0.5844f,0.1875f,0.866f,0.4636f,0.9376f,0.3477f,0.0f,0.9924f,0.1227f,0.0f,0.9455f,0.2531f,0.2047f,0.9924f,0.0f,0.0f,0.9773f,0.0f,0.2116f,0.8965f,0.1308f,0.4233f,0.8965f,0.0f,0.4233f,0.7891f,0.0f,0.6142f,0.6511f,0.0f,0.7501f,-0.6511f,0.1159f,0.7501f,-0.765f,0.2453f,0.5955f,-0.5844f,0.3313f,0.7408f,-0.8408f,0.368f,0.397f,-0.6849f,0.4732f,0.5541f,-0.4732f,0.5541f,0.6849f,-0.866f,0.4636f,0.1875f,-0.7408f,0.5844f,0.3313f,-0.5541f,0.6849f,0.4732f,-0.3313f,0.7408f,0.5844f,-0.8507f,0.5257f,0.0f,-0.7501f,0.6511f,0.1159f,-0.5955f,0.765f,0.2453f,-0.397f,0.8408f,0.368f,-0.1875f,0.866f,0.4636f,-0.6511f,0.0f,0.7501f,-0.7891f,0.0f,0.6142f,-0.8965f,0.0f,0.4233f,-0.8965f,0.1308f,0.4233f,-0.9773f,0.0f,0.2116f,-0.9455f,0.2531f,0.2047f,-0.9924f,0.0f,0.0f,-0.9924f,0.1227f,0.0f,-0.9376f,0.3477f,0.0f,-0.7501f,0.6511f,-0.1159f,-0.5955f,0.765f,-0.2453f,-0.6142f,0.7891f,0.0f,-0.397f,0.8408f,-0.368f,-0.4233f,0.8965f,-0.1308f,-0.4233f,0.8965f,0.1308f,-0.1875f,0.866f,-0.4636f,-0.2047f,0.9455f,-0.2531f,-0.2116f,0.9773f,0.0f,-0.2047f,0.9455f,0.2531f,0.0f,0.8507f,-0.5257f,0.0f,0.9376f,-0.3477f,0.0f,0.9924f,-0.1227f,0.0f,0.9924f,0.1227f,0.0f,0.9376f,0.3477f,-0.866f,0.4636f,-0.1875f,-0.8408f,0.368f,-0.397f,-0.7408f,0.5844f,-0.3313f,-0.765f,0.2453f,-0.5955f,-0.6849f,0.4732f,-0.5541f,-0.5541f,0.6849f,-0.4732f,-0.6511f,0.1159f,-0.7501f,-0.5844f,0.3313f,-0.7408f,-0.4732f,0.5541f,-0.6849f,-0.3313f,0.7408f,-0.5844f,-0.5257f,0.0f,-0.8507f,-0.4636f,0.1875f,-0.866f,-0.368f,0.397f,-0.8408f,-0.2453f,0.5955f,-0.765f,-0.1159f,0.7501f,-0.6511f,0.1875f,0.866f,-0.4636f};
return value;
}
private float[] getCoordinate_9_185_point_2()
{
float[] value = {0.397f,0.8408f,-0.368f,0.2047f,0.9455f,-0.2531f,0.5955f,0.765f,-0.2453f,0.4233f,0.8965f,-0.1308f,0.2116f,0.9773f,0.0f,0.7501f,0.6511f,-0.1159f,0.6142f,0.7891f,0.0f,0.4233f,0.8965f,0.1308f,0.2047f,0.9455f,0.2531f,0.1159f,0.7501f,-0.6511f,0.2453f,0.5955f,-0.765f,0.3313f,0.7408f,-0.5844f,0.368f,0.397f,-0.8408f,0.4732f,0.5541f,-0.6849f,0.5541f,0.6849f,-0.4732f,0.4636f,0.1875f,-0.866f,0.5844f,0.3313f,-0.7408f,0.6849f,0.4732f,-0.5541f,0.7408f,0.5844f,-0.3313f,0.5257f,0.0f,-0.8507f,0.6511f,0.1159f,-0.7501f,0.765f,0.2453f,-0.5955f,0.8408f,0.368f,-0.397f,0.866f,0.4636f,-0.1875f,0.3477f,0.0f,-0.9376f,0.1227f,0.0f,-0.9924f,-0.1227f,0.0f,-0.9924f,-0.3477f,0.0f,-0.9376f,0.2531f,0.2047f,-0.9455f,0.1308f,0.4233f,-0.8965f,0.0f,0.2116f,-0.9773f,0.0f,0.6142f,-0.7891f,-0.1308f,0.4233f,-0.8965f,-0.2531f,0.2047f,-0.9455f,0.6511f,0.0f,-0.7501f,0.9773f,0.0f,-0.2116f,0.8965f,0.0f,-0.4233f,0.9455f,0.2531f,-0.2047f,0.8965f,0.1308f,-0.4233f,0.7891f,0.0f,-0.6142f,-0.6511f,0.0f,-0.7501f,-0.7891f,0.0f,-0.6142f,-0.8965f,0.1308f,-0.4233f,-0.8965f,0.0f,-0.4233f,-0.9455f,0.2531f,-0.2047f,-0.9773f,0.0f,-0.2116f};
return value;
}
/** Large attribute array: IndexedFaceSet coordIndex field, scene-graph level=12, element #58, 1040 total numbers.
* Reassemble split array as single method to improve readability and runnability.
* Provide large array values via separate methods, hoping to avoid 'code too large' Java compilation errors.
* Individual Java methods (including aggregated initializations) are limited to 64KB.
* @see https://stackoverflow.com/questions/2407912/code-too-large-compilation-error-in-java
* @see https://stackoverflow.com/questions/11437905/java-too-many-constants-jvm-error
*/
private MFInt32Object getIndexedFaceSet_12_58_coordIndex()
{
MFInt32Object IndexedFaceSet_12_58_coordIndex = new MFInt32Object()/*2.finalize*/
.append(new MFInt32Object(getIndexedFaceSet_12_58_coordIndex_1()))
.append(new MFInt32Object(getIndexedFaceSet_12_58_coordIndex_2()));
return IndexedFaceSet_12_58_coordIndex;
}
/** Large attribute array: Coordinate point field, scene-graph level=13, element #58, 438 total numbers made up of 146 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 MFVec3fObject getCoordinate_13_58_point()
{
MFVec3fObject Coordinate_13_58_point = new MFVec3fObject()/*2.finalize*/
.append(new MFVec3fObject(getCoordinate_13_58_point_1()))
.append(new MFVec3fObject(getCoordinate_13_58_point_2()));
return Coordinate_13_58_point;
}
/** Large attribute array: IndexedFaceSet coordIndex field, scene-graph level=12, element #64, 1040 total numbers.
* Reassemble split array as single method to improve readability and runnability.
* Provide large array values via separate methods, hoping to avoid 'code too large' Java compilation errors.
* Individual Java methods (including aggregated initializations) are limited to 64KB.
* @see https://stackoverflow.com/questions/2407912/code-too-large-compilation-error-in-java
* @see https://stackoverflow.com/questions/11437905/java-too-many-constants-jvm-error
*/
private MFInt32Object getIndexedFaceSet_12_64_coordIndex()
{
MFInt32Object IndexedFaceSet_12_64_coordIndex = new MFInt32Object()/*2.finalize*/
.append(new MFInt32Object(getIndexedFaceSet_12_64_coordIndex_1()))
.append(new MFInt32Object(getIndexedFaceSet_12_64_coordIndex_2()));
return IndexedFaceSet_12_64_coordIndex;
}
/** Large attribute array: Coordinate point field, scene-graph level=13, element #64, 438 total numbers made up of 146 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 MFVec3fObject getCoordinate_13_64_point()
{
MFVec3fObject Coordinate_13_64_point = new MFVec3fObject()/*2.finalize*/
.append(new MFVec3fObject(getCoordinate_13_64_point_1()))
.append(new MFVec3fObject(getCoordinate_13_64_point_2()));
return Coordinate_13_64_point;
}
/** Large attribute array: IndexedFaceSet coordIndex field, scene-graph level=8, element #185, 1040 total numbers.
* Reassemble split array as single method to improve readability and runnability.
* Provide large array values via separate methods, hoping to avoid 'code too large' Java compilation errors.
* Individual Java methods (including aggregated initializations) are limited to 64KB.
* @see https://stackoverflow.com/questions/2407912/code-too-large-compilation-error-in-java
* @see https://stackoverflow.com/questions/11437905/java-too-many-constants-jvm-error
*/
private MFInt32Object getIndexedFaceSet_8_185_coordIndex()
{
MFInt32Object IndexedFaceSet_8_185_coordIndex = new MFInt32Object()/*2.finalize*/
.append(new MFInt32Object(getIndexedFaceSet_8_185_coordIndex_1()))
.append(new MFInt32Object(getIndexedFaceSet_8_185_coordIndex_2()));
return IndexedFaceSet_8_185_coordIndex;
}
/** Large attribute array: Coordinate point field, scene-graph level=9, element #185, 438 total numbers made up of 146 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 MFVec3fObject getCoordinate_9_185_point()
{
MFVec3fObject Coordinate_9_185_point = new MFVec3fObject()/*2.finalize*/
.append(new MFVec3fObject(getCoordinate_9_185_point_1()))
.append(new MFVec3fObject(getCoordinate_9_185_point_2()));
return Coordinate_9_185_point;
}
/** The initialized model object, created within initialize() method. */
private X3DObject x3dModel;
/** Provide a
* shallow copy
* of the X3D model.
* @see X3DObject
* @return TridentMissileTubePrototype model
*/
public X3DObject 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 X3DObject.handleArguments(args)
* @see X3DObject.validationReport()
* @see CommandLine
* @see CommandLine.USAGE
* @see ConfigurationProperties
*/
public static void main(String args[])
{
X3DObject thisExampleX3dObject = new TridentMissileTubePrototype().getX3dModel();
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(X3DObject.FILE_EXTENSION_X3D) ||
arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_CLASSICVRML) ||
arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_X3DB) ||
arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_VRML97) ||
arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_EXI) ||
arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_GZIP) ||
arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_ZIP) ||
arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_HTML) ||
arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_XHTML))
{
argumentsLoadNewModel = true;
fileName = arg;
}
}
}
if (argumentsLoadNewModel)
System.out.println("WARNING: \"TridentMissileTubePrototype\" 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
thisExampleX3dObject.handleArguments(args);
if (validate)
{
System.out.print("Java program \"TridentMissileTubePrototype\" self-validation test results: ");
String validationResults = thisExampleX3dObject.validationReport();
System.out.println(validationResults);
}
}
}