package Savage.ShipsMilitary.DDG51FlightIIAUnitedStates; /* 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.fields.*; import org.web3d.x3d.jsail.Geometry3D.*; import org.web3d.x3d.jsail.Grouping.*; import org.web3d.x3d.jsail.Navigation.*; import org.web3d.x3d.jsail.Networking.*; import org.web3d.x3d.jsail.Shape.*; import org.web3d.x3d.jsail.Texturing.*; // Javadoc annotations follow, see below for source. /** *

DDG-51 Flight IIA Arleigh Burke forward superstructure with Mast.

Related links: ForwardSuperstructure.java source, ForwardSuperstructure catalog page, X3D Resources, X3D Scene Authoring Hints, and X3D Tooltips.

meta tags   Document Metadata
title ForwardSuperstructure.x3d
description DDG-51 Flight IIA Arleigh Burke forward superstructure with Mast
warning move Phalanx to Savage/Weapons/Guns
creator LT Joe Sears, USN
modified 3 June 2012
modified 22 August 2018
drawing http://combatindex.com/store/3d
reference http://www.fas.org/man/dod-101/sys/ship/ddg-51.htm
generator X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit
identifier https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/ForwardSuperstructure.x3d
Image nonkskid.jpg
license ../../license.html
 

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 LT Joe Sears, USN */ public class ForwardSuperstructure { /** Default constructor to create this object. */ public ForwardSuperstructure () { 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("ForwardSuperstructure.x3d")) .addMeta(new metaObject().setName(metaObject.NAME_DESCRIPTION).setContent("DDG-51 Flight IIA Arleigh Burke forward superstructure with Mast")) .addMeta(new metaObject().setName(metaObject.NAME_WARNING ).setContent("move Phalanx to Savage/Weapons/Guns")) .addMeta(new metaObject().setName(metaObject.NAME_CREATOR ).setContent("LT Joe Sears, USN")) .addMeta(new metaObject().setName(metaObject.NAME_MODIFIED ).setContent("3 June 2012")) .addMeta(new metaObject().setName(metaObject.NAME_MODIFIED ).setContent("22 August 2018")) .addMeta(new metaObject().setName(metaObject.NAME_DRAWING ).setContent("http://combatindex.com/store/3d")) .addMeta(new metaObject().setName(metaObject.NAME_REFERENCE ).setContent("http://www.fas.org/man/dod-101/sys/ship/ddg-51.htm")) .addMeta(new metaObject().setName(metaObject.NAME_GENERATOR ).setContent("X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit")) .addMeta(new metaObject().setName(metaObject.NAME_IDENTIFIER ).setContent("https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/ForwardSuperstructure.x3d")) .addMeta(new metaObject().setName(metaObject.NAME_IMAGE ).setContent("nonkskid.jpg")) .addMeta(new metaObject().setName(metaObject.NAME_LICENSE ).setContent("../../license.html"))) .setScene(new SceneObject() .addChild(new ViewpointObject().setDescription("ForwardSuper Structure STBD Side").setOrientation(0.029f,0.999f,0.019f,1.4458f).setPosition(50.2f,20.4f,-89.1f)) .addChild(new ViewpointObject().setDescription("Forward Superstructure").setOrientation(0.006f,1.0f,-0.005f,3.1116f).setPosition(1.5f,18.3f,-143.3f)) .addChild(new ViewpointObject().setDescription("Chaff Launchers / SLQ-32").setOrientation(-0.325f,0.941f,0.093f,0.3293f).setPosition(14.5f,15.2f,-71.9f)) .addChild(new GroupObject("FWDSuperstructure") .addChild(new GroupObject("FWD01") .addChild(new TransformObject().setTranslation(0.0f,6.0f,-75.0f) .addChild(new ShapeObject() .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-10.0f,0.0f,-9.0f,3.55f,9.0f,3.55f,10.0f,0.0f,-10.0f,0.0f})).setOrientation(new MFRotationObject(new float[] {1.0f,0.0f,0.0f,-.2f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,.2f})).setScale(new MFVec2fObject(new float[] {.33f,1.015f,1.0f,1.0f,1.0f,1.0f,.5f,1.0f})).setSolid(false).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-8.5f,0.0f,0.0f,-32.0f,0.0f,0.0f,-36.0f}))) .setAppearance(new AppearanceObject("HazeGray") .setMaterial(new MaterialObject().setSpecularColor(.4f,.4f,.4f))))) .addChild(new TransformObject("FWD01NonSkid").setTranslation(0.0f,9.56f,-75.0f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject() .setTexture(new ImageTextureObject("NONSKID").setUrl(new String[] {"nonskid.jpg","https://savage.nps.edu/Savage/ShipsMilitary/DDG-ArleighBurke-UnitedStates/nonskid.jpg"}))) .setGeometry(new ExtrusionObject().setCreaseAngle(.85f).setCrossSection(new MFVec2fObject(new float[] {-9.0f,0.0f,9.0f,0.0f,9.0f,-.01f,-9.0f,-.01f,-9.0f,0.0f})).setScale(new MFVec2fObject(new float[] {.33f,1.0f,1.0f,1.0f,1.0f,1.0f,.5f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,-.72f,0.0f,0.0f,-8.5f,0.0f,0.0f,-32.0f,0.0f,0.0f,-35.3f})))))) .addChild(new GroupObject("FWD02Stack") .addChild(new TransformObject().setTranslation(0.0f,9.55f,-76.5f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-3.5f,-.07f,-2.3f,6.0f,2.3f,6.0f,3.5f,-.07f,-3.5f,-.07f})).setOrientation(new MFRotationObject(new float[] {1.0f,0.0f,0.0f,-.2f,1.0f,0.0f,0.0f,.42f})).setScale(new MFVec2fObject(new float[] {.91f,1.02f,1.0f,1.1f})).setSolid(false).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-13.0f})))))) .addChild(new GroupObject("FWDStackArea") .addChild(new TransformObject().setTranslation(0.0f,0.0f,-15.71f) .addChild(new TransformObject("Aft05Aft").setTranslation(0.0f,15.55f,-62.0f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-2.1f,0.0f,-1.9f,1.5f,1.9f,1.5f,2.1f,0.0f,-2.1f,0.0f})).setScale(new MFVec2fObject(new float[] {1.0f,.0001f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-.2f}))))) .addChild(new TransformObject("Aft05FWD").setTranslation(0.0f,15.55f,-70.80f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new ExtrusionObject().setCcw(false).setCrossSection(new MFVec2fObject(new float[] {2.3f,0.0f,2.1f,1.5f,-2.1f,1.5f,-2.3f,0.0f,2.3f,0.0f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,.0001f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,-0.0f,0.0f,0.0f,-.3f}))))) .addChild(new TransformObject("FWDStackSTBD").setTranslation(0.0f,15.55f,-62.0f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {2.1f,0.0f,2.1f,1.5f,2.3f,0.0f,2.1f,0.0f})).setScale(new MFVec2fObject(new float[] {.91f,.0001f,.91f,1.0f,1.0f,1.0f,1.0f,.0001f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-.2f,0.0f,0.0f,-8.8f,0.0f,0.0f,-9.0f}))))) .addChild(new TransformObject("FWDStackPort").setTranslation(0.0f,15.55f,-62.0f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-2.3f,0.0f,-2.1f,1.5f,-2.1f,0.0f,-2.3f,0.0f})).setScale(new MFVec2fObject(new float[] {.91f,.0001f,.91f,1.0f,1.0f,1.0f,1.0f,.0001f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-.2f,0.0f,0.0f,-8.8f,0.0f,0.0f,-9.0f})))))) .addChild(new TransformObject("STACK").setScale(.9f,1.0f,.9f).setTranslation(-1.15f,17.0f,-60.71f) .addChild(new TransformObject().setTranslation(1.0f,-1.0f,-21.4f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject() .setMaterial(new MaterialObject("STACKCOLOR").setDiffuseColor(.3f,.3f,.3f))) .setGeometry(new CylinderObject().setBottom(false).setHeight(1.2f).setRadius(1.3f)))) .addChild(new TransformObject().setTranslation(1.0f,0.0f,-21.4f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject() .setMaterial(new MaterialObject().setUSE("STACKCOLOR"))) .setGeometry(new CylinderObject().setBottom(false).setHeight(1.2f).setRadius(1.5f)))) .addChild(new TransformObject().setTranslation(1.0f,.2f,-21.4f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject() .setMaterial(new MaterialObject().setUSE("STACKCOLOR"))) .setGeometry(new CylinderObject().setBottom(false).setHeight(1.2f).setRadius(1.7f))))) .addChild(new TransformObject().setTranslation(0.0f,0.0f,-4.25f) .addChild(new TransformObject().setUSE("STACK"))) .addChild(new TransformObject().setScale(.5f,1.0f,.5f).setTranslation(1.0f,0.0f,-42.2f) .addChild(new TransformObject().setUSE("STACK")))) .addChild(new GroupObject("FWD02") .addChild(new TransformObject().setTranslation(0.0f,9.55f,-87.0f) .addChild(new ShapeObject() .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-9.0f,0.0f,-8.0f,2.5f,8.0f,2.5f,9.0f,0.0f,-9.0f,0.0f})).setOrientation(new MFRotationObject(new float[] {1.0f,0.0f,0.0f,-.2f,0.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,.2f})).setScale(new MFVec2fObject(new float[] {1.0f,1.02f,1.0f,1.0f,.42f,1.02f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-13.0f,0.0f,0.0f,-18.5f}))) .setAppearance(new AppearanceObject().setUSE("HazeGray")))) .addChild(new TransformObject().setTranslation(0.0f,9.55f,-87.0f) .addChild(new ShapeObject() .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-9.0f,0.0f,-8.0f,2.5f,8.0f,2.5f,9.0f,0.0f,-9.0f,0.0f})).setOrientation(new MFRotationObject(new float[] {0.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,.2f})).setScale(new MFVec2fObject(new float[] {.35f,1.0f,.26f,1.02f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,-17.0f,0.0f,0.0f,-23.3f}))) .setAppearance(new AppearanceObject().setUSE("HazeGray")))) .addChild(new TransformObject("FWD02NonSkid").setTranslation(0.0f,12.06f,-87.0f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject() .setTexture(new ImageTextureObject().setUSE("NONSKID"))) .setGeometry(new ExtrusionObject().setCreaseAngle(.85f).setCrossSection(new MFVec2fObject(new float[] {-8.0f,0.0f,8.0f,0.0f,8.0f,-.01f,-8.0f,-.01f,-8.0f,0.0f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f,.34f,1.0f,.26f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,-.5f,0.0f,0.0f,-13.0f,0.0f,0.0f,-18.0f,0.0f,0.0f,-22.8f}))))) .addChild(new TransformObject().setRotation(0.0f,0.0f,1.0f,3.14f).setScale(.75f,.75f,.75f).setTranslation(-3.0f,3.75f,-47.0f) .addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,1.57f) .addChild(new TransformObject() .addChild(new InlineObject().setUrl(new String[] {"Phalanx.x3d","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/Phalanx.x3d","Phalanx.wrl","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/Phalanx.wrl"}))))) .addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,2.36f).setScale(.75f,.75f,.75f).setTranslation(7.5f,10.2f,-85.0f) .addChild(new InlineObject("ChaffTube").setUrl(new String[] {"../DD963-Spruance-UnitedStates/ChaffTubes.x3d","https://savage.nps.edu/Savage/ShipsMilitary/DD963-Spruance-UnitedStates/ChaffTubes.x3d","../DD963-Spruance-UnitedStates/ChaffTubes.wrl","https://savage.nps.edu/Savage/ShipsMilitary/DD963-Spruance-UnitedStates/ChaffTubes.wrl"}))) .addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,2.36f).setScale(.75f,.75f,.75f).setTranslation(5.5f,10.2f,-85.0f) .addChild(new InlineObject().setUSE("ChaffTube"))) .addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,.785f).setScale(.75f,.75f,.75f).setTranslation(6.0f,10.2f,-82.5f) .addChild(new InlineObject().setUSE("ChaffTube"))) .addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,-2.36f).setScale(.75f,.75f,.75f).setTranslation(-7.5f,10.2f,-85.0f) .addChild(new InlineObject().setUSE("ChaffTube"))) .addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,-2.36f).setScale(.75f,.75f,.75f).setTranslation(-5.5f,10.2f,-85.0f) .addChild(new InlineObject().setUSE("ChaffTube"))) .addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,-.785f).setScale(.75f,.75f,.75f).setTranslation(-6.0f,10.2f,-82.5f) .addChild(new InlineObject().setUSE("ChaffTube")))) .addChild(new GroupObject("FWD03") .addChild(new TransformObject("FWD03Lower").setTranslation(0.0f,12.05f,-90.0f) .addChild(new ShapeObject() .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-8.0f,0.0f,-7.35f,2.25f,7.35f,2.25f,8.0f,0.0f,-8.0f,0.0f})).setOrientation(new MFRotationObject(new float[] {1.0f,0.0f,0.0f,-.2f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,.2f})).setScale(new MFVec2fObject(new float[] {.25f,1.02f,1.0f,1.0f,1.0f,1.0f,.42f,1.02f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-5.5f,0.0f,0.0f,-10.0f,0.0f,0.0f,-15.0f}))) .setAppearance(new AppearanceObject().setUSE("HazeGray")))) .addChild(new TransformObject("FWD03Upper").setTranslation(0.0f,14.3f,-90.0f) .addChild(new ShapeObject() .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-7.35f,0.0f,-7.0f,1.25f,7.0f,1.25f,7.35f,0.0f,-7.35f,0.0f})).setOrientation(new MFRotationObject(new float[] {1.0f,0.0f,0.0f,-.2f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,.2f})).setScale(new MFVec2fObject(new float[] {.25f,1.02f,1.2f,1.0f,1.2f,1.0f,.42f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,-.45f,0.0f,0.0f,-6.8f,0.0f,0.0f,-8.55f,0.0f,0.0f,-14.55f}))) .setAppearance(new AppearanceObject().setUSE("HazeGray")))) .addChild(new TransformObject("FWD03NonSkid").setTranslation(0.0f,15.56f,-90.0f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject() .setTexture(new ImageTextureObject().setUSE("NONSKID"))) .setGeometry(new ExtrusionObject().setCreaseAngle(.85f).setCrossSection(new MFVec2fObject(new float[] {-7.0f,0.0f,7.0f,0.0f,7.0f,-.01f,-7.0f,-.01f,-7.0f,0.0f})).setScale(new MFVec2fObject(new float[] {.25f,1.0f,.7f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,-.7f,0.0f,0.0f,-3.55f}))))) .addChild(new TransformObject("FWD03FWDDeck").setTranslation(0.0f,15.56f,-90.0f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject() .setMaterial(new MaterialObject().setDiffuseColor(.2f,.2f,.2f))) .setGeometry(new ExtrusionObject().setCreaseAngle(.85f).setCrossSection(new MFVec2fObject(new float[] {-7.0f,0.0f,7.0f,0.0f,7.0f,-.01f,-7.0f,-.01f,-7.0f,0.0f})).setScale(new MFVec2fObject(new float[] {.7f,1.0f,1.2f,1.0f,1.2f,1.0f,1.0f,1.0f,.42f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,-3.55f,0.0f,0.0f,-6.8f,0.0f,0.0f,-8.5f,0.0f,0.0f,-10.0f,0.0f,0.0f,-14.3f})))))) .addChild(new GroupObject("FWD04") .addChild(new TransformObject().setTranslation(0.0f,15.55f,-91.97f) .addChild(new ShapeObject() .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-7.0f,-.05f,-6.5f,2.0f,6.5f,2.0f,7.0f,-.05f,-7.0f,-.05f})).setOrientation(new MFRotationObject(new float[] {1.0f,0.0f,0.0f,-.2f,0.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,.2f})).setScale(new MFVec2fObject(new float[] {.452f,1.02f,1.003f,.99f,.635f,1.02f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-3.55f,0.0f,0.0f,-6.0f}))) .setAppearance(new AppearanceObject().setUSE("HazeGray")))) .addChild(new TransformObject("FWD04NonSkid").setTranslation(0.0f,17.55f,-91.97f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject() .setTexture(new ImageTextureObject().setUSE("NONSKID"))) .setGeometry(new ExtrusionObject().setCreaseAngle(.85f).setCrossSection(new MFVec2fObject(new float[] {-6.5f,0.0f,6.5f,0.0f,6.5f,-.01f,-6.5f,-.01f,-6.5f,0.0f})).setScale(new MFVec2fObject(new float[] {.44f,1.01f,1.0f,1.0f,.635f,1.01f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,-.38f,0.0f,0.0f,-3.55f,0.0f,0.0f,-5.62f})))))) .addChild(new GroupObject("FWDBridge") .addChild(new TransformObject().setTranslation(0.0f,15.45f,-98.3f) .addChild(new ShapeObject() .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-4.0f,0.0f,-4.25f,1.25f,4.25f,1.25f,4.0f,0.0f,-4.0f,0.0f})).setOrientation(new MFRotationObject(new float[] {1.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,-.2f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f,.735f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,2.0f,0.0f,0.0f,-4.82f,0.0f,0.0f,-6.0f}))) .setAppearance(new AppearanceObject().setUSE("HazeGray")))) .addChild(new TransformObject("FWDBridgeNonSkid").setTranslation(0.0f,16.71f,-98.3f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject() .setTexture(new ImageTextureObject().setUSE("NONSKID"))) .setGeometry(new ExtrusionObject().setCreaseAngle(.85f).setCrossSection(new MFVec2fObject(new float[] {-4.25f,0.0f,4.25f,0.0f,4.25f,-.01f,-4.25f,-.01f,-4.25f,0.0f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f,.735f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,2.0f,0.0f,0.0f,-4.82f,0.0f,0.0f,-6.25f}))))) .addChild(new GroupObject("Windows") .addChild(new TransformObject("STBD1").setRotation(0.0f,0.0f,1.0f,-.2f).setTranslation(4.11f,16.1f,-99.2f) .addChild(new ShapeObject("WindowPane") .setAppearance(new AppearanceObject("WindowColor") .setMaterial(new MaterialObject().setDiffuseColor(0.00f,0.40f,0.80f))) .setGeometry(new BoxObject().setSize(.05f,1.0f,1.0f)))) .addChild(new TransformObject("STBD2").setRotation(0.0f,0.0f,1.0f,-.2f).setTranslation(4.11f,16.1f,-100.3f) .addChild(new ShapeObject().setUSE("WindowPane"))) .addChild(new TransformObject("STBD3").setRotation(0.0f,0.0f,1.0f,-.2f).setTranslation(4.11f,16.1f,-101.4f) .addChild(new ShapeObject().setUSE("WindowPane"))) .addChild(new TransformObject("STBD4").setRotation(0.0f,0.0f,1.0f,-.2f).setTranslation(4.11f,16.1f,-102.5f) .addChild(new ShapeObject().setUSE("WindowPane"))) .addChild(new TransformObject("Port1").setRotation(0.0f,0.0f,1.0f,.2f).setTranslation(-4.11f,16.1f,-99.2f) .addChild(new ShapeObject().setUSE("WindowPane"))) .addChild(new TransformObject("Port2").setRotation(0.0f,0.0f,1.0f,.2f).setTranslation(-4.11f,16.1f,-100.3f) .addChild(new ShapeObject().setUSE("WindowPane"))) .addChild(new TransformObject("Port3").setRotation(0.0f,0.0f,1.0f,.2f).setTranslation(-4.11f,16.1f,-101.4f) .addChild(new ShapeObject().setUSE("WindowPane"))) .addChild(new TransformObject("Port4").setRotation(0.0f,0.0f,1.0f,.2f).setTranslation(-4.11f,16.1f,-102.5f) .addChild(new ShapeObject().setUSE("WindowPane"))) .addChild(new TransformObject("FWD1").setRotation(1.0f,0.0f,0.0f,-.2f).setTranslation(2.4f,16.1f,-104.43f) .addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,1.57f) .addChild(new ShapeObject("FWDWindowPane") .setAppearance(new AppearanceObject().setUSE("WindowColor")) .setGeometry(new BoxObject().setSize(.05f,1.0f,1.1f))))) .addChild(new TransformObject("FWD2").setRotation(1.0f,0.0f,0.0f,-.2f).setTranslation(1.2f,16.1f,-104.43f) .addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,1.57f) .addChild(new ShapeObject().setUSE("FWDWindowPane")))) .addChild(new TransformObject("FWD3").setRotation(1.0f,0.0f,0.0f,-.2f).setTranslation(0.0f,16.1f,-104.43f) .addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,1.57f) .addChild(new ShapeObject().setUSE("FWDWindowPane")))) .addChild(new TransformObject("FWD4").setRotation(1.0f,0.0f,0.0f,-.2f).setTranslation(-1.2f,16.1f,-104.43f) .addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,1.57f) .addChild(new ShapeObject().setUSE("FWDWindowPane")))) .addChild(new TransformObject("FWD5").setRotation(1.0f,0.0f,0.0f,-.2f).setTranslation(-2.35f,16.1f,-104.43f) .addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,1.57f) .addChild(new ShapeObject().setUSE("FWDWindowPane")))) .addChild(new TransformObject("STBDCorner").setRotation(0.0f,1.0f,0.0f,.68f).setTranslation(3.61f,16.1f,-103.75f) .addChild(new TransformObject().setRotation(0.0f,0.0f,1.0f,-.18f) .addChild(new ShapeObject("CornerWindowPane") .setAppearance(new AppearanceObject().setUSE("WindowColor")) .setGeometry(new BoxObject().setSize(.05f,1.0f,1.4f))))) .addChild(new TransformObject("PortCorner").setRotation(0.0f,1.0f,0.0f,-.69f).setTranslation(-3.61f,16.1f,-103.75f) .addChild(new TransformObject().setRotation(0.0f,0.0f,1.0f,.18f) .addChild(new ShapeObject().setUSE("CornerWindowPane")))))) .addChild(new GroupObject("FWD05DirectorRoom") .addChild(new TransformObject().setTranslation(0.0f,16.7f,-93.5f) .addChild(new ShapeObject() .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-2.0f,0.0f,-1.75f,1.5f,1.75f,1.5f,2.0f,0.0f,-2.0f,0.0f})).setOrientation(new MFRotationObject(new float[] {1.0f,0.0f,0.0f,-.2f,1.0f,0.0f,0.0f,.2f})).setScale(new MFVec2fObject(new float[] {1.0f,1.02f,1.0f,1.02f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-11.05f}))) .setAppearance(new AppearanceObject().setUSE("HazeGray")))) .addChild(new TransformObject("FWD05DirectorRoomSkid").setTranslation(0.0f,18.21f,-93.5f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject() .setTexture(new ImageTextureObject().setUSE("NONSKID"))) .setGeometry(new ExtrusionObject().setCreaseAngle(.85f).setCrossSection(new MFVec2fObject(new float[] {-1.75f,0.0f,1.75f,0.0f,1.75f,-.01f,-1.75f,-.01f,-1.75f,0.0f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,-.3f,0.0f,0.0f,-10.75f}))))) .addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,3.14f).setTranslation(0.0f,20.1f,-99.0f) .addChild(new InlineObject("MissileDirector").setUrl(new String[] {"../DDG-ArleighBurke-UnitedStates/MissileDirector.x3d","https://savage.nps.edu/Savage/ShipsMilitary/DDG-ArleighBurke-UnitedStates/MissileDirector.x3d","../DDG-ArleighBurke-UnitedStates/MissileDirector.wrl","https://savage.nps.edu/Savage/ShipsMilitary/DDG-ArleighBurke-UnitedStates/MissileDirector.wrl"})))) .addChild(new GroupObject("Mast") .addChild(new TransformObject("MastPost").setRotation(1.0f,0.0f,0.0f,.35f).setTranslation(-.50f,18.0f,-96.0f) .addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,.785f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-.5f,0.0f,-.5f,1.5f,.5f,1.5f,.5f,0.0f,-.5f,0.0f})).setOrientation(new MFRotationObject(new float[] {0.0f,0.0f,0.0f,0.0f,1.0f,0.0f,1.0f,-.35f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,15.0f,0.0f})))))) .addChild(new TransformObject("STBDSupport").setRotation(0.0f,1.0f,0.0f,-.785f).setTranslation(2.95f,15.5f,-92.0f) .addChild(new TransformObject().setRotation(1.0f,0.0f,1.0f,.24f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-.125f,0.0f,-.125f,.25f,.125f,.25f,.125f,0.0f,-.125f,0.0f})).setOrientation(new MFRotationObject(new float[] {0.0f,0.0f,0.0f,0.0f,1.0f,0.0f,1.0f,0.0f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,11.0f,0.0f})))))) .addChild(new TransformObject("PortSupport").setRotation(0.0f,1.0f,0.0f,-.785f).setTranslation(-2.7f,15.5f,-92.0f) .addChild(new TransformObject().setRotation(1.0f,0.0f,1.0f,-.26f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-.125f,0.0f,-.125f,.25f,.125f,.25f,.125f,0.0f,-.125f,0.0f})).setOrientation(new MFRotationObject(new float[] {0.0f,0.0f,0.0f,0.0f,1.0f,0.0f,1.0f,0.0f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,11.0f,0.0f})))))) .addChild(new TransformObject("IFF").setTranslation(0.0f,32.0f,-90.85f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new CylinderObject().setHeight(.25f).setRadius(2f))) .addChild(new TransformObject().setTranslation(0.0f,.25f,-.8f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject() .setMaterial(new MaterialObject().setDiffuseColor(1.0f,1.0f,1.0f))) .setGeometry(new CylinderObject().setHeight(.75f).setRadius(.5f)))) .addChild(new TransformObject().setTranslation(0.0f,.65f,-.8f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject() .setMaterial(new MaterialObject().setDiffuseColor(1.0f,1.0f,1.0f))) .setGeometry(new SphereObject().setRadius(.5f))))) .addChild(new TransformObject("LowerYardarm").setRotation(1.0f,0.0f,0.0f,.785f).setTranslation(0.0f,26.0f,-92.5f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-.25f,0.0f,-.25f,.25f,0.0f,.25f,0.0f,0.0f,-.25f,0.0f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {-10.0f,0.0f,0.0f,10.0f,0.0f,0.0f}))))) .addChild(new TransformObject("UpperYardarm").setRotation(1.0f,0.0f,0.0f,.785f).setTranslation(0.0f,30.0f,-91.0f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-.25f,0.0f,-.25f,.25f,0.0f,.25f,0.0f,0.0f,-.25f,0.0f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {-7.0f,0.0f,0.0f,7.0f,0.0f,0.0f}))))) .addChild(new TransformObject("Extension").setRotation(1.0f,0.0f,0.0f,.35f).setTranslation(-.075f,32.05f,-89.8f) .addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,.785f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-.125f,0.0f,-.125f,.25f,.125f,.25f,.125f,0.0f,-.125f,0.0f})).setOrientation(new MFRotationObject(new float[] {0.0f,0.0f,0.0f,0.0f,1.0f,0.0f,1.0f,-.3f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,3.0f,0.0f})))))) .addChild(new TransformObject("Adcock").setTranslation(0.0f,36.25f,-88.684f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new CylinderObject().setHeight(3f).setRadius(.1f))) .addChild(new TransformObject().setTranslation(0.0f,.3f,0.0f) .addChild(new TransformObject().setTranslation(0.0f,-1.1f,.3f) .addChild(new ShapeObject("AdcockRing") .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new ExtrusionObject().setCreaseAngle(3.14f).setCrossSection(new MFVec2fObject(new float[] {-.05f,0.0f,-.025f,.025f,0.0f,.05f,.025f,.025f,.05f,0.0f,.025f,-.025f,0.0f,-.05f,-.025f,-.025f,-.05f,0.0f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f,1.0f,1.0f,1.0f,1.0f,1.0f,1.0f,1.0f,1.0f,1.0f,1.0f,1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,.2f,0.0f,-.1f,.3f,0.0f,-.3f,.2f,0.0f,-.5f,0.0f,0.0f,-.6f,-.2f,0.0f,-.5f,-.3f,0.0f,-.3f,-.2f,0.0f,-.1f,0.0f,0.0f,0.0f}))))) .addChild(new TransformObject().setTranslation(0.0f,-.9f,.3f) .addChild(new ShapeObject().setUSE("AdcockRing")))) .addChild(new TransformObject("AdcockAntennaGroup").setTranslation(0.0f,.3f,0.0f) .addChild(new TransformObject().setTranslation(0.0f,-1.0f,.3f) .addChild(new ShapeObject("AdcockAnt") .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new CylinderObject().setHeight(.75f).setRadius(.02f)))) .addChild(new TransformObject().setTranslation(.2f,-1.0f,.2f) .addChild(new ShapeObject().setUSE("AdcockAnt"))) .addChild(new TransformObject().setTranslation(.3f,-1.0f,0.0f) .addChild(new ShapeObject().setUSE("AdcockAnt"))) .addChild(new TransformObject().setTranslation(.2f,-1.0f,-.2f) .addChild(new ShapeObject().setUSE("AdcockAnt"))) .addChild(new TransformObject().setTranslation(0.0f,-1.0f,-.3f) .addChild(new ShapeObject().setUSE("AdcockAnt"))) .addChild(new TransformObject().setTranslation(-.3f,-1.0f,0.0f) .addChild(new ShapeObject().setUSE("AdcockAnt"))) .addChild(new TransformObject().setTranslation(-.2f,-1.0f,.2f) .addChild(new ShapeObject().setUSE("AdcockAnt"))) .addChild(new TransformObject("UpperAdcockAntennaGroup").setScale(.6f,.6f,.6f).setTranslation(0.0f,.5f,0.0f) .addChild(new TransformObject().setTranslation(0.0f,-1.0f,.3f) .addChild(new ShapeObject().setUSE("AdcockAnt"))) .addChild(new TransformObject().setTranslation(.2f,-1.0f,.2f) .addChild(new ShapeObject().setUSE("AdcockAnt"))) .addChild(new TransformObject().setTranslation(.3f,-1.0f,0.0f) .addChild(new ShapeObject().setUSE("AdcockAnt"))) .addChild(new TransformObject().setTranslation(.2f,-1.0f,-.2f) .addChild(new ShapeObject().setUSE("AdcockAnt"))) .addChild(new TransformObject().setTranslation(0.0f,-1.0f,-.3f) .addChild(new ShapeObject().setUSE("AdcockAnt"))) .addChild(new TransformObject().setTranslation(-.3f,-1.0f,0.0f) .addChild(new ShapeObject().setUSE("AdcockAnt"))) .addChild(new TransformObject().setTranslation(-.2f,-1.0f,.2f) .addChild(new ShapeObject().setUSE("AdcockAnt")))))) .addChild(new TransformObject("TACAN").setTranslation(0.0f,37.7f,-88.7f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new CylinderObject().setHeight(.05f).setRadius(.75f)))) .addChild(new TransformObject("TacanAntenna").setTranslation(0.0f,38.2f,-88.1f) .addChild(new ShapeObject("TacanAnt") .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new CylinderObject().setHeight(1f).setRadius(.05f)))) .addChild(new GroupObject("SPS-64") .addChild(new TransformObject("SPS-64Platform").setRotation(0.0f,1.0f,0.0f,-.76f).setTranslation(1.0f,21.0f,-95.72f) .addChild(new TransformObject() .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new BoxObject().setSize(1.0f,.1f,2.3f))))) .addChild(new TransformObject("SPS64Support").setRotation(1.0f,0.0f,0.0f,-.8f).setTranslation(0.0f,19.25f,-94.8f) .addChild(new TransformObject().setRotation(0.0f,0.0f,1.0f,-.6f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-.0625f,0.0f,-.0625f,.125f,.0625f,.125f,.0625f,0.0f,-.0625f,0.0f})).setOrientation(new MFRotationObject(new float[] {0.0f,0.0f,0.0f,0.0f,1.0f,0.0f,1.0f,.8f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,3.0f,0.0f})))))) .addChild(new TransformObject("SPS-64RadarInline").setTranslation(1.4f,21.3f,-96.3f) .addChild(new InlineObject("SPS-64RadarSubstitute").setUrl(new String[] {"../LandingShipTank-Endurance-Singapore/RadarNavigation.x3d","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/../LandingShipTank-Endurance-Singapore/RadarNavigation.x3d","../LandingShipTank-Endurance-Singapore/RadarNavigation.wrl","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/../LandingShipTank-Endurance-Singapore/RadarNavigation.wrl"})))) .addChild(new GroupObject("SPS-55") .addChild(new TransformObject("SPS-55Platform").setTranslation(-.15f,26.0f,-93.8f) .addChild(new TransformObject() .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new BoxObject().setSize(1.0f,.1f,2.3f))))) .addChild(new TransformObject("SPS55Support").setRotation(1.0f,0.0f,0.0f,-.8f).setTranslation(-.15f,23.9f,-92.58f) .addChild(new TransformObject() .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("HazeGray")) .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-.0625f,0.0f,-.0625f,.125f,.0625f,.125f,.0625f,0.0f,-.0625f,0.0f})).setOrientation(new MFRotationObject(new float[] {0.0f,0.0f,0.0f,0.0f,1.0f,0.0f,1.0f,.8f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,3.0f,0.0f})))))) .addChild(new TransformObject("SPS-55RadarInline").setTranslation(-.15f,26.3f,-94.5f) .addChild(new InlineObject().setUSE("SPS-64RadarSubstitute"))))) .addChild(new GroupObject("SLQ-32") .addChild(new TransformObject("STBDAntenna").setRotation(0.0f,1.0f,0.0f,1.57f).setTranslation(9.0f,12.05f,-97.6f) .addChild(new InlineObject("SLQ-32Inline").setUrl(new String[] {"SLQ32.x3d","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/SLQ32.x3d","SLQ32.wrl","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/SLQ32.wrl"})) .addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-1.57f) .addChild(new ShapeObject() .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-3.0f,1.0f,2.4f,1.0f,2.1f,.5f,1.3f,.5f,1.3f,-.2f,.2f,-.6f,-.2f,-.6f,-1.3f,-.2f,-1.3f,.5f,-2.7f,.5f,-3.0f,1.0f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-.15f}))) .setAppearance(new AppearanceObject().setUSE("HazeGray")))) .addChild(new TransformObject("BaseNonSkid").setRotation(1.0f,0.0f,0.0f,-1.57f).setTranslation(0.0f,.01f,0.0f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject() .setTexture(new ImageTextureObject().setUSE("NONSKID"))) .setGeometry(new ExtrusionObject().setCreaseAngle(.85f).setCrossSection(new MFVec2fObject(new float[] {-3.0f,1.0f,2.4f,1.0f,2.1f,.5f,1.3f,.5f,1.3f,-.2f,.2f,-.6f,-.2f,-.6f,-1.3f,-.2f,-1.3f,.5f,-2.7f,.5f,-3.0f,1.0f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-.01f})))))) .addChild(new TransformObject("PortAntenna").setRotation(0.0f,1.0f,0.0f,-1.57f).setTranslation(-9.0f,12.05f,-97.6f) .addChild(new InlineObject().setUSE("SLQ-32Inline")) .addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-1.57f) .addChild(new ShapeObject() .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-2.4f,1.0f,3.0f,1.0f,2.7f,.5f,1.3f,.5f,1.3f,-.2f,.2f,-.6f,-.2f,-.6f,-1.3f,-.2f,-1.3f,.5f,-2.1f,.5f,-2.4f,1.0f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-.15f}))) .setAppearance(new AppearanceObject().setUSE("HazeGray")))) .addChild(new TransformObject("BaseNonSkid1").setRotation(1.0f,0.0f,0.0f,-1.57f).setTranslation(0.0f,.01f,0.0f) .addChild(new ShapeObject() .setAppearance(new AppearanceObject() .setTexture(new ImageTextureObject().setUSE("NONSKID"))) .setGeometry(new ExtrusionObject().setCreaseAngle(.85f).setCrossSection(new MFVec2fObject(new float[] {-2.4f,1.0f,3.0f,1.0f,2.7f,.5f,1.3f,.5f,1.3f,-.2f,.2f,-.6f,-.2f,-.6f,-1.3f,-.2f,-1.3f,.5f,-2.1f,.5f,-2.4f,1.0f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-.01f}))))))) .addChild(new GroupObject("SPYArrayFace") .addChild(new TransformObject("STBDAftAntenna").setRotation(0.0f,1.0f,0.0f,.785f).setTranslation(5.7f,13.75f,-93.8f) .addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-.18f) .addChild(new ShapeObject("ArrayFace") .setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-1.5f,0.0f,-1.4f,.1f,1.4f,.1f,1.5f,0.0f,-1.5f,0.0f})).setOrientation(new MFRotationObject(new float[] {1.0f,0.0f,0.0f,-.4f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,.4f})).setScale(new MFVec2fObject(new float[] {.33f,1.02f,1.0f,1.0f,1.0f,1.0f,.33f,1.02f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,.4f,0.0f,0.0f,3.1f,0.0f,0.0f,3.5f,0.0f}))) .setAppearance(new AppearanceObject() .setMaterial(new MaterialObject().setDiffuseColor(0.80f,0.80f,0.80f)))))) .addChild(new TransformObject("PortAftAntenna").setRotation(0.0f,1.0f,0.0f,-.785f).setTranslation(-5.7f,13.75f,-93.8f) .addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-.18f) .addChild(new ShapeObject().setUSE("ArrayFace")))) .addChild(new TransformObject("PortFWDAntenna").setRotation(0.0f,1.0f,0.0f,-2.355f).setTranslation(-4.6f,12.0f,-103.7f) .addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-.22f) .addChild(new ShapeObject().setUSE("ArrayFace")))) .addChild(new TransformObject("STBDFWDAntenna").setRotation(0.0f,1.0f,0.0f,2.355f).setTranslation(4.6f,12.0f,-103.7f) .addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-.22f) .addChild(new ShapeObject().setUSE("ArrayFace"))))))); } // end of initialize() method /** The initialized model object, created within initialize() method. */ private X3DObject x3dModel; /** Provide a * shallow copy * of the X3D model. * @see X3DObject * @return ForwardSuperstructure 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 ForwardSuperstructure().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: \"ForwardSuperstructure\" 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 \"ForwardSuperstructure\" self-validation test results: "); String validationResults = thisExampleX3dObject.validationReport(); System.out.println(validationResults); } } }