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.Interpolation.*; import org.web3d.x3d.jsail.Rendering.*; import org.web3d.x3d.jsail.Shape.*; // Javadoc annotations follow, see below for source. /** *

PhalanxAntiMissileDefense from Savage MEKO 2000 Model.

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

meta tags   Document Metadata
title Phalanx.x3d
description PhalanxAntiMissileDefense from Savage MEKO 2000 Model
creator Kavousanos-Kavousanakis, Andreas GRC
created 19 August 2003
modified 27 February 2016
TODO add ROUTE connections
Image Phalanx.png
identifier https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/Phalanx.x3d
generator X3D-Edit, https://savage.nps.edu/X3D-Edit
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 Kavousanos-Kavousanakis, Andreas GRC */ public class Phalanx { /** Default constructor to create this object. */ public Phalanx () { initialize(); } /** Create and initialize the X3D model for this object. */ public final void initialize() { x3dModel = new X3DObject().setProfile(X3DObject.PROFILE_INTERCHANGE).setVersion(X3DObject.VERSION_3_0) .setHead(new headObject() .addMeta(new metaObject().setName(metaObject.NAME_TITLE ).setContent("Phalanx.x3d")) .addMeta(new metaObject().setName(metaObject.NAME_DESCRIPTION).setContent("PhalanxAntiMissileDefense from Savage MEKO 2000 Model")) .addMeta(new metaObject().setName(metaObject.NAME_CREATOR ).setContent("Kavousanos-Kavousanakis, Andreas GRC")) .addMeta(new metaObject().setName(metaObject.NAME_CREATED ).setContent("19 August 2003")) .addMeta(new metaObject().setName(metaObject.NAME_MODIFIED ).setContent("27 February 2016")) .addMeta(new metaObject().setName(metaObject.NAME_TODO ).setContent("add ROUTE connections")) .addMeta(new metaObject().setName(metaObject.NAME_IMAGE ).setContent("Phalanx.png")) .addMeta(new metaObject().setName(metaObject.NAME_IDENTIFIER ).setContent("https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/Phalanx.x3d")) .addMeta(new metaObject().setName(metaObject.NAME_GENERATOR ).setContent("X3D-Edit, https://savage.nps.edu/X3D-Edit")) .addMeta(new metaObject().setName(metaObject.NAME_LICENSE ).setContent("../../license.html"))) .setScene(new SceneObject() .addChild(new TransformObject("BASE_PHALANX_AFT").setCenter(-4.0f,-81.5f,13.0f) .addComments(" PHALANX AFT ") .addChild(new ShapeObject() .addComments(" PHALANX BASE ") .setGeometry(new IndexedFaceSetObject().setSolid(false).setCoordIndex(new int[] {0,1,2,3,-1,4,5,0,3,-1,6,5,4,7,-1,1,0,5,6,-1,7,4,3,2,-1,8,9,10,11,-1,12,13,8,11,-1,14,13,12,15,-1,9,8,13,14,-1,15,12,11,10,-1,16,17,18,19,-1,20,16,19,21,-1,22,20,21,23,-1,24,22,23,25,-1,26,24,25,27,-1,28,26,27,29,-1,30,31,28,29,-1,32,33,31,30,-1,34,35,33,32,-1,36,37,35,34,-1,38,39,37,36,-1,18,17,39,38,-1,17,16,20,22,24,26,28,31,33,35,37,39,-1,21,19,18,38,36,34,32,30,29,27,25,23,-1,40,41,42,43,-1,44,45,40,43,-1,46,47,48,49,-1,50,47,46,51,-1,42,41,50,51,-1,40,47,50,41,-1,40,45,48,47,-1,51,46,43,42,-1,46,49,44,43,-1,52,53,54,55,-1,56,57,52,55,-1,58,59,60,61,-1,62,59,58,63,-1,54,53,62,63,-1,52,59,62,53,-1,52,57,60,59,-1,63,58,55,54,-1,58,61,56,55,-1,64,65,66,67,-1,68,65,64,69,-1,70,68,69,71,-1,66,65,68,70,-1,71,69,64,67,-1,72,73,74,75,-1,76,73,72,77,-1,78,79,76,77,-1}).setNormalIndex(new int[] {0,0,0,0,-1,1,1,1,1,-1,2,2,2,2,-1,3,3,3,3,-1,4,4,4,4,-1,0,0,0,0,-1,1,1,1,1,-1,2,2,2,2,-1,3,3,3,3,-1,4,4,4,4,-1,5,6,7,8,-1,9,5,8,10,-1,11,9,10,12,-1,13,11,12,14,-1,15,13,14,16,-1,17,15,16,17,-1,18,19,17,17,-1,20,21,19,18,-1,22,23,21,20,-1,24,25,23,22,-1,26,27,25,24,-1,7,6,27,26,-1,2,2,2,2,2,2,2,2,2,2,2,2,-1,28,29,30,31,32,0,33,34,35,36,0,0,-1,37,37,37,37,-1,38,38,38,38,-1,39,39,39,39,-1,40,40,40,40,-1,1,1,1,1,-1,4,4,4,4,-1,4,4,4,4,-1,3,3,3,3,-1,3,3,3,3,-1,37,37,37,37,-1,38,38,38,38,-1,39,39,39,39,-1,40,40,40,40,-1,1,1,1,1,-1,4,4,4,4,-1,4,4,4,4,-1,3,3,3,3,-1,3,3,3,3,-1,3,3,3,3,-1,1,1,1,1,-1,4,4,4,4,-1,2,2,2,2,-1,0,0,0,0,-1,3,3,3,3,-1,41,41,41,41,-1,4,4,4,4,-1}) .setCoord(new CoordinateObject().setPoint(getCoordinate_6_12_point())) .setNormal(new NormalObject().setVector(getNormal_6_13_vector()))) .setAppearance(new AppearanceObject("App") .setMaterial(new MaterialObject("Mat").setAmbientIntensity(0.02f).setDiffuseColor(0.5294f,0.5294f,0.5294f).setShininess(0.55f)))) .addChild(new TransformObject("PHALANX_AFT").setCenter(-4.0f,-81.5f,13.0f) .addComments(" Rotating Parts ") .addChild(new ShapeObject() .addComments(" MOTION ADDED BY TRANSLATOR ") .setGeometry(new IndexedFaceSetObject().setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,5,-1,6,5,4,7,-1,7,4,3,8,-1,8,3,2,9,-1,9,2,1,10,-1,10,1,0,11,-1,11,0,5,6,-1,6,7,8,9,10,11,-1,12,13,14,15,16,17,-1}).setNormalIndex(new int[] {0,0,0,0,0,0,-1,1,1,1,1,-1,2,2,2,2,-1,3,3,3,3,-1,4,4,4,4,-1,5,5,5,5,-1,6,6,6,6,-1,7,7,7,7,7,7,-1,7,7,7,7,7,7,-1}) .setCoord(new CoordinateObject().setPoint(new MFVec3fObject(new float[] {-4.00388f,-81.9147f,13.5445f,-4.12123f,-81.9147f,13.4738f,-4.11869f,-81.9147f,13.3368f,-3.9988f,-81.9147f,13.2705f,-3.88145f,-81.9147f,13.3412f,-3.88399f,-81.9147f,13.4782f,-3.88399f,-80.7923f,13.4782f,-3.88145f,-80.7923f,13.3412f,-3.9988f,-80.7923f,13.2705f,-4.11869f,-80.7923f,13.3368f,-4.12123f,-80.7923f,13.4738f,-4.00388f,-80.7923f,13.5445f,-3.92737f,-81.9149f,13.4741f,-3.92394f,-81.9149f,13.3847f,-3.99962f,-81.9149f,13.337f,-4.07874f,-81.9149f,13.3787f,-4.08218f,-81.9149f,13.4681f,-4.0065f,-81.9149f,13.5158f}))) .setNormal(new NormalObject().setVector(new MFVec3fObject(new float[] {0.0f,-1.0f,0.0f,0.999829f,0.0f,0.0185154f,0.515951f,0.0f,-0.856618f,-0.48388f,0.0f,-0.875134f,-0.999829f,0.0f,-0.0185137f,-0.515952f,0.0f,0.856618f,0.48388f,0.0f,0.875134f,0.0f,1.0f,0.0f})))) .setAppearance(new AppearanceObject() .setMaterial(new MaterialObject().setDiffuseColor(0.0f,0.0f,0.0f).setShininess(0.5f)))) .addChild(new ShapeObject() .addComments(" MOTION ADDED BY TRANSLATOR ") .setGeometry(new IndexedFaceSetObject().setSolid(false).setCoordIndex(new int[] {6,5,4,7,-1,7,4,3,8,-1,8,3,2,9,-1,9,2,1,10,-1,10,1,0,11,-1,11,0,5,6,-1,6,7,8,9,10,11,-1}).setNormalIndex(new int[] {1,1,1,1,-1,2,2,2,2,-1,3,3,3,3,-1,4,4,4,4,-1,5,5,5,5,-1,6,6,6,6,-1,0,0,0,0,0,0,-1}) .setCoord(new CoordinateObject().setPoint(new MFVec3fObject(new float[] {-3.92737f,-81.9149f,13.4741f,-3.92394f,-81.9149f,13.3847f,-3.99962f,-81.9149f,13.337f,-4.07874f,-81.9149f,13.3787f,-4.08218f,-81.9149f,13.4681f,-4.0065f,-81.9149f,13.5158f,-4.0065f,-82.9764f,13.5158f,-4.08218f,-82.9764f,13.4681f,-4.07874f,-82.9764f,13.3787f,-3.99962f,-82.9764f,13.337f,-3.92394f,-82.9764f,13.3847f,-3.92737f,-82.9764f,13.4741f}))) .setNormal(new NormalObject().setVector(new MFVec3fObject(new float[] {0.0f,-1.0f,0.0f,-0.532912f,0.0f,0.846171f,-0.999261f,0.0f,-0.0384323f,-0.466346f,0.0f,-0.884602f,0.532912f,0.0f,-0.846171f,0.999261f,0.0f,0.0384323f,0.466346f,0.0f,0.884602f})))) .setAppearance(new AppearanceObject() .setMaterial(new MaterialObject().setDiffuseColor(0.0f,0.0f,0.0f).setShininess(0.5f)))) .addChild(new ShapeObject() .addComments(" PHALANX RADAR ") .setGeometry(new IndexedFaceSetObject().setSolid(false).setCoordIndex(new int[] {0,1,2,3,-1,3,2,4,5,-1,6,7,8,9,-1,7,10,11,8,-1,12,6,9,13,-1,14,12,13,15,-1,16,14,15,17,-1,18,16,17,19,-1,20,18,19,4,-1,21,20,4,2,-1,22,21,2,1,-1,23,22,1,24,-1,25,23,24,26,-1,10,25,26,11,-1,27,28,29,-1,27,30,28,-1,27,31,30,-1,27,32,31,-1,27,33,32,-1,27,34,33,-1,27,35,34,-1,27,36,35,-1,27,37,36,-1,27,38,37,-1,27,39,38,-1,31,32,22,23,-1,21,22,32,33,-1,23,25,30,31,-1,28,30,25,10,-1,29,7,6,39,-1,29,39,27,-1,38,39,6,12,-1,10,7,29,28,-1,14,37,38,12,-1,36,37,14,16,-1,35,36,16,18,-1,34,35,18,20,-1,33,34,20,21,-1,40,9,8,41,-1,13,9,40,42,-1,15,13,42,43,-1,17,15,43,44,-1,19,17,44,45,-1,4,19,45,5,-1,46,24,1,0,-1,47,26,24,46,-1,48,11,26,47,-1,41,8,11,48,-1}).setNormalIndex(new int[] {0,1,2,3,-1,3,2,4,5,-1,6,7,8,9,-1,7,10,11,8,-1,12,6,9,13,-1,14,12,13,15,-1,16,14,15,17,-1,18,16,17,19,-1,20,18,19,4,-1,21,20,4,2,-1,22,21,2,1,-1,23,22,1,24,-1,25,23,24,26,-1,10,25,26,11,-1,27,28,29,-1,27,30,28,-1,27,31,30,-1,27,32,31,-1,27,33,32,-1,27,34,33,-1,27,35,34,-1,27,36,35,-1,27,37,36,-1,27,38,37,-1,27,39,38,-1,31,32,22,23,-1,21,22,32,33,-1,23,25,30,31,-1,28,30,25,10,-1,29,7,6,39,-1,29,39,27,-1,38,39,6,12,-1,10,7,29,28,-1,14,37,38,12,-1,36,37,14,16,-1,35,36,16,18,-1,34,35,18,20,-1,33,34,20,21,-1,40,9,8,41,-1,13,9,40,42,-1,15,13,42,43,-1,17,15,43,44,-1,19,17,44,45,-1,4,19,45,5,-1,46,24,1,0,-1,47,26,24,46,-1,48,11,26,47,-1,41,8,11,48,-1}) .setCoord(new CoordinateObject().setPoint(getCoordinate_7_30_point())) .setNormal(new NormalObject().setVector(getNormal_7_31_vector()))) .setAppearance(new AppearanceObject("PhalanxRadar") .setMaterial(new MaterialObject().setAmbientIntensity(0.722876f).setDiffuseColor(1.000000f,1.000000f,1.000000f).setShininess(0.062500f).setSpecularColor(0.407843f,0.407843f,0.407843f)))) .addChild(new OrientationInterpolatorObject("Phalanx_path").setKey(new float[] {0.0f,0.25f,0.50f,0.75f,1.0f}).setKeyValue(new MFRotationObject(new float[] {1.0f,0.0f,0.0f,0.0f,-1.0f,0.0f,0.0f,0.4f,-1.0f,0.0f,0.0f,0.8f,-1.0f,0.0f,0.0f,0.4f,1.0f,0.0f,0.0f,0.0f}))) .addChild(new ShapeObject() .addComments(" BARREL ") .setGeometry(new IndexedFaceSetObject().setSolid(false).setCoordIndex(new int[] {0,3,2,1,-1}).setNormalIndex(new int[] {0,0,0,0,-1}) .setCoord(new CoordinateObject().setPoint(new MFVec3fObject(new float[] {-3.55016f,-80.9042f,13.7209f,-3.55016f,-81.915f,13.7209f,-4.45993f,-81.915f,13.7209f,-4.45993f,-80.9042f,13.7209f}))) .setNormal(new NormalObject().setVector(new MFVec3fObject(new float[] {0.0f,0.0f,1.0f})))) .setAppearance(new AppearanceObject().setUSE("App")))) .addChild(new OrientationInterpolatorObject("Base_Phalanx_path").setKey(new float[] {0.0f,0.25f,0.50f,0.75f,1.0f}).setKeyValue(new MFRotationObject(new float[] {0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,2.2f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,-1.0f,2.2f,0.0f,0.0f,1.0f,0.0f}))) .addChild(new TransformObject().setTranslation(-4.0f,-81.5f,12.1f) .addComments(" BASE ADDITION (By Tranlator) ") .addChild(new ShapeObject() .setAppearance(new AppearanceObject().setUSE("App")) .setGeometry(new BoxObject().setSize(2.2f,2.1f,0.2f)))))); } // end of initialize() method /** Large attribute array: Coordinate point field, scene-graph level=6, element #12, 240 total numbers made up of 80 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_6_12_point() { MFVec3fObject Coordinate_6_12_point = new MFVec3fObject(new float[] {-4.15667f,-79.2924f,12.1594f,-4.15667f,-79.2924f,10.8016f,-5.16752f,-79.2924f,10.8016f,-5.16752f,-79.2924f,12.1594f,-5.16752f,-80.0f,12.1594f,-4.15667f,-80.0f,12.1594f,-4.15667f,-80.0f,10.8292f,-5.16752f,-80.0f,10.8292f,-2.84257f,-79.2924f,12.1594f,-2.84257f,-79.2924f,10.8016f,-3.85342f,-79.2924f,10.8016f,-3.85342f,-79.2924f,12.1594f,-3.85342f,-80.0f,12.1594f,-2.84257f,-80.0f,12.1594f,-2.84257f,-80.0f,10.8292f,-3.85342f,-80.0f,10.8292f,-3.77294f,-81.9547f,13.0922f,-3.73908f,-81.9547f,12.9659f,-3.73909f,-80.944f,12.9659f,-3.77294f,-80.944f,13.0922f,-3.86544f,-81.9547f,13.1847f,-3.86544f,-80.944f,13.1847f,-3.99179f,-81.9547f,13.2186f,-3.9918f,-80.944f,13.2186f,-4.11815f,-81.9547f,13.1847f,-4.11816f,-80.944f,13.1847f,-4.21065f,-81.9547f,13.0922f,-4.21065f,-80.944f,13.0922f,-4.2445f,-81.9547f,12.9659f,-4.24451f,-80.944f,12.9659f,-4.21065f,-80.944f,12.8395f,-4.21065f,-81.9547f,12.8395f,-4.11815f,-80.944f,12.747f,-4.11815f,-81.9547f,12.747f,-3.9918f,-80.944f,12.7132f,-3.99179f,-81.9547f,12.7132f,-3.86544f,-80.944f,12.747f,-3.86544f,-81.9547f,12.747f,-3.77294f,-80.944f,12.8395f,-3.77294f,-81.9547f,12.8395f,-4.86427f,-80.9177f,12.6f,-4.86427f,-81.0726f,13.7209f,-4.45993f,-81.0726f,13.7209f,-4.45993f,-80.9177f,12.6f,-4.45993f,-80.455f,12.1372f,-4.86427f,-80.455f,12.1372f,-4.45993f,-81.915f,12.5865f,-4.86427f,-81.915f,12.5865f,-4.86427f,-82.3643f,12.1372f,-4.45993f,-82.3643f,12.1372f,-4.86427f,-81.7465f,13.7209f,-4.45993f,-81.7465f,13.7209f,-3.55016f,-80.9177f,12.6f,-3.55016f,-81.0726f,13.7209f,-3.14582f,-81.0726f,13.7209f,-3.14582f,-80.9177f,12.6f,-3.14582f,-80.455f,12.1372f,-3.55016f,-80.455f,12.1372f,-3.14582f,-81.915f,12.5865f,-3.55016f,-81.915f,12.5865f,-3.55016f,-82.3643f,12.1372f,-3.14582f,-82.3643f,12.1372f,-3.55016f,-81.7465f,13.7209f,-3.14582f,-81.7465f,13.7209f,-2.79763f,-80.2022f,12.0361f,-2.79763f,-82.617f,12.0361f,-2.79763f,-82.617f,10.8956f,-2.79763f,-80.2022f,10.8384f,-5.21245f,-82.617f,12.0361f,-5.21245f,-80.2022f,12.0361f,-5.21245f,-82.617f,10.8956f,-5.21245f,-80.2022f,10.8384f,-3.55016f,-81.915f,13.2209f,-3.55016f,-80.9042f,13.2209f,-3.55016f,-80.9042f,13.7209f,-3.55016f,-81.915f,13.7209f,-4.45993f,-80.9042f,13.2209f,-4.45993f,-81.915f,13.2209f,-4.45993f,-81.915f,13.7209f,-4.45993f,-80.9042f,13.7209f}); return Coordinate_6_12_point; } /** Large attribute array: Normal vector field, scene-graph level=6, element #13, 126 total numbers made up of 42 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 getNormal_6_13_vector() { MFVec3fObject Normal_6_13_vector = new MFVec3fObject(new float[] {0f,1f,0f,0f,0f,1f,0f,-1f,0f,1f,0f,0f,-1f,0f,0f,0.907073f,5.56291e-006f,0.420974f,1f,6.13282e-006f,2.57628e-006f,1f,6.13282e-006f,2.57628e-006f,0.818111f,5.01734e-006f,0.575061f,0.575062f,3.52677e-006f,0.81811f,0.420975f,2.5608e-006f,0.907072f,0.0889631f,5.45598e-007f,0.996035f,-0.0889621f,-5.45593e-007f,0.996035f,-0.420977f,-2.56081e-006f,0.907071f,-0.575065f,-3.5268e-006f,0.818107f,-0.818115f,-5.01738e-006f,0.575055f,-0.907076f,-5.56297e-006f,0.420968f,-1f,-6.13286e-006f,-6.23243e-006f,-0.90707f,-5.56294e-006f,-0.420979f,-0.818107f,-5.01734e-006f,-0.575065f,-0.575059f,-3.52676e-006f,-0.818112f,-0.420974f,-2.58177e-006f,-0.907073f,-0.0889631f,-5.45598e-007f,-0.996035f,0.0889631f,5.45598e-007f,-0.996035f,0.420975f,2.58178e-006f,-0.907072f,0.575062f,3.52676e-006f,-0.81811f,0.818111f,5.01734e-006f,-0.57506f,0.907074f,5.56292e-006f,-0.420971f,-5.81007e-006f,1f,2.16833e-005f,-1.66518e-005f,1f,2.18919e-005f,-1.58734e-005f,1f,-1.13972e-006f,-1.16201e-005f,1f,-3.1747e-005f,0f,1f,-4.12405e-005f,-5.81007e-006f,1f,-3.33038e-005f,-1.66518e-005f,1f,-5.60162e-006f,-1.58734e-005f,1f,-1.13974e-006f,-1.16201e-005f,1f,2.32401e-005f,0.0f,0.99058f,0.136938f,0.0f,0.707153f,0.707061f,0.0f,-0.707105f,0.707109f,0.0f,-0.989152f,0.146895f,0.0f,0.0f,-1.0f}); return Normal_6_13_vector; } /** Large attribute array: Coordinate point field, scene-graph level=7, element #30, 147 total numbers made up of 49 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_7_30_point() { MFVec3fObject Coordinate_7_30_point = new MFVec3fObject(new float[] {-4.25774f,-81.8473f,13.7209f,-4.25775f,-81.8473f,15.2147f,-4.44275f,-81.6623f,15.2147f,-4.44273f,-81.6623f,13.7209f,-4.51047f,-81.4096f,15.2147f,-4.51045f,-81.4096f,13.7209f,-3.62599f,-81.1907f,15.4674f,-3.56735f,-81.4096f,15.4674f,-3.49963f,-81.4096f,15.2147f,-3.56735f,-81.1569f,15.2147f,-3.62599f,-81.6284f,15.4674f,-3.56734f,-81.6623f,15.2147f,-3.78621f,-81.0305f,15.4674f,-3.75235f,-80.9719f,15.2147f,-4.00506f,-80.9719f,15.4674f,-4.00506f,-80.9042f,15.2147f,-4.22391f,-81.0305f,15.4674f,-4.25777f,-80.9719f,15.2147f,-4.38412f,-81.1907f,15.4674f,-4.44276f,-81.1569f,15.2147f,-4.44276f,-81.4096f,15.4674f,-4.38411f,-81.6284f,15.4674f,-4.2239f,-81.7886f,15.4674f,-4.00505f,-81.8473f,15.4674f,-4.00504f,-81.915f,15.2147f,-3.78619f,-81.7886f,15.4674f,-3.75234f,-81.8473f,15.2147f,-4.00506f,-81.4096f,15.7201f,-3.7862f,-81.5359f,15.6524f,-3.75234f,-81.4096f,15.6524f,-3.87869f,-81.6284f,15.6524f,-4.00505f,-81.6623f,15.6524f,-4.1314f,-81.6284f,15.6524f,-4.2239f,-81.5359f,15.6524f,-4.25776f,-81.4096f,15.6524f,-4.22391f,-81.2832f,15.6524f,-4.13141f,-81.1907f,15.6524f,-4.00506f,-81.1569f,15.6524f,-3.8787f,-81.1907f,15.6524f,-3.7862f,-81.2832f,15.6524f,-3.56737f,-81.1569f,13.7209f,-3.49966f,-81.4096f,13.7209f,-3.75236f,-80.9719f,13.7209f,-4.00506f,-80.9042f,13.7209f,-4.25776f,-80.9719f,13.7209f,-4.44274f,-81.1569f,13.7209f,-4.00504f,-81.915f,13.7209f,-3.75235f,-81.8473f,13.7209f,-3.56736f,-81.6623f,13.7209f}); return Coordinate_7_30_point; } /** Large attribute array: Normal vector field, scene-graph level=7, element #31, 147 total numbers made up of 49 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 getNormal_7_31_vector() { MFVec3fObject Normal_7_31_vector = new MFVec3fObject(new float[] {-0.575048f,-0.81812f,-1.36365e-005f,-0.417374f,-0.899366f,0.130155f,-0.811144f,-0.570181f,0.130154f,-0.907068f,-0.420984f,-1.503e-005f,-0.993017f,-0.0373234f,0.111916f,-1f,-1.69849e-005f,-1.40452e-005f,0.750413f,0.389503f,0.534011f,0.889423f,-0.0531145f,0.453989f,0.987561f,0.0882186f,0.130155f,0.828068f,0.538342f,0.156497f,0.743404f,-0.442343f,0.50168f,0.899362f,-0.417381f,0.130157f,0.490712f,0.743707f,0.453985f,0.496943f,0.85789f,0.130661f,0.037882f,0.844628f,0.534011f,0.00141647f,0.991426f,0.13066f,-0.422634f,0.754784f,0.501679f,-0.494481f,0.859312f,0.130661f,-0.743401f,0.442349f,0.50168f,-0.857889f,0.496944f,0.130661f,-0.864978f,0.011381f,0.50168f,-0.754782f,-0.422634f,0.501682f,-0.442342f,-0.743404f,0.501682f,-0.0113794f,-0.864979f,0.50168f,0.0882152f,-0.987561f,0.13016f,0.422631f,-0.754783f,0.501682f,0.570184f,-0.811141f,0.130155f,-7.12368e-006f,1.19188e-005f,1f,0.451294f,-0.305471f,0.838464f,0.573579f,1.05536e-005f,0.81915f,0.238091f,-0.490195f,0.838464f,-0.038903f,-0.543566f,0.838465f,-0.305476f,-0.45129f,0.838464f,-0.490195f,-0.238099f,0.838461f,-0.543575f,0.0389056f,0.838459f,-0.451299f,0.305482f,0.838457f,-0.238104f,0.490204f,0.838455f,-1.52583e-005f,0.498236f,0.867041f,0.286784f,0.496743f,0.819147f,0.431476f,0.24912f,0.867045f,0.866017f,0.500014f,-1.31952e-005f,0.996036f,-0.0889491f,-1.38079e-005f,0.420957f,0.907081f,-1.32928e-005f,-0.0889791f,0.996033f,-1.41903e-005f,-0.575069f,0.818105f,-1.23952e-005f,-0.907079f,0.420961f,-1.33343e-005f,-0.0889491f,-0.996036f,-1.41903e-005f,0.420985f,-0.907067f,-1.32927e-005f,0.818119f,-0.57505f,-1.28607e-005f}); return Normal_7_31_vector; } /** The initialized model object, created within initialize() method. */ private X3DObject x3dModel; /** Provide a * shallow copy * of the X3D model. * @see X3DObject * @return Phalanx 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 Phalanx().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: \"Phalanx\" 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 \"Phalanx\" self-validation test results: "); String validationResults = thisExampleX3dObject.validationReport(); System.out.println(validationResults); } } }