package Basic.LatticeXvl;
/*
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.Grouping.*;
import org.web3d.x3d.jsail.Rendering.*;
import org.web3d.x3d.jsail.Shape.*;
// Javadoc annotations follow, see below for source.
/**
*
Example XvlShell model.
Related links: XvlShellModelHand.java source, XvlShellModelHand 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 Marc Jablonski
*/
public class XvlShellModelHand
{
/** Default constructor to create this object. */
public XvlShellModelHand ()
{
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("XvlShellModelHand.x3d"))
.addMeta(new metaObject().setName(metaObject.NAME_DESCRIPTION).setContent("Example XvlShell model."))
.addMeta(new metaObject().setName(metaObject.NAME_CREATOR ).setContent("Marc Jablonski"))
.addMeta(new metaObject().setName(metaObject.NAME_CREATED ).setContent("24 January 2002"))
.addMeta(new metaObject().setName(metaObject.NAME_MODIFIED ).setContent("20 March 2016"))
.addMeta(new metaObject().setName(metaObject.NAME_ERROR ).setContent("Test X3D DTD experimental extensions mechanisms, the XVL nodes are not legal X3D"))
.addMeta(new metaObject().setName(metaObject.NAME_REFERENCE ).setContent("readme.txt"))
.addMeta(new metaObject().setName(metaObject.NAME_REFERENCE ).setContent("docs/LatticeXvl/LatticeXvlOverview.html"))
.addMeta(new metaObject().setName(metaObject.NAME_REFERENCE ).setContent("http://www.web3d.org/x3d/content/examples/Basic/LatticeXvl/docs/LatticeXvl/LatticeXvlOverview.html"))
.addMeta(new metaObject().setName(metaObject.NAME_REFERENCE ).setContent("http://www.xvl3d.com"))
.addMeta(new metaObject().setName(metaObject.NAME_SUBJECT ).setContent("Lattice XVL parametric geometry X3D VRML"))
.addMeta(new metaObject().setName(metaObject.NAME_IDENTIFIER ).setContent("http://www.web3d.org/x3d/content/examples/Basic/LatticeXvl/XvlShellModelHand.x3d"))
.addMeta(new metaObject().setName(metaObject.NAME_GENERATOR ).setContent("Xvl3ToX3d, http://www.lattice3d.com"))
.addMeta(new metaObject().setName(metaObject.NAME_LICENSE ).setContent("../license.html")))
.setScene(new SceneObject()
.addChild(new GroupObject("_S1")
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject("SGE_DEF_MATERIAL").setDiffuseColor(0.9882f,0.8549f,0.6549f).setShininess(0.07f).setSpecularColor(0.12f,0.12f,0.12f)))
.setGeometry(new XvlShellObject().setEdgeBeginCoordIndex(new int[] {19,19,21,29,65,111,155,214}).setEdgeBeginVector(new MFVec3fObject(new float[] {0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f})).setEdgeEndCoordIndex(new int[] {21,39,29,39,78,125,174,217}).setEdgeEndVector(new MFVec3fObject(new float[] {0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f})).setEdgeRound(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f}).setFaceCoordIndex(getXvlShell_5_18_faceCoordIndex()).setFaceHidden(getXvlShell_5_18_faceHidden()).setShellType("LATTICE_MESH")
.setCoord(new CoordinateObject("COORD0").setPoint(getCOORD0_6_18_point()))))
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject("SGE_tume").setDiffuseColor(0.8863f,0.7412f,0.7216f).setShininess(0.56f).setSpecularColor(0.38f,0.38f,0.38f)))
.setGeometry(new XvlShellObject().setEdgeBeginCoordIndex(new int[] {19,19,21,29,65,111,155,214}).setEdgeBeginVector(new MFVec3fObject(new float[] {0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f})).setEdgeEndCoordIndex(new int[] {21,39,29,39,78,125,174,217}).setEdgeEndVector(new MFVec3fObject(new float[] {0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f,0.0f,1.0f,0.0f})).setEdgeRound(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f}).setFaceCoordIndex(getXvlShell_5_23_faceCoordIndex()).setFaceHidden(getXvlShell_5_23_faceHidden()).setShellType("LATTICE_MESH")
.setCoord(new CoordinateObject().setUSE("COORD0"))))));
}
// end of initialize() method
/** Define subarrays using type int[] */
private int[] getXvlShell_5_18_faceCoordIndex_1()
{
int[] value = {214,213,218,217,-1,218,213,202,208,-1,175,173,176,186,187,-1,123,129,121,125,-1,172,187,164,165,-1,186,176,170,-1,109,111,114,101,-1,176,153,159,170,-1,89,76,78,83,-1,211,201,195,192,205,-1,130,128,100,102,-1,71,66,57,-1,188,182,143,138,-1,59,89,88,58,-1,86,74,79,-1,64,57,59,58,56,63,-1,80,63,70,74,-1,63,56,70,-1,171,191,142,117,-1,105,108,107,98,106,104,-1,91,92,106,98,-1,192,171,117,149,-1,47,27,32,-1,117,142,97,94,-1,7,46,32,13,-1,205,180,190,200,-1,96,48,55,85,-1,54,55,48,50,-1,44,50,48,35,-1,6,51,46,7,-1,3,4,43,35,-1,97,49,45,94,-1,13,8,4,3,7,-1,205,192,181,180,-1,2,49,51,6,-1,95,42,48,96,-1,45,49,2,0,-1,93,94,45,52,-1,45,0,10,52,-1,141,190,180,9,1,42,95,-1,163,181,93,52,10,26,-1,9,180,162,25,-1,48,42,1,5,-1,5,6,7,3,-1,53,54,50,51,-1,22,28,34,16,-1,62,70,56,-1,17,19,21,12,-1,203,213,214,204,-1,154,148,147,153,156,-1,127,129,123,124,126,-1,207,212,203,204,-1,202,213,203,197,196,-1,153,147,159,-1,196,197,194,-1,199,196,194,198,-1,218,208,199,201,211,-1,118,127,126,-1,147,152,159,-1,197,193,194,-1,124,110,103,126,-1,82,83,61,60,-1,184,169,177,-1,198,194,193,195,-1,110,109,101,99,103,-1,129,135,108,101,-1,89,83,82,77,87,-1,150,177,169,158,-1,158,145,150,-1,183,185,184,177,182,-1,132,119,131,-1,193,171,192,195,-1,182,177,150,143,-1,130,102,116,119,-1,60,61,59,57,66,-1,104,131,119,116,-1,104,116,105,-1,89,87,81,80,86,88,-1,115,103,99,-1,154,175,174,155,-1,123,125,111,109,-1,124,123,109,110,-1,186,170,179,-1,154,155,157,148,-1,178,169,184,-1,83,78,65,61,-1,178,184,185,187,186,179,-1,115,118,126,103,-1,75,87,77,-1,203,200,171,193,197,-1,82,60,66,77,-1,75,77,66,71,-1,102,105,116,-1,29,39,37,41,-1,183,144,146,185,-1,138,143,140,137,-1,29,41,12,21,-1,41,37,38,34,40,-1,136,137,139,134,-1,79,74,70,62,-1,17,12,11,16,18,-1,16,11,22,-1,36,15,14,33,-1,192,149,181,-1,33,14,20,27,-1,46,51,50,44,-1,20,8,13,-1,47,32,46,44,35,43,-1,51,49,97,92,-1,139,141,95,96,-1,181,149,93,-1,149,117,94,93,-1,35,48,5,3,-1,6,5,1,2,-1,162,180,181,163,-1,2,1,9,10,0,-1,162,163,26,25,-1,10,9,25,26,-1,13,32,27,20,-1,51,92,84,53,-1,14,8,20,-1,11,12,4,8,14,15,-1,56,58,55,54,53,62,-1,91,98,107,96,-1,22,11,15,-1,88,86,79,84,90,85,-1,38,18,16,34,-1,36,40,28,-1,144,139,137,140,-1,64,71,57,-1,115,99,100,-1,211,209,217,218,-1,174,175,187,172,-1,173,156,153,176,-1,165,164,148,157,-1,212,207,209,211,-1,201,199,198,-1,170,159,152,179,-1,201,198,195,-1,178,151,158,169,-1,164,187,185,146,148,-1,128,118,115,100,-1,148,146,145,151,152,147,-1,101,108,105,102,100,99,-1,81,75,71,64,-1,136,133,138,137,-1,145,146,144,140,143,150,-1,191,188,138,142,-1,200,190,191,171,-1,133,131,104,106,-1,183,189,139,144,-1,108,135,134,107,-1,40,34,28,-1,68,76,89,59,-1,156,173,175,154,-1,199,208,202,196,-1,127,118,128,-1,178,179,152,151,-1,61,65,68,59,-1,158,151,145,-1,127,128,130,132,135,129,-1,130,119,132,-1,212,211,205,200,203,-1,81,87,75,-1,183,182,188,189,-1,37,39,19,17,-1,86,80,74,-1,134,135,132,131,133,136,-1,38,37,17,18,-1,81,64,63,80,-1,189,188,191,190,-1,138,133,106,92,-1,84,92,91,90,-1,36,28,22,15,-1,36,33,47,43,41,40,-1,139,189,190,141,-1,97,142,138,92,-1,85,90,91,96,-1,134,139,96,107,-1,88,85,55,58,-1,53,84,79,62,-1,33,27,47,-1,12,41,43,4,-1,121,129,101,114,-1,112,114,111,113,-1,167,161,155,174,-1,219,216,214,217,-1,167,174,172,168,-1,167,168,166,160,161,-1,166,168,172,165,-1,113,120,122,112,-1,166,165,157,160,-1,122,121,114,112,-1,214,216,206,204,-1,204,206,210,207,-1,219,217,209,215,-1,72,73,67,69,-1,29,31};
return value;
}
private int[] getXvlShell_5_18_faceCoordIndex_2()
{
int[] value = {30,39,-1,30,31,23,24,-1,21,23,31,29,-1,68,67,73,76,-1,210,215,209,207,-1,78,76,73,72,-1,78,72,69,65,-1,69,67,68,65,-1,120,125,121,122,-1,155,161,160,157,-1,113,111,125,120,-1,216,219,215,210,206,-1,39,30,24,19,-1,24,23,21,19,-1};
return value;
}
/** Define subarrays using type bool[] */
private bool[] getXvlShell_5_18_faceHidden_1()
{
bool[] value = {false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false};
return value;
}
private bool[] getXvlShell_5_18_faceHidden_2()
{
bool[] value = {false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true};
return value;
}
private bool[] getXvlShell_5_18_faceHidden_3()
{
bool[] value = {true,true,true,true,true,true,true,true,true,true,true};
return value;
}
/** Define subarrays using type float[] */
private float[] getCOORD0_6_18_point_1()
{
float[] value = {-1.0639f,-0.5021f,0.4135f,-1.0073f,0.1888f,-0.2479f,-1.0032f,0.072f,0.4709f,-0.9966f,0.5685f,-0.0164f,-0.9906f,0.9723f,0.361f,-0.9854f,0.3847f,-0.1321f,-0.9836f,0.2625f,0.4114f,-0.9713f,0.4026f,0.5932f,-0.971f,0.7513f,0.5309f,-0.967f,-1.2868f,-0.3676f,-0.967f,-1.2868f,0.3807f,-0.9163f,0.8673f,0.9102f,-0.9158f,1.0775f,1.0458f,-0.9083f,0.5126f,0.5884f,-0.9071f,0.5739f,0.6509f,-0.8998f,0.6366f,0.8439f,-0.888f,0.6785f,0.9377f,-0.8643f,0.833f,1.4185f,-0.8639f,0.6726f,1.3336f,-0.8635f,0.8642f,1.454f,-0.8464f,0.6496f,0.5323f,-0.8417f,1.0265f,1.1132f,-0.8322f,0.7461f,0.8924f,-0.8308f,1.0471f,1.352f,-0.8017f,0.8769f,1.5073f,-0.7497f,-1.7574f,-0.4012f,-0.7497f,-1.7574f,0.4143f,-0.6363f,0.6554f,0.5224f,-0.6221f,0.7519f,0.8825f,-0.6075f,1.033f,1.1023f,-0.6022f,0.8824f,1.498f,-0.5971f,1.0536f,1.341f,-0.562f,0.5221f,0.5722f,-0.5608f,0.5834f,0.6347f,-0.5587f,0.6876f,0.9223f,-0.5547f,0.6816f,0.0269f,-0.5535f,0.6462f,0.8277f,-0.5458f,0.8417f,1.4036f,-0.5454f,0.6813f,1.3187f,-0.545f,0.873f,1.4391f,-0.5435f,0.8775f,0.8927f,-0.5429f,1.0878f,1.0284f,-0.5383f,0.2161f,-0.3056f,-0.5379f,0.9847f,0.3398f,-0.5365f,0.5789f,0.296f,-0.5319f,-0.5021f,0.7935f,-0.5183f,0.3977f,0.5397f,-0.5182f,0.7638f,0.5097f,-0.518f,0.4267f,-0.1751f,-0.5166f,0.0967f,0.5512f,-0.5044f,0.4892f,0.2071f,-0.4863f,0.2887f,0.39f,-0.4855f,-1.2868f,0.3807f,-0.4656f,0.6916f,0.1987f,-0.4656f,0.8693f,0.0154f,-0.4656f,1.0471f,-0.1679f,-0.4656f,1.1629f,0.3708f,-0.4656f,1.2966f,0.836f,-0.4656f,1.4661f,0.2895f,-0.4656f,1.6033f,0.9029f,-0.4342f,1.3221f,1.4542f,-0.4342f,1.5074f,1.3864f,-0.4244f,0.8877f,0.361f,-0.4244f,1.0045f,0.5163f,-0.4244f,1.0743f,0.7232f,-0.4238f,1.5061f,1.3477f,-0.416f,1.157f,0.9553f,-0.3964f,1.6523f,1.1562f,-0.3866f,1.5791f,1.0481f,-0.3778f,1.5634f,1.3977f,-0.3656f,1.0443f,0.3887f,-0.3656f,1.1831f,0.799f,-0.1604f,1.5634f,1.3977f,-0.1419f,1.6523f,1.1562f,-0.1344f,1.0443f,0.3887f,-0.1344f,1.1831f,0.799f,-0.1328f,1.5791f,1.0481f,-0.084f,1.157f,0.9553f,-0.0768f,1.5061f,1.3477f,-0.0756f,0.8877f,0.361f,-0.0756f,1.0045f,0.5163f,-0.0756f,1.0743f,0.7232f,-0.0658f,1.3221f,1.4542f,-0.0658f,1.5074f,1.3864f,-0.0344f,0.6916f,0.1987f,-0.0344f,1.0471f,-0.1679f,-0.0344f,1.1629f,0.3708f,-0.0344f,1.2966f,0.836f,-0.0344f,1.4661f,0.2895f,-0.0344f,1.6033f,0.9029f,-0.0147f,0.8724f,0.0171f,-0.0067f,0.7646f,0.0758f,-0.0058f,0.4862f,0.4175f,-0.0042f,-1.2868f,0.3807f,0.0f,-0.5021f,0.4135f,0.0f,0.2579f,-0.4135f,0.0f,0.7161f,-0.2999f,0.0012f,0.0408f,0.3282f,0.0143f,0.8746f,0.0289f,0.0238f,1.4904f,0.8274f};
return value;
}
private float[] getCOORD0_6_18_point_2()
{
float[] value = {0.0245f,1.2237f,0.664f,0.0255f,1.7967f,0.8959f,0.027f,1.1663f,0.5136f,0.029f,1.3065f,0.9832f,0.0314f,1.0129f,0.3531f,0.0332f,1.3148f,0.2953f,0.0339f,0.749f,0.263f,0.0344f,0.9951f,-0.2065f,0.0383f,1.6146f,0.2026f,0.0434f,1.6355f,1.454f,0.0446f,1.4441f,1.3011f,0.0458f,1.769f,1.39f,0.1036f,1.8399f,1.1413f,0.116f,1.8099f,1.4647f,0.1163f,1.7627f,1.0242f,0.1487f,1.3758f,0.7917f,0.1568f,1.1915f,0.3157f,0.1861f,-0.0867f,0.5928f,0.3292f,1.3739f,0.7955f,0.3372f,1.1897f,0.3196f,0.3467f,1.81f,1.47f,0.3635f,1.7629f,1.0299f,0.3737f,1.8401f,1.1475f,0.4117f,1.6316f,1.4618f,0.4129f,1.4402f,1.3089f,0.4141f,1.7692f,1.3984f,0.4392f,1.3022f,0.9919f,0.4549f,1.4859f,0.8365f,0.4556f,1.2192f,0.6731f,0.4566f,1.7922f,0.905f,0.4581f,1.1618f,0.5227f,0.4625f,1.0099f,0.3592f,0.4643f,1.3103f,0.3044f,0.4651f,0.749f,0.263f,0.4656f,0.9951f,-0.2065f,0.4694f,1.6101f,0.2117f,0.4738f,0.8592f,0.0346f,0.4991f,0.7775f,0.0834f,0.5f,0.5434f,0.4028f,0.5f,0.7161f,-0.2999f,0.5257f,0.8667f,0.0133f,0.5319f,0.2579f,-0.4135f,0.5319f,0.2579f,0.4135f,0.5344f,0.8168f,0.2262f,0.5344f,0.9474f,-0.2262f,0.5344f,1.3233f,0.2067f,0.5344f,1.4798f,-0.0654f,0.5344f,1.746f,0.4382f,0.5344f,2.0153f,0.277f,0.5357f,-0.7547f,0.8425f,0.5553f,1.1023f,0.3039f,0.5553f,1.3672f,0.4014f,0.5553f,1.4892f,0.4601f,0.5647f,1.7067f,0.6559f,0.5747f,2.2072f,0.8614f,0.5823f,2.2955f,0.6984f,0.5836f,1.9194f,0.8742f,0.5904f,2.0801f,0.3833f,0.6189f,1.2731f,0.2677f,0.6189f,1.6632f,0.4579f,0.627f,2.2102f,0.4293f,0.6449f,2.3735f,0.7793f,0.7413f,-1.7574f,-0.4012f,0.7413f,-1.7574f,0.4143f,0.75f,2.0555f,0.2325f,0.75f,2.1179f,0.3367f,0.75f,2.2102f,0.4293f,0.8551f,2.3735f,0.7793f,0.873f,2.2102f,0.4293f,0.8811f,1.2731f,0.2677f,0.8811f,1.6632f,0.4579f,0.9035f,0.1558f,0.7779f,0.9096f,2.0801f,0.3833f,0.9164f,1.9194f,0.8742f,0.9177f,2.2955f,0.6984f,0.9253f,2.2072f,0.8614f,0.9353f,1.7067f,0.6559f,0.9447f,1.1023f,0.3039f,0.9447f,1.3672f,0.4014f,0.9447f,1.4892f,0.4601f,0.9585f,-1.2868f,-0.3676f,0.9585f,-1.2868f,0.3807f,0.9656f,0.8168f,0.2262f,0.9656f,0.9474f,-0.2262f,0.9656f,1.3233f,0.2067f,0.9656f,1.4798f,-0.0654f,0.9656f,1.746f,0.4382f,0.9656f,2.0153f,0.277f,1.0f,0.5434f,0.4028f,1.0f,0.7161f,-0.2999f,1.0639f,0.2579f,-0.4135f,1.0639f,0.2579f,0.4135f,1.0888f,-0.2968f,0.9382f,1.1042f,0.2448f,1.0582f,1.2302f,0.3046f,1.1685f,1.2309f,-0.0648f,1.1679f,1.2338f,0.3706f,1.3535f,1.2792f,0.4091f,1.0483f,1.3373f,0.0428f,1.2612f,1.3403f,0.1103f,1.4457f};
return value;
}
private float[] getCOORD0_6_18_point_3()
{
float[] value = {1.3712f,0.2213f,0.4222f,1.458f,-0.0459f,1.209f,1.4702f,0.5912f,1.5095f,1.4912f,0.4059f,0.837f,1.4926f,0.3947f,0.9527f,1.5565f,-0.2313f,0.5826f,1.5902f,0.4052f,0.972f,1.6098f,0.2425f,0.9702f,1.6201f,0.2249f,1.6393f,1.6284f,0.0719f,1.0537f,1.642f,0.282f,1.0106f,1.6436f,-0.0147f,0.9862f,1.6553f,0.2217f,0.8927f,1.6639f,0.6263f,1.3225f,1.6669f,0.5871f,1.26f,1.6938f,0.1588f,1.0491f,1.7731f,0.5613f,1.3205f,1.7961f,0.2803f,1.356f,1.8059f,0.2572f,1.4527f,1.857f,0.362f,1.3829f};
return value;
}
/** Define subarrays using type int[] */
private int[] getXvlShell_5_23_faceCoordIndex_1()
{
int[] value = {214,213,218,217,-1,218,213,202,208,-1,175,173,176,186,187,-1,123,129,121,125,-1,172,187,164,165,-1,186,176,170,-1,109,111,114,101,-1,176,153,159,170,-1,89,76,78,83,-1,211,201,195,192,205,-1,130,128,100,102,-1,71,66,57,-1,188,182,143,138,-1,59,89,88,58,-1,86,74,79,-1,64,57,59,58,56,63,-1,80,63,70,74,-1,63,56,70,-1,171,191,142,117,-1,105,108,107,98,106,104,-1,91,92,106,98,-1,192,171,117,149,-1,47,27,32,-1,117,142,97,94,-1,7,46,32,13,-1,205,180,190,200,-1,96,48,55,85,-1,54,55,48,50,-1,44,50,48,35,-1,6,51,46,7,-1,3,4,43,35,-1,97,49,45,94,-1,13,8,4,3,7,-1,205,192,181,180,-1,2,49,51,6,-1,95,42,48,96,-1,45,49,2,0,-1,93,94,45,52,-1,45,0,10,52,-1,141,190,180,9,1,42,95,-1,163,181,93,52,10,26,-1,9,180,162,25,-1,48,42,1,5,-1,5,6,7,3,-1,53,54,50,51,-1,22,28,34,16,-1,62,70,56,-1,17,19,21,12,-1,203,213,214,204,-1,154,148,147,153,156,-1,127,129,123,124,126,-1,207,212,203,204,-1,202,213,203,197,196,-1,153,147,159,-1,196,197,194,-1,199,196,194,198,-1,218,208,199,201,211,-1,118,127,126,-1,147,152,159,-1,197,193,194,-1,124,110,103,126,-1,82,83,61,60,-1,184,169,177,-1,198,194,193,195,-1,110,109,101,99,103,-1,129,135,108,101,-1,89,83,82,77,87,-1,150,177,169,158,-1,158,145,150,-1,183,185,184,177,182,-1,132,119,131,-1,193,171,192,195,-1,182,177,150,143,-1,130,102,116,119,-1,60,61,59,57,66,-1,104,131,119,116,-1,104,116,105,-1,89,87,81,80,86,88,-1,115,103,99,-1,154,175,174,155,-1,123,125,111,109,-1,124,123,109,110,-1,186,170,179,-1,154,155,157,148,-1,178,169,184,-1,83,78,65,61,-1,178,184,185,187,186,179,-1,115,118,126,103,-1,75,87,77,-1,203,200,171,193,197,-1,82,60,66,77,-1,75,77,66,71,-1,102,105,116,-1,29,39,37,41,-1,183,144,146,185,-1,138,143,140,137,-1,29,41,12,21,-1,41,37,38,34,40,-1,136,137,139,134,-1,79,74,70,62,-1,17,12,11,16,18,-1,16,11,22,-1,36,15,14,33,-1,192,149,181,-1,33,14,20,27,-1,46,51,50,44,-1,20,8,13,-1,47,32,46,44,35,43,-1,51,49,97,92,-1,139,141,95,96,-1,181,149,93,-1,149,117,94,93,-1,35,48,5,3,-1,6,5,1,2,-1,162,180,181,163,-1,2,1,9,10,0,-1,162,163,26,25,-1,10,9,25,26,-1,13,32,27,20,-1,51,92,84,53,-1,14,8,20,-1,11,12,4,8,14,15,-1,56,58,55,54,53,62,-1,91,98,107,96,-1,22,11,15,-1,88,86,79,84,90,85,-1,38,18,16,34,-1,36,40,28,-1,144,139,137,140,-1,64,71,57,-1,115,99,100,-1,211,209,217,218,-1,174,175,187,172,-1,173,156,153,176,-1,165,164,148,157,-1,212,207,209,211,-1,201,199,198,-1,170,159,152,179,-1,201,198,195,-1,178,151,158,169,-1,164,187,185,146,148,-1,128,118,115,100,-1,148,146,145,151,152,147,-1,101,108,105,102,100,99,-1,81,75,71,64,-1,136,133,138,137,-1,145,146,144,140,143,150,-1,191,188,138,142,-1,200,190,191,171,-1,133,131,104,106,-1,183,189,139,144,-1,108,135,134,107,-1,40,34,28,-1,68,76,89,59,-1,156,173,175,154,-1,199,208,202,196,-1,127,118,128,-1,178,179,152,151,-1,61,65,68,59,-1,158,151,145,-1,127,128,130,132,135,129,-1,130,119,132,-1,212,211,205,200,203,-1,81,87,75,-1,183,182,188,189,-1,37,39,19,17,-1,86,80,74,-1,134,135,132,131,133,136,-1,38,37,17,18,-1,81,64,63,80,-1,189,188,191,190,-1,138,133,106,92,-1,84,92,91,90,-1,36,28,22,15,-1,36,33,47,43,41,40,-1,139,189,190,141,-1,97,142,138,92,-1,85,90,91,96,-1,134,139,96,107,-1,88,85,55,58,-1,53,84,79,62,-1,33,27,47,-1,12,41,43,4,-1,121,129,101,114,-1,112,114,111,113,-1,167,161,155,174,-1,219,216,214,217,-1,167,174,172,168,-1,167,168,166,160,161,-1,166,168,172,165,-1,113,120,122,112,-1,166,165,157,160,-1,122,121,114,112,-1,214,216,206,204,-1,204,206,210,207,-1,219,217,209,215,-1,72,73,67,69,-1,29,31};
return value;
}
private int[] getXvlShell_5_23_faceCoordIndex_2()
{
int[] value = {30,39,-1,30,31,23,24,-1,21,23,31,29,-1,68,67,73,76,-1,210,215,209,207,-1,78,76,73,72,-1,78,72,69,65,-1,69,67,68,65,-1,120,125,121,122,-1,155,161,160,157,-1,113,111,125,120,-1,216,219,215,210,206,-1,39,30,24,19,-1,24,23,21,19,-1};
return value;
}
/** Define subarrays using type bool[] */
private bool[] getXvlShell_5_23_faceHidden_1()
{
bool[] value = {true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true};
return value;
}
private bool[] getXvlShell_5_23_faceHidden_2()
{
bool[] value = {true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false};
return value;
}
private bool[] getXvlShell_5_23_faceHidden_3()
{
bool[] value = {false,false,false,false,false,false,false,false,false,false,false};
return value;
}
/** Large attribute array: XvlShell faceCoordIndex field, scene-graph level=5, element #18, 1069 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 getXvlShell_5_18_faceCoordIndex()
{
MFInt32Object XvlShell_5_18_faceCoordIndex = new MFInt32Object()/*2.finalize*/
.append(new MFInt32Object(getXvlShell_5_18_faceCoordIndex_1()))
.append(new MFInt32Object(getXvlShell_5_18_faceCoordIndex_2()));
return XvlShell_5_18_faceCoordIndex;
}
/** Large attribute array: XvlShell faceHidden field, scene-graph level=5, element #18, 211 total 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 MFBoolObject getXvlShell_5_18_faceHidden()
{
MFBoolObject XvlShell_5_18_faceHidden = new MFBoolObject()/*2.finalize*/
.append(new MFBoolObject(getXvlShell_5_18_faceHidden_1()))
.append(new MFBoolObject(getXvlShell_5_18_faceHidden_2()))
.append(new MFBoolObject(getXvlShell_5_18_faceHidden_3()));
return XvlShell_5_18_faceHidden;
}
/** Large attribute array: Coordinate DEF='COORD0' point field, scene-graph level=6, element #18, 660 total numbers made up of 220 3-tuple values.
* Reassemble split array as single method to improve readability and runnability.
* Provide large array values via separate methods, hoping to avoid 'code too large' Java compilation errors.
* Individual Java methods (including aggregated initializations) are limited to 64KB.
* @see https://stackoverflow.com/questions/2407912/code-too-large-compilation-error-in-java
* @see https://stackoverflow.com/questions/11437905/java-too-many-constants-jvm-error
*/
private MFVec3fObject getCOORD0_6_18_point()
{
MFVec3fObject COORD0_6_18_point = new MFVec3fObject()/*2.finalize*/
.append(new MFVec3fObject(getCOORD0_6_18_point_1()))
.append(new MFVec3fObject(getCOORD0_6_18_point_2()))
.append(new MFVec3fObject(getCOORD0_6_18_point_3()));
return COORD0_6_18_point;
}
/** Large attribute array: XvlShell faceCoordIndex field, scene-graph level=5, element #23, 1069 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 getXvlShell_5_23_faceCoordIndex()
{
MFInt32Object XvlShell_5_23_faceCoordIndex = new MFInt32Object()/*2.finalize*/
.append(new MFInt32Object(getXvlShell_5_23_faceCoordIndex_1()))
.append(new MFInt32Object(getXvlShell_5_23_faceCoordIndex_2()));
return XvlShell_5_23_faceCoordIndex;
}
/** Large attribute array: XvlShell faceHidden field, scene-graph level=5, element #23, 211 total 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 MFBoolObject getXvlShell_5_23_faceHidden()
{
MFBoolObject XvlShell_5_23_faceHidden = new MFBoolObject()/*2.finalize*/
.append(new MFBoolObject(getXvlShell_5_23_faceHidden_1()))
.append(new MFBoolObject(getXvlShell_5_23_faceHidden_2()))
.append(new MFBoolObject(getXvlShell_5_23_faceHidden_3()));
return XvlShell_5_23_faceHidden;
}
/** The initialized model object, created within initialize() method. */
private X3DObject x3dModel;
/** Provide a
* shallow copy
* of the X3D model.
* @see X3DObject
* @return XvlShellModelHand 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 XvlShellModelHand().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: \"XvlShellModelHand\" 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 \"XvlShellModelHand\" self-validation test results: ");
String validationResults = thisExampleX3dObject.validationReport();
System.out.println(validationResults);
}
}
}