package X3dForAdvancedModeling.GeometricShapes;
/*
Copyright (c) 1995-2022 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 (https://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 org.web3d.x3d.jsail.Core.*;
import org.web3d.x3d.jsail.EnvironmentalEffects.*;
import org.web3d.x3d.jsail.fields.*;
import org.web3d.x3d.jsail.Geometry3D.*;
import org.web3d.x3d.jsail.Navigation.*;
import org.web3d.x3d.jsail.Rendering.*;
import org.web3d.x3d.jsail.Shape.*;
// Javadoc annotations follow, see below for Java source code.
/**
*
Icosahedron is a polyhedron with twenty faces, subdivided to level 3, where all 642 vertices and 1280 faces produce regular (equilateral) triangles.
Related links: IcosahedronSubdivisionLevel3.java source, IcosahedronSubdivisionLevel3 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 Don Brutzman
*/
public class IcosahedronSubdivisionLevel3
{
/** Default constructor to create this object. */
public IcosahedronSubdivisionLevel3 ()
{
initialize();
}
/** Create and initialize the X3D model for this object. */
public final void initialize()
{
x3dModel = new X3D().setProfile(X3D.PROFILE_INTERCHANGE).setVersion(X3D.VERSION_3_1)
.setHead(new head()
.addMeta(new meta().setName(meta.NAME_TITLE ).setContent("IcosahedronSubdivisionLevel3.x3d"))
.addMeta(new meta().setName(meta.NAME_REFERENCE ).setContent("IcosahedronSubdivisionLevel3.ply"))
.addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("Icosahedron is a polyhedron with twenty faces, subdivided to level 3, where all 642 vertices and 1280 faces produce regular (equilateral) triangles."))
.addMeta(new meta().setName(meta.NAME_CREATED ).setContent("13 September 2014"))
.addMeta(new meta().setName(meta.NAME_MODIFIED ).setContent("20 October 2019"))
.addMeta(new meta().setName(meta.NAME_CREATOR ).setContent("Don Brutzman"))
.addMeta(new meta().setName(meta.NAME_REFERENCE ).setContent("Icosahedron.x3d"))
.addMeta(new meta().setName(meta.NAME_REFERENCE ).setContent("https://en.wikipedia.org/wiki/Icosahedron"))
.addMeta(new meta().setName(meta.NAME_REFERENCE ).setContent("https://en.wiktionary.org/wiki/icosahedron"))
.addMeta(new meta().setName(meta.NAME_REFERENCE ).setContent("https://en.wikipedia.org/wiki/Platonic_solid"))
.addMeta(new meta().setName(meta.NAME_REFERENCE ).setContent("https://en.wikipedia.org/wiki/Geodesic_grid"))
.addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://x3dgraphics.com/examples/X3dForAdvancedModeling/GeometricShapes/IcosahedronSubdivisionLevel3.x3d"))
.addMeta(new meta().setName(meta.NAME_GENERATOR ).setContent("Meshlab X3D Exported, http://meshlab.sourceforge.net"))
.addMeta(new meta().setName(meta.NAME_GENERATOR ).setContent("X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"))
.addMeta(new meta().setName(meta.NAME_LICENSE ).setContent("../license.html")))
.setScene(new Scene()
.addChild(new WorldInfo().setTitle("IcosahedronSubdivisionLevel3.x3d"))
.addChild(new Background().setSkyColor(new MFColor(new double[] {0.5,1.0,0.9})))
.addChild(new Viewpoint().setDescription("Icosahedron, subdivision level 3").setPosition(0.0,0.0,6.0))
.addChild(new Shape("IcosahedronSubdivisionLevel3")
.setGeometry(new IndexedFaceSet().setSolid(false).setCoordIndex(getIndexedFaceSet_4_20_coordIndex())
.setCoord(new Coordinate().setPoint(getCoordinate_5_20_point())))
.setAppearance(new Appearance()
.setMaterial(new Material().setDiffuseColor(0.2,0.5,0.8)))));
}
// end of initialize() method
/** Define subarrays using type int[] */
private int[] getIndexedFaceSet_4_20_coordIndex_1()
{
int[] value = {0,1,2,-1,3,4,5,-1,6,7,8,-1,9,10,11,-1,12,13,14,-1,15,16,17,-1,18,19,20,-1,21,22,23,-1,24,25,26,-1,27,28,29,-1,30,31,32,-1,33,34,35,-1,36,37,38,-1,39,40,41,-1,42,43,44,-1,45,46,47,-1,48,49,50,-1,51,52,53,-1,54,55,56,-1,57,58,59,-1,60,61,62,-1,63,64,65,-1,66,67,68,-1,69,70,71,-1,72,73,74,-1,75,76,77,-1,78,79,80,-1,81,82,83,-1,84,85,86,-1,87,88,89,-1,90,91,92,-1,93,94,95,-1,96,97,98,-1,99,100,101,-1,102,103,104,-1,105,106,107,-1,108,109,110,-1,111,112,113,-1,114,115,116,-1,117,118,119,-1,120,121,122,-1,123,124,125,-1,126,127,128,-1,129,130,131,-1,132,133,134,-1,135,136,137,-1,138,139,140,-1,141,142,143,-1,144,145,146,-1,147,148,149,-1,150,151,152,-1,153,154,155,-1,156,157,158,-1,159,160,161,-1,162,163,164,-1,165,166,167,-1,168,169,170,-1,171,172,173,-1,174,175,176,-1,177,178,179,-1,180,181,182,-1,183,184,185,-1,186,187,188,-1,189,190,191,-1,192,193,194,-1,195,196,197,-1,198,199,200,-1,201,202,203,-1,204,205,206,-1,207,208,209,-1,210,211,212,-1,213,214,215,-1,216,217,218,-1,219,220,221,-1,222,223,224,-1,225,226,227,-1,228,229,230,-1,231,232,233,-1,234,235,236,-1,237,238,239,-1,240,2,241,-1,242,243,0,-1,1,244,245,-1,246,5,247,-1,248,249,3,-1,4,250,251,-1,252,8,253,-1,254,255,6,-1,7,256,257,-1,258,11,259,-1,260,261,9,-1,10,262,263,-1,264,14,265,-1,266,267,12,-1,13,268,269,-1,270,17,271,-1,272,273,15,-1,16,274,275,-1,276,20,277,-1,278,279,18,-1,19,280,281,-1,282,23,283,-1,284,285,21,-1,22,286,287,-1,288,26,289,-1,290,291,24,-1,25,292,293,-1,294,29,295,-1,296,297,27,-1,28,298,299,-1,300,32,301,-1,302,303,30,-1,31,304,305,-1,306,35,307,-1,308,309,33,-1,34,310,311,-1,312,38,313,-1,314,315,36,-1,37,316,317,-1,318,41,319,-1,320,321,39,-1,40,322,323,-1,324,44,325,-1,326,327,42,-1,43,328,329,-1,330,47,331,-1,332,333,45,-1,46,334,335,-1,336,50,337,-1,338,339,48,-1,49,340,341,-1,342,53,343,-1,344,345,51,-1,52,346,347,-1,348,56,349,-1,350,351,54,-1,55,352,353,-1,354,59,355,-1,356,357,57,-1,58,358,359,-1,360,62,361,-1,362,241,60,-1,61,245,363,-1,364,65,240,-1,365,366,63,-1,64,367,242,-1,244,68,368,-1,243,369,66,-1,67,370,371,-1,365,71,372,-1,364,247,69,-1,70,251,373,-1,362,74,246,-1,360,374,72,-1,73,375,248,-1,250,77,376,-1,249,377,75,-1,76,378,379,-1,380,80,381,-1,382,253,78,-1,79,257,383,-1,384,83,252,-1,385,386,81,-1,82,387,254,-1,256,86,388,-1,255,389,84,-1,85,390,391,-1,385,89,392,-1,384,259,87,-1,88,263,393,-1,382,92,258,-1,380,394,90,-1,91,395,260,-1,262,95,396,-1,261,397,93,-1,94,398,399,-1,400,98,401,-1,402,265,96,-1,97,269,403,-1,404,101,264,-1,405,406,99,-1,100,407,266,-1,268,104,408,-1,267,409,102,-1,103,410,411,-1,405,107,412,-1,404,271,105,-1,106,275,413,-1,402,110,270,-1,400,414,108,-1,109,415,272,-1,274,113,416,-1,273,417,111,-1,112,418,419,-1,420,116,421,-1,422,277,114,-1,115,281,423,-1,424,119,276,-1,425,426,117,-1,118,427,278,-1,280,122,428,-1,279,429,120,-1,121,430,431,-1,425,125,432,-1,424,283,123,-1,124,287,433,-1,422,128,282,-1,420,434,126,-1,127,435,284,-1,286,131,436,-1,285,437,129,-1,130,438,439,-1,440,134,441,-1,442,289,132,-1,133,293,443,-1,444,137,288,-1,445,446,135,-1,136,447,290,-1,292,140,448,-1,291,449,138,-1,139,450,451,-1,445,143,452,-1,444,295,141,-1,142,299,453,-1,442,146,294,-1,440,454,144,-1,145,455,296,-1,298,149,456,-1,297,457,147,-1,148,458,459,-1,460,152,461,-1,462,301,150,-1,151,305,463,-1,464,155,300,-1,465,466,153,-1,154,467,302,-1,304,158,468,-1,303,469,156,-1,157,470,471,-1,465,161,472,-1,464,307,159,-1,160,311,473,-1,462,164,306,-1,460,474,162,-1,163,475,308,-1,310,167,476,-1,309,477,165,-1,166,478,479,-1,458,170,366,-1,457,313,168,-1};
return value;
}
private int[] getIndexedFaceSet_4_20_coordIndex_2()
{
int[] value = {169,317,367,-1,455,173,312,-1,454,418,171,-1,172,417,314,-1,316,176,369,-1,315,415,174,-1,175,414,370,-1,372,179,459,-1,373,319,177,-1,178,323,456,-1,376,182,318,-1,379,421,180,-1,181,423,320,-1,322,185,453,-1,321,428,183,-1,184,431,452,-1,361,188,471,-1,363,325,186,-1,187,329,468,-1,368,191,324,-1,371,401,189,-1,190,403,326,-1,328,194,463,-1,327,408,192,-1,193,411,461,-1,470,197,374,-1,469,331,195,-1,196,335,375,-1,467,200,330,-1,466,438,198,-1,199,437,332,-1,334,203,377,-1,333,435,201,-1,202,434,378,-1,381,206,451,-1,383,337,204,-1,205,341,448,-1,388,209,336,-1,391,412,207,-1,208,413,338,-1,340,212,443,-1,339,416,210,-1,211,419,441,-1,450,215,394,-1,449,343,213,-1,214,347,395,-1,447,218,342,-1,446,430,216,-1,217,429,344,-1,346,221,397,-1,345,427,219,-1,220,426,398,-1,478,224,386,-1,477,349,222,-1,223,353,387,-1,475,227,348,-1,474,410,225,-1,226,409,350,-1,352,230,389,-1,351,407,228,-1,229,406,390,-1,392,233,479,-1,393,355,231,-1,232,359,476,-1,396,236,354,-1,399,432,234,-1,235,433,356,-1,358,239,473,-1,357,436,237,-1,238,439,472,-1,480,0,2,-1,0,481,1,-1,2,1,482,-1,483,3,5,-1,3,484,4,-1,5,4,485,-1,486,6,8,-1,6,487,7,-1,8,7,488,-1,489,9,11,-1,9,490,10,-1,11,10,491,-1,492,12,14,-1,12,493,13,-1,14,13,494,-1,495,15,17,-1,15,496,16,-1,17,16,497,-1,498,18,20,-1,18,499,19,-1,20,19,500,-1,501,21,23,-1,21,502,22,-1,23,22,503,-1,504,24,26,-1,24,505,25,-1,26,25,506,-1,507,27,29,-1,27,508,28,-1,29,28,509,-1,510,30,32,-1,30,511,31,-1,32,31,512,-1,513,33,35,-1,33,514,34,-1,35,34,515,-1,516,36,38,-1,36,517,37,-1,38,37,518,-1,519,39,41,-1,39,520,40,-1,41,40,521,-1,522,42,44,-1,42,523,43,-1,44,43,524,-1,525,45,47,-1,45,526,46,-1,47,46,527,-1,528,48,50,-1,48,529,49,-1,50,49,530,-1,531,51,53,-1,51,532,52,-1,53,52,533,-1,534,54,56,-1,54,535,55,-1,56,55,536,-1,537,57,59,-1,57,538,58,-1,59,58,539,-1,540,60,62,-1,60,482,61,-1,62,61,541,-1,542,63,65,-1,63,543,64,-1,65,64,480,-1,481,66,68,-1,66,544,67,-1,68,67,545,-1,542,69,71,-1,69,485,70,-1,71,70,546,-1,540,72,74,-1,72,547,73,-1,74,73,483,-1,484,75,77,-1,75,548,76,-1,77,76,549,-1,550,78,80,-1,78,488,79,-1,80,79,551,-1,552,81,83,-1,81,553,82,-1,83,82,486,-1,487,84,86,-1,84,554,85,-1,86,85,555,-1,552,87,89,-1,87,491,88,-1,89,88,556,-1,550,90,92,-1,90,557,91,-1,92,91,489,-1,490,93,95,-1,93,558,94,-1,95,94,559,-1,560,96,98,-1,96,494,97,-1,98,97,561,-1,562,99,101,-1,99,563,100,-1,101,100,492,-1,493,102,104,-1,102,564,103,-1,104,103,565,-1,562,105,107,-1,105,497,106,-1,107,106,566,-1,560,108,110,-1,108,567,109,-1,110,109,495,-1,496,111,113,-1,111,568,112,-1,113,112,569,-1,570,114,116,-1,114,500,115,-1,116,115,571,-1,572,117,119,-1,117,573,118,-1,119,118,498,-1,499,120,122,-1,120,574,121,-1,122,121,575,-1,572,123,125,-1,123,503,124,-1,125,124,576,-1,570,126,128,-1,126,577,127,-1,128,127,501,-1,502,129,131,-1,129,578,130,-1,131,130,579,-1,580,132,134,-1,132,506,133,-1,134,133,581,-1,582,135,137,-1,135,583,136,-1,137,136,504,-1,505,138,140,-1,138,584,139,-1,140,139,585,-1,582,141,143,-1,141,509,142,-1,143,142,586,-1,580,144,146,-1,144,587,145,-1,146,145,507,-1,508,147,149,-1,147,588,148,-1,149,148,589,-1,590,150,152,-1,150,512,151,-1,152,151,591,-1,592,153,155,-1,153,593,154,-1,155,154,510,-1,511,156,158,-1,156,594,157,-1,158,157,595,-1,592,159,161,-1,159,515,160,-1,161,160,596,-1,590,162,164,-1,162,597,163,-1,164,163,513,-1,514,165,167,-1,165,598,166,-1,167,166,599,-1,588,168,170,-1,168,518,169,-1,170,169,543,-1,587,171,173,-1,171,568,172,-1,173,172,516,-1,517,174,176,-1,174,567,175,-1,176,175,544,-1,546,177,179,-1,177,521,178,-1,179,178,589,-1};
return value;
}
private int[] getIndexedFaceSet_4_20_coordIndex_3()
{
int[] value = {549,180,182,-1,180,571,181,-1,182,181,519,-1,520,183,185,-1,183,575,184,-1,185,184,586,-1,541,186,188,-1,186,524,187,-1,188,187,595,-1,545,189,191,-1,189,561,190,-1,191,190,522,-1,523,192,194,-1,192,565,193,-1,194,193,591,-1,594,195,197,-1,195,527,196,-1,197,196,547,-1,593,198,200,-1,198,578,199,-1,200,199,525,-1,526,201,203,-1,201,577,202,-1,203,202,548,-1,551,204,206,-1,204,530,205,-1,206,205,585,-1,555,207,209,-1,207,566,208,-1,209,208,528,-1,529,210,212,-1,210,569,211,-1,212,211,581,-1,584,213,215,-1,213,533,214,-1,215,214,557,-1,583,216,218,-1,216,574,217,-1,218,217,531,-1,532,219,221,-1,219,573,220,-1,221,220,558,-1,598,222,224,-1,222,536,223,-1,224,223,553,-1,597,225,227,-1,225,564,226,-1,227,226,534,-1,535,228,230,-1,228,563,229,-1,230,229,554,-1,556,231,233,-1,231,539,232,-1,233,232,599,-1,559,234,236,-1,234,576,235,-1,236,235,537,-1,538,237,239,-1,237,579,238,-1,239,238,596,-1,600,240,241,-1,240,480,2,-1,241,2,482,-1,480,242,0,-1,242,601,243,-1,0,243,481,-1,482,1,245,-1,1,481,244,-1,245,244,602,-1,600,246,247,-1,246,483,5,-1,247,5,485,-1,483,248,3,-1,248,603,249,-1,3,249,484,-1,485,4,251,-1,4,484,250,-1,251,250,604,-1,605,252,253,-1,252,486,8,-1,253,8,488,-1,486,254,6,-1,254,606,255,-1,6,255,487,-1,488,7,257,-1,7,487,256,-1,257,256,607,-1,605,258,259,-1,258,489,11,-1,259,11,491,-1,489,260,9,-1,260,608,261,-1,9,261,490,-1,491,10,263,-1,10,490,262,-1,263,262,609,-1,610,264,265,-1,264,492,14,-1,265,14,494,-1,492,266,12,-1,266,611,267,-1,12,267,493,-1,494,13,269,-1,13,493,268,-1,269,268,612,-1,610,270,271,-1,270,495,17,-1,271,17,497,-1,495,272,15,-1,272,613,273,-1,15,273,496,-1,497,16,275,-1,16,496,274,-1,275,274,614,-1,615,276,277,-1,276,498,20,-1,277,20,500,-1,498,278,18,-1,278,616,279,-1,18,279,499,-1,500,19,281,-1,19,499,280,-1,281,280,617,-1,615,282,283,-1,282,501,23,-1,283,23,503,-1,501,284,21,-1,284,618,285,-1,21,285,502,-1,503,22,287,-1,22,502,286,-1,287,286,619,-1,620,288,289,-1,288,504,26,-1,289,26,506,-1,504,290,24,-1,290,621,291,-1,24,291,505,-1,506,25,293,-1,25,505,292,-1,293,292,622,-1,620,294,295,-1,294,507,29,-1,295,29,509,-1,507,296,27,-1,296,623,297,-1,27,297,508,-1,509,28,299,-1,28,508,298,-1,299,298,624,-1,625,300,301,-1,300,510,32,-1,301,32,512,-1,510,302,30,-1,302,626,303,-1,30,303,511,-1,512,31,305,-1,31,511,304,-1,305,304,627,-1,625,306,307,-1,306,513,35,-1,307,35,515,-1,513,308,33,-1,308,628,309,-1,33,309,514,-1,515,34,311,-1,34,514,310,-1,311,310,629,-1,623,312,313,-1,312,516,38,-1,313,38,518,-1,516,314,36,-1,314,613,315,-1,36,315,517,-1,518,37,317,-1,37,517,316,-1,317,316,601,-1,604,318,319,-1,318,519,41,-1,319,41,521,-1,519,320,39,-1,320,617,321,-1,39,321,520,-1,521,40,323,-1,40,520,322,-1,323,322,624,-1,602,324,325,-1,324,522,44,-1,325,44,524,-1,522,326,42,-1,326,612,327,-1,42,327,523,-1,524,43,329,-1,43,523,328,-1,329,328,627,-1,626,330,331,-1,330,525,47,-1,331,47,527,-1,525,332,45,-1,332,618,333,-1,45,333,526,-1,527,46,335,-1,46,526,334,-1,335,334,603,-1,607,336,337,-1,336,528,50,-1,337,50,530,-1,528,338,48,-1,338,614,339,-1,48,339,529,-1,530,49,341,-1,49,529,340,-1,341,340,622,-1,621,342,343,-1,342,531,53,-1,343,53,533,-1,531,344,51,-1,344,616,345,-1,51,345,532,-1,533,52,347,-1,52,532,346,-1,347,346,608,-1,628,348,349,-1,348,534,56,-1,349,56,536,-1,534,350,54,-1,350,611,351,-1,54,351,535,-1,536,55,353,-1,55,535,352,-1,353,352,606,-1,609,354,355,-1,354,537,59,-1,355,59,539,-1,537,356,57,-1,356,619,357,-1,57,357,538,-1,539,58,359,-1,58,538,358,-1,359,358,629,-1,630,360,361,-1,360,540,62,-1,361,62,541,-1,540,362,60,-1,362,600,241,-1,60,241,482,-1,541,61,363,-1,61,482,245,-1,363,245,602,-1,600,364,240,-1};
return value;
}
private int[] getIndexedFaceSet_4_20_coordIndex_4()
{
int[] value = {364,542,65,-1,240,65,480,-1,542,365,63,-1,365,631,366,-1,63,366,543,-1,480,64,242,-1,64,543,367,-1,242,367,601,-1,602,244,368,-1,244,481,68,-1,368,68,545,-1,481,243,66,-1,243,601,369,-1,66,369,544,-1,545,67,371,-1,67,544,370,-1,371,370,632,-1,631,365,372,-1,365,542,71,-1,372,71,546,-1,542,364,69,-1,364,600,247,-1,69,247,485,-1,546,70,373,-1,70,485,251,-1,373,251,604,-1,600,362,246,-1,362,540,74,-1,246,74,483,-1,540,360,72,-1,360,630,374,-1,72,374,547,-1,483,73,248,-1,73,547,375,-1,248,375,603,-1,604,250,376,-1,250,484,77,-1,376,77,549,-1,484,249,75,-1,249,603,377,-1,75,377,548,-1,549,76,379,-1,76,548,378,-1,379,378,633,-1,634,380,381,-1,380,550,80,-1,381,80,551,-1,550,382,78,-1,382,605,253,-1,78,253,488,-1,551,79,383,-1,79,488,257,-1,383,257,607,-1,605,384,252,-1,384,552,83,-1,252,83,486,-1,552,385,81,-1,385,635,386,-1,81,386,553,-1,486,82,254,-1,82,553,387,-1,254,387,606,-1,607,256,388,-1,256,487,86,-1,388,86,555,-1,487,255,84,-1,255,606,389,-1,84,389,554,-1,555,85,391,-1,85,554,390,-1,391,390,636,-1,635,385,392,-1,385,552,89,-1,392,89,556,-1,552,384,87,-1,384,605,259,-1,87,259,491,-1,556,88,393,-1,88,491,263,-1,393,263,609,-1,605,382,258,-1,382,550,92,-1,258,92,489,-1,550,380,90,-1,380,634,394,-1,90,394,557,-1,489,91,260,-1,91,557,395,-1,260,395,608,-1,609,262,396,-1,262,490,95,-1,396,95,559,-1,490,261,93,-1,261,608,397,-1,93,397,558,-1,559,94,399,-1,94,558,398,-1,399,398,637,-1,632,400,401,-1,400,560,98,-1,401,98,561,-1,560,402,96,-1,402,610,265,-1,96,265,494,-1,561,97,403,-1,97,494,269,-1,403,269,612,-1,610,404,264,-1,404,562,101,-1,264,101,492,-1,562,405,99,-1,405,636,406,-1,99,406,563,-1,492,100,266,-1,100,563,407,-1,266,407,611,-1,612,268,408,-1,268,493,104,-1,408,104,565,-1,493,267,102,-1,267,611,409,-1,102,409,564,-1,565,103,411,-1,103,564,410,-1,411,410,638,-1,636,405,412,-1,405,562,107,-1,412,107,566,-1,562,404,105,-1,404,610,271,-1,105,271,497,-1,566,106,413,-1,106,497,275,-1,413,275,614,-1,610,402,270,-1,402,560,110,-1,270,110,495,-1,560,400,108,-1,400,632,414,-1,108,414,567,-1,495,109,272,-1,109,567,415,-1,272,415,613,-1,614,274,416,-1,274,496,113,-1,416,113,569,-1,496,273,111,-1,273,613,417,-1,111,417,568,-1,569,112,419,-1,112,568,418,-1,419,418,639,-1,633,420,421,-1,420,570,116,-1,421,116,571,-1,570,422,114,-1,422,615,277,-1,114,277,500,-1,571,115,423,-1,115,500,281,-1,423,281,617,-1,615,424,276,-1,424,572,119,-1,276,119,498,-1,572,425,117,-1,425,637,426,-1,117,426,573,-1,498,118,278,-1,118,573,427,-1,278,427,616,-1,617,280,428,-1,280,499,122,-1,428,122,575,-1,499,279,120,-1,279,616,429,-1,120,429,574,-1,575,121,431,-1,121,574,430,-1,431,430,640,-1,637,425,432,-1,425,572,125,-1,432,125,576,-1,572,424,123,-1,424,615,283,-1,123,283,503,-1,576,124,433,-1,124,503,287,-1,433,287,619,-1,615,422,282,-1,422,570,128,-1,282,128,501,-1,570,420,126,-1,420,633,434,-1,126,434,577,-1,501,127,284,-1,127,577,435,-1,284,435,618,-1,619,286,436,-1,286,502,131,-1,436,131,579,-1,502,285,129,-1,285,618,437,-1,129,437,578,-1,579,130,439,-1,130,578,438,-1,439,438,641,-1,639,440,441,-1,440,580,134,-1,441,134,581,-1,580,442,132,-1,442,620,289,-1,132,289,506,-1,581,133,443,-1,133,506,293,-1,443,293,622,-1,620,444,288,-1,444,582,137,-1,288,137,504,-1,582,445,135,-1,445,640,446,-1,135,446,583,-1,504,136,290,-1,136,583,447,-1,290,447,621,-1,622,292,448,-1,292,505,140,-1,448,140,585,-1,505,291,138,-1,291,621,449,-1,138,449,584,-1,585,139,451,-1,139,584,450,-1,451,450,634,-1,640,445,452,-1,445,582,143,-1,452,143,586,-1,582,444,141,-1,444,620,295,-1,141,295,509,-1,586,142,453,-1,142,509,299,-1,453,299,624,-1,620,442,294,-1,442,580,146,-1,294,146,507,-1,580,440,144,-1,440,639,454,-1,144,454,587,-1,507,145,296,-1,145,587,455,-1};
return value;
}
private int[] getIndexedFaceSet_4_20_coordIndex_5()
{
int[] value = {296,455,623,-1,624,298,456,-1,298,508,149,-1,456,149,589,-1,508,297,147,-1,297,623,457,-1,147,457,588,-1,589,148,459,-1,148,588,458,-1,459,458,631,-1,638,460,461,-1,460,590,152,-1,461,152,591,-1,590,462,150,-1,462,625,301,-1,150,301,512,-1,591,151,463,-1,151,512,305,-1,463,305,627,-1,625,464,300,-1,464,592,155,-1,300,155,510,-1,592,465,153,-1,465,641,466,-1,153,466,593,-1,510,154,302,-1,154,593,467,-1,302,467,626,-1,627,304,468,-1,304,511,158,-1,468,158,595,-1,511,303,156,-1,303,626,469,-1,156,469,594,-1,595,157,471,-1,157,594,470,-1,471,470,630,-1,641,465,472,-1,465,592,161,-1,472,161,596,-1,592,464,159,-1,464,625,307,-1,159,307,515,-1,596,160,473,-1,160,515,311,-1,473,311,629,-1,625,462,306,-1,462,590,164,-1,306,164,513,-1,590,460,162,-1,460,638,474,-1,162,474,597,-1,513,163,308,-1,163,597,475,-1,308,475,628,-1,629,310,476,-1,310,514,167,-1,476,167,599,-1,514,309,165,-1,309,628,477,-1,165,477,598,-1,599,166,479,-1,166,598,478,-1,479,478,635,-1,631,458,366,-1,458,588,170,-1,366,170,543,-1,588,457,168,-1,457,623,313,-1,168,313,518,-1,543,169,367,-1,169,518,317,-1,367,317,601,-1,623,455,312,-1,455,587,173,-1,312,173,516,-1,587,454,171,-1,454,639,418,-1,171,418,568,-1,516,172,314,-1,172,568,417,-1,314,417,613,-1,601,316,369,-1,316,517,176,-1,369,176,544,-1,517,315,174,-1,315,613,415,-1,174,415,567,-1,544,175,370,-1,175,567,414,-1,370,414,632,-1,631,372,459,-1,372,546,179,-1,459,179,589,-1,546,373,177,-1,373,604,319,-1,177,319,521,-1,589,178,456,-1,178,521,323,-1,456,323,624,-1,604,376,318,-1,376,549,182,-1,318,182,519,-1,549,379,180,-1,379,633,421,-1,180,421,571,-1,519,181,320,-1,181,571,423,-1,320,423,617,-1,624,322,453,-1,322,520,185,-1,453,185,586,-1,520,321,183,-1,321,617,428,-1,183,428,575,-1,586,184,452,-1,184,575,431,-1,452,431,640,-1,630,361,471,-1,361,541,188,-1,471,188,595,-1,541,363,186,-1,363,602,325,-1,186,325,524,-1,595,187,468,-1,187,524,329,-1,468,329,627,-1,602,368,324,-1,368,545,191,-1,324,191,522,-1,545,371,189,-1,371,632,401,-1,189,401,561,-1,522,190,326,-1,190,561,403,-1,326,403,612,-1,627,328,463,-1,328,523,194,-1,463,194,591,-1,523,327,192,-1,327,612,408,-1,192,408,565,-1,591,193,461,-1,193,565,411,-1,461,411,638,-1,630,470,374,-1,470,594,197,-1,374,197,547,-1,594,469,195,-1,469,626,331,-1,195,331,527,-1,547,196,375,-1,196,527,335,-1,375,335,603,-1,626,467,330,-1,467,593,200,-1,330,200,525,-1,593,466,198,-1,466,641,438,-1,198,438,578,-1,525,199,332,-1,199,578,437,-1,332,437,618,-1,603,334,377,-1,334,526,203,-1,377,203,548,-1,526,333,201,-1,333,618,435,-1,201,435,577,-1,548,202,378,-1,202,577,434,-1,378,434,633,-1,634,381,451,-1,381,551,206,-1,451,206,585,-1,551,383,204,-1,383,607,337,-1,204,337,530,-1,585,205,448,-1,205,530,341,-1,448,341,622,-1,607,388,336,-1,388,555,209,-1,336,209,528,-1,555,391,207,-1,391,636,412,-1,207,412,566,-1,528,208,338,-1,208,566,413,-1,338,413,614,-1,622,340,443,-1,340,529,212,-1,443,212,581,-1,529,339,210,-1,339,614,416,-1,210,416,569,-1,581,211,441,-1,211,569,419,-1,441,419,639,-1,634,450,394,-1,450,584,215,-1,394,215,557,-1,584,449,213,-1,449,621,343,-1,213,343,533,-1,557,214,395,-1,214,533,347,-1,395,347,608,-1,621,447,342,-1,447,583,218,-1,342,218,531,-1,583,446,216,-1,446,640,430,-1,216,430,574,-1,531,217,344,-1,217,574,429,-1,344,429,616,-1,608,346,397,-1,346,532,221,-1,397,221,558,-1,532,345,219,-1,345,616,427,-1,219,427,573,-1,558,220,398,-1,220,573,426,-1,398,426,637,-1,635,478,386,-1,478,598,224,-1,386,224,553,-1,598,477,222,-1,477,628,349,-1,222,349,536,-1,553,223,387,-1,223,536,353,-1,387,353,606,-1,628,475,348,-1,475,597,227,-1,348,227,534,-1,597,474,225,-1,474,638,410,-1,225,410,564,-1,534,226,350,-1,226,564,409,-1,350,409,611,-1,606,352,389,-1,352,535,230,-1,389,230,554,-1,535,351,228,-1,351,611,407,-1,228,407,563,-1};
return value;
}
private int[] getIndexedFaceSet_4_20_coordIndex_6()
{
int[] value = {554,229,390,-1,229,563,406,-1,390,406,636,-1,635,392,479,-1,392,556,233,-1,479,233,599,-1,556,393,231,-1,393,609,355,-1,231,355,539,-1,599,232,476,-1,232,539,359,-1,476,359,629,-1,609,396,354,-1,396,559,236,-1,354,236,537,-1,559,399,234,-1,399,637,432,-1,234,432,576,-1,537,235,356,-1,235,576,433,-1,356,433,619,-1,629,358,473,-1,358,538,239,-1,473,239,596,-1,538,357,237,-1,357,619,436,-1,237,436,579,-1,596,238,472,-1,238,579,439,-1,472,439,641,-1};
return value;
}
/** Define subarrays using type double[] */
private double[] getCoordinate_5_20_point_1()
{
double[] value = {0.399607,0.912982,0.0823236,0.399607,0.912982,-0.0823236,0.266405,0.963861,0.0,-0.399607,0.912982,-0.0823236,-0.399607,0.912982,0.0823236,-0.266405,0.963861,0.0,0.399607,-0.912982,-0.0823236,0.399607,-0.912982,0.0823236,0.266405,-0.963861,0.0,-0.399607,-0.912982,0.0823236,-0.399607,-0.912982,-0.0823236,-0.266405,-0.963861,0.0,0.912982,-0.0823236,-0.399607,0.912982,0.0823236,-0.399607,0.963861,0.0,-0.266405,0.912982,0.0823236,0.399607,0.912982,-0.0823236,0.399607,0.963861,0.0,0.266405,-0.912982,-0.0823236,0.399607,-0.912982,0.0823236,0.399607,-0.963861,0.0,0.266405,-0.912982,0.0823236,-0.399607,-0.912982,-0.0823236,-0.399607,-0.963861,0.0,-0.266405,-0.0823236,-0.399607,0.912982,0.0823236,-0.399607,0.912982,0.0,-0.266405,0.963861,0.0823236,0.399607,0.912982,-0.0823236,0.399607,0.912982,0.0,0.266405,0.963861,-0.0823236,0.399607,-0.912982,0.0823236,0.399607,-0.912982,0.0,0.266405,-0.963861,0.0823236,-0.399607,-0.912982,-0.0823236,-0.399607,-0.912982,0.0,-0.266405,-0.963861,0.646578,0.513375,0.564254,0.564254,0.646578,0.513375,0.513375,0.564254,0.646578,-0.646578,0.513375,0.564254,-0.513375,0.564254,0.646578,-0.564254,0.646578,0.513375,0.646578,0.513375,-0.564254,0.513375,0.564254,-0.646578,0.564254,0.646578,-0.513375,-0.646578,0.513375,-0.564254,-0.564254,0.646578,-0.513375,-0.513375,0.564254,-0.646578,0.646578,-0.513375,0.564254,0.513375,-0.564254,0.646578,0.564254,-0.646578,0.513375,-0.646578,-0.513375,0.564254,-0.564254,-0.646578,0.513375,-0.513375,-0.564254,0.646578,0.646578,-0.513375,-0.564254,0.564254,-0.646578,-0.513375,0.513375,-0.564254,-0.646578,-0.646578,-0.513375,-0.564254,-0.513375,-0.564254,-0.646578,-0.564254,-0.646578,-0.513375,0.132792,0.966393,-0.220117,0.264083,0.916244,-0.301259,0.131655,0.924305,-0.358229,0.131655,0.924305,0.358229,0.264083,0.916244,0.301259,0.132792,0.966393,0.220117,0.62024,0.780204,0.0811418,0.711282,0.702907,0.0,0.62024,0.780204,-0.0811418,-0.132792,0.966393,0.220117,-0.264083,0.916244,0.301259,-0.131655,0.924305,0.358229,-0.131655,0.924305,-0.358229,-0.264083,0.916244,-0.301259,-0.132792,0.966393,-0.220117,-0.62024,0.780204,-0.0811418,-0.711282,0.702907,0.0,-0.62024,0.780204,0.0811418,0.132792,-0.966393,0.220117,0.264083,-0.916244,0.301259,0.131655,-0.924305,0.358229,0.131655,-0.924305,-0.358229,0.264083,-0.916244,-0.301259,0.132792,-0.966393,-0.220117,0.62024,-0.780204,-0.0811418,0.711282,-0.702907,0.0,0.62024,-0.780204,0.0811418,-0.132792,-0.966393,-0.220117,-0.264083,-0.916244,-0.301259,-0.131655,-0.924305,-0.358229,-0.131655,-0.924305,0.358229,-0.264083,-0.916244,0.301259,-0.132792,-0.966393,0.220117,-0.62024,-0.780204,0.0811418,-0.711282,-0.702907,0.0,-0.62024,-0.780204,-0.0811418,0.966393,0.220117,-0.132792,0.916244,0.301259,-0.264083,0.924305,0.358229,-0.131655,0.924305,-0.358229,-0.131655};
return value;
}
private double[] getCoordinate_5_20_point_2()
{
double[] value = {0.916244,-0.301259,-0.264083,0.966393,-0.220117,-0.132792,0.780204,-0.0811418,-0.62024,0.702907,0.0,-0.711282,0.780204,0.0811418,-0.62024,0.966393,-0.220117,0.132792,0.916244,-0.301259,0.264083,0.924305,-0.358229,0.131655,0.924305,0.358229,0.131655,0.916244,0.301259,0.264083,0.966393,0.220117,0.132792,0.780204,0.0811418,0.62024,0.702907,0.0,0.711282,0.780204,-0.0811418,0.62024,-0.966393,0.220117,0.132792,-0.916244,0.301259,0.264083,-0.924305,0.358229,0.131655,-0.924305,-0.358229,0.131655,-0.916244,-0.301259,0.264083,-0.966393,-0.220117,0.132792,-0.780204,-0.0811418,0.62024,-0.702907,0.0,0.711282,-0.780204,0.0811418,0.62024,-0.966393,-0.220117,-0.132792,-0.916244,-0.301259,-0.264083,-0.924305,-0.358229,-0.131655,-0.924305,0.358229,-0.131655,-0.916244,0.301259,-0.264083,-0.966393,0.220117,-0.132792,-0.780204,0.0811418,-0.62024,-0.702907,0.0,-0.711282,-0.780204,-0.0811418,-0.62024,0.220117,-0.132792,0.966393,0.301259,-0.264083,0.916244,0.358229,-0.131655,0.924305,-0.358229,-0.131655,0.924305,-0.301259,-0.264083,0.916244,-0.220117,-0.132792,0.966393,-0.0811418,-0.62024,0.780204,0.0,-0.711282,0.702907,0.0811418,-0.62024,0.780204,-0.220117,0.132792,0.966393,-0.301259,0.264083,0.916244,-0.358229,0.131655,0.924305,0.358229,0.131655,0.924305,0.301259,0.264083,0.916244,0.220117,0.132792,0.966393,0.0811418,0.62024,0.780204,0.0,0.711282,0.702907,-0.0811418,0.62024,0.780204,0.220117,0.132792,-0.966393,0.301259,0.264083,-0.916244,0.358229,0.131655,-0.924305,-0.358229,0.131655,-0.924305,-0.301259,0.264083,-0.916244,-0.220117,0.132792,-0.966393,-0.0811418,0.62024,-0.780204,0.0,0.711282,-0.702907,0.0811418,0.62024,-0.780204,-0.220117,-0.132792,-0.966393,-0.301259,-0.264083,-0.916244,-0.358229,-0.131655,-0.924305,0.358229,-0.131655,-0.924305,0.301259,-0.264083,-0.916244,0.220117,-0.132792,-0.966393,0.0811418,-0.62024,-0.780204,0.0,-0.711282,-0.702907,-0.0811418,-0.62024,-0.780204,0.296005,0.70231,0.647412,0.346153,0.783452,0.516122,0.213023,0.792649,0.571252,0.571252,0.213023,0.792649,0.647412,0.296005,0.70231,0.516122,0.346153,0.783452,0.783452,0.516122,0.346153,0.792649,0.571252,0.213023,0.70231,0.647412,0.296005,-0.346153,0.783452,0.516122,-0.296005,0.70231,0.647412,-0.213023,0.792649,0.571252,-0.792649,0.571252,0.213023,-0.783452,0.516122,0.346153,-0.70231,0.647412,0.296005,-0.647412,0.296005,0.70231,-0.571252,0.213023,0.792649,-0.516122,0.346153,0.783452,0.346153,0.783452,-0.516122,0.296005,0.70231,-0.647412,0.213023,0.792649,-0.571252,0.792649,0.571252,-0.213023,0.783452,0.516122,-0.346153,0.70231,0.647412,-0.296005,0.647412,0.296005,-0.70231,0.571252,0.213023,-0.792649,0.516122,0.346153,-0.783452,-0.296005,0.70231,-0.647412,-0.346153,0.783452,-0.516122,-0.213023,0.792649,-0.571252,-0.571252,0.213023,-0.792649,-0.647412,0.296005,-0.70231};
return value;
}
private double[] getCoordinate_5_20_point_3()
{
double[] value = {-0.516122,0.346153,-0.783452,-0.783452,0.516122,-0.346153,-0.792649,0.571252,-0.213023,-0.70231,0.647412,-0.296005,0.346153,-0.783452,0.516122,0.296005,-0.70231,0.647412,0.213023,-0.792649,0.571252,0.792649,-0.571252,0.213023,0.783452,-0.516122,0.346153,0.70231,-0.647412,0.296005,0.647412,-0.296005,0.70231,0.571252,-0.213023,0.792649,0.516122,-0.346153,0.783452,-0.296005,-0.70231,0.647412,-0.346153,-0.783452,0.516122,-0.213023,-0.792649,0.571252,-0.571252,-0.213023,0.792649,-0.647412,-0.296005,0.70231,-0.516122,-0.346153,0.783452,-0.783452,-0.516122,0.346153,-0.792649,-0.571252,0.213023,-0.70231,-0.647412,0.296005,0.296005,-0.70231,-0.647412,0.346153,-0.783452,-0.516122,0.213023,-0.792649,-0.571252,0.571252,-0.213023,-0.792649,0.647412,-0.296005,-0.70231,0.516122,-0.346153,-0.783452,0.783452,-0.516122,-0.346153,0.792649,-0.571252,-0.213023,0.70231,-0.647412,-0.296005,-0.346153,-0.783452,-0.516122,-0.296005,-0.70231,-0.647412,-0.213023,-0.792649,-0.571252,-0.792649,-0.571252,-0.213023,-0.783452,-0.516122,-0.346153,-0.70231,-0.647412,-0.296005,-0.647412,-0.296005,-0.70231,-0.571252,-0.213023,-0.792649,-0.516122,-0.346153,-0.783452,0.133071,0.987688,0.0822425,0.133071,0.987688,-0.0822425,0.386187,0.891007,0.238677,0.519258,0.840178,0.156434,0.519258,0.840178,-0.156434,0.386187,0.891007,-0.238677,-0.133071,0.987688,-0.0822425,-0.133071,0.987688,0.0822425,-0.386187,0.891007,-0.238677,-0.519258,0.840178,-0.156434,-0.519258,0.840178,0.156434,-0.386187,0.891007,0.238677,0.133071,-0.987688,-0.0822425,0.133071,-0.987688,0.0822425,0.386187,-0.891007,-0.238677,0.519258,-0.840178,-0.156434,0.519258,-0.840178,0.156434,0.386187,-0.891007,0.238677,-0.133071,-0.987688,0.0822425,-0.133071,-0.987688,-0.0822425,-0.386187,-0.891007,0.238677,-0.519258,-0.840178,0.156434,-0.519258,-0.840178,-0.156434,-0.386187,-0.891007,-0.238677,0.987688,-0.0822425,-0.133071,0.987688,0.0822425,-0.133071,0.891007,-0.238677,-0.386187,0.840178,-0.156434,-0.519258,0.840178,0.156434,-0.519258,0.891007,0.238677,-0.386187,0.987688,0.0822425,0.133071,0.987688,-0.0822425,0.133071,0.891007,0.238677,0.386187,0.840178,0.156434,0.519258,0.840178,-0.156434,0.519258,0.891007,-0.238677,0.386187,-0.987688,-0.0822425,0.133071,-0.987688,0.0822425,0.133071,-0.891007,-0.238677,0.386187,-0.840178,-0.156434,0.519258,-0.840178,0.156434,0.519258,-0.891007,0.238677,0.386187,-0.987688,0.0822425,-0.133071,-0.987688,-0.0822425,-0.133071,-0.891007,0.238677,-0.386187,-0.840178,0.156434,-0.519258,-0.840178,-0.156434,-0.519258,-0.891007,-0.238677,-0.386187,-0.0822425,-0.133071,0.987688,0.0822425,-0.133071,0.987688,-0.238677,-0.386187,0.891007,-0.156434,-0.519258,0.840178,0.156434,-0.519258,0.840178,0.238677,-0.386187,0.891007,0.0822425,0.133071,0.987688,-0.0822425,0.133071,0.987688,0.238677,0.386187,0.891007,0.156434,0.519258,0.840178,-0.156434,0.519258,0.840178,-0.238677,0.386187,0.891007};
return value;
}
private double[] getCoordinate_5_20_point_4()
{
double[] value = {-0.0822425,0.133071,-0.987688,0.0822425,0.133071,-0.987688,-0.238677,0.386187,-0.891007,-0.156434,0.519258,-0.840178,0.156434,0.519258,-0.840178,0.238677,0.386187,-0.891007,0.0822425,-0.133071,-0.987688,-0.0822425,-0.133071,-0.987688,0.238677,-0.386187,-0.891007,0.156434,-0.519258,-0.840178,-0.156434,-0.519258,-0.840178,-0.238677,-0.386187,-0.891007,0.453991,0.46843,0.757935,0.371748,0.601501,0.707107,0.707107,0.371748,0.601501,0.757935,0.453991,0.46843,0.601501,0.707107,0.371748,0.46843,0.757935,0.453991,-0.601501,0.707107,0.371748,-0.46843,0.757935,0.453991,-0.757935,0.453991,0.46843,-0.707107,0.371748,0.601501,-0.453991,0.46843,0.757935,-0.371748,0.601501,0.707107,0.601501,0.707107,-0.371748,0.46843,0.757935,-0.453991,0.757935,0.453991,-0.46843,0.707107,0.371748,-0.601501,0.453991,0.46843,-0.757935,0.371748,0.601501,-0.707107,-0.453991,0.46843,-0.757935,-0.371748,0.601501,-0.707107,-0.707107,0.371748,-0.601501,-0.757935,0.453991,-0.46843,-0.601501,0.707107,-0.371748,-0.46843,0.757935,-0.453991,0.601501,-0.707107,0.371748,0.46843,-0.757935,0.453991,0.757935,-0.453991,0.46843,0.707107,-0.371748,0.601501,0.453991,-0.46843,0.757935,0.371748,-0.601501,0.707107,-0.453991,-0.46843,0.757935,-0.371748,-0.601501,0.707107,-0.707107,-0.371748,0.601501,-0.757935,-0.453991,0.46843,-0.601501,-0.707107,0.371748,-0.46843,-0.757935,0.453991,0.453991,-0.46843,-0.757935,0.371748,-0.601501,-0.707107,0.707107,-0.371748,-0.601501,0.757935,-0.453991,-0.46843,0.601501,-0.707107,-0.371748,0.46843,-0.757935,-0.453991,-0.601501,-0.707107,-0.371748,-0.46843,-0.757935,-0.453991,-0.757935,-0.453991,-0.46843,-0.707107,-0.371748,-0.601501,-0.453991,-0.46843,-0.757935,-0.371748,-0.601501,-0.707107,0.0,0.915043,-0.403355,0.1312,0.864929,-0.484442,0.0,0.990439,-0.137952,0.383614,0.843911,-0.375039,0.0,0.990439,0.137952,0.0,0.915043,0.403355,0.1312,0.864929,0.484442,0.383614,0.843911,0.375039,0.606825,0.758652,-0.237086,0.606825,0.758652,0.237086,0.783843,0.615642,0.0810863,0.783843,0.615642,-0.0810863,-0.1312,0.864929,0.484442,-0.383614,0.843911,0.375039,-0.1312,0.864929,-0.484442,-0.383614,0.843911,-0.375039,-0.606825,0.758652,0.237086,-0.606825,0.758652,-0.237086,-0.783843,0.615642,-0.0810863,-0.783843,0.615642,0.0810863,0.0,-0.915043,0.403355,0.1312,-0.864929,0.484442,0.0,-0.990439,0.137952,0.383614,-0.843911,0.375039,0.0,-0.990439,-0.137952,0.0,-0.915043,-0.403355,0.1312,-0.864929,-0.484442,0.383614,-0.843911,-0.375039,0.606825,-0.758652,0.237086,0.606825,-0.758652,-0.237086,0.783843,-0.615642,-0.0810863,0.783843,-0.615642,0.0810863,-0.1312,-0.864929,-0.484442,-0.383614,-0.843911,-0.375039,-0.1312,-0.864929,0.484442,-0.383614,-0.843911,0.375039,-0.606825,-0.758652,-0.237086,-0.606825,-0.758652,0.237086,-0.783843,-0.615642,0.0810863,-0.783843,-0.615642,-0.0810863};
return value;
}
private double[] getCoordinate_5_20_point_5()
{
double[] value = {0.915043,0.403355,0.0,0.864929,0.484442,-0.1312,0.990439,0.137952,0.0,0.843911,0.375039,-0.383614,0.990439,-0.137952,0.0,0.915043,-0.403355,0.0,0.864929,-0.484442,-0.1312,0.843911,-0.375039,-0.383614,0.758652,0.237086,-0.606825,0.758652,-0.237086,-0.606825,0.615642,-0.0810863,-0.783843,0.615642,0.0810863,-0.783843,0.864929,-0.484442,0.1312,0.843911,-0.375039,0.383614,0.864929,0.484442,0.1312,0.843911,0.375039,0.383614,0.758652,-0.237086,0.606825,0.758652,0.237086,0.606825,0.615642,0.0810863,0.783843,0.615642,-0.0810863,0.783843,-0.915043,0.403355,0.0,-0.864929,0.484442,0.1312,-0.990439,0.137952,0.0,-0.843911,0.375039,0.383614,-0.990439,-0.137952,0.0,-0.915043,-0.403355,0.0,-0.864929,-0.484442,0.1312,-0.843911,-0.375039,0.383614,-0.758652,0.237086,0.606825,-0.758652,-0.237086,0.606825,-0.615642,-0.0810863,0.783843,-0.615642,0.0810863,0.783843,-0.864929,-0.484442,-0.1312,-0.843911,-0.375039,-0.383614,-0.864929,0.484442,-0.1312,-0.843911,0.375039,-0.383614,-0.758652,-0.237086,-0.606825,-0.758652,0.237086,-0.606825,-0.615642,0.0810863,-0.783843,-0.615642,-0.0810863,-0.783843,0.403355,0.0,0.915043,0.484442,-0.1312,0.864929,0.137952,0.0,0.990439,0.375039,-0.383614,0.843911,-0.137952,0.0,0.990439,-0.403355,0.0,0.915043,-0.484442,-0.1312,0.864929,-0.375039,-0.383614,0.843911,0.237086,-0.606825,0.758652,-0.237086,-0.606825,0.758652,-0.0810863,-0.783843,0.615642,0.0810863,-0.783843,0.615642,-0.484442,0.1312,0.864929,-0.375039,0.383614,0.843911,0.484442,0.1312,0.864929,0.375039,0.383614,0.843911,-0.237086,0.606825,0.758652,0.237086,0.606825,0.758652,0.0810863,0.783843,0.615642,-0.0810863,0.783843,0.615642,0.403355,0.0,-0.915043,0.484442,0.1312,-0.864929,0.137952,0.0,-0.990439,0.375039,0.383614,-0.843911,-0.137952,0.0,-0.990439,-0.403355,0.0,-0.915043,-0.484442,0.1312,-0.864929,-0.375039,0.383614,-0.843911,0.237086,0.606825,-0.758652,-0.237086,0.606825,-0.758652,-0.0810863,0.783843,-0.615642,0.0810863,0.783843,-0.615642,-0.484442,-0.1312,-0.864929,-0.375039,-0.383614,-0.843911,0.484442,-0.1312,-0.864929,0.375039,-0.383614,-0.843911,-0.237086,-0.606825,-0.758652,0.237086,-0.606825,-0.758652,0.0810863,-0.783843,-0.615642,-0.0810863,-0.783843,-0.615642,0.262866,0.951057,0.16246,0.525731,0.850651,0.0,0.262866,0.951057,-0.16246,-0.262866,0.951057,-0.16246,-0.525731,0.850651,0.0,-0.262866,0.951057,0.16246,0.262866,-0.951057,-0.16246,0.525731,-0.850651,0.0,0.262866,-0.951057,0.16246,-0.262866,-0.951057,0.16246,-0.525731,-0.850651,0.0,-0.262866,-0.951057,-0.16246,0.951057,-0.16246,-0.262866,0.850651,0.0,-0.525731,0.951057,0.16246,-0.262866,0.951057,0.16246,0.262866,0.850651,0.0,0.525731,0.951057,-0.16246,0.262866,-0.951057,-0.16246,0.262866,-0.850651,0.0,0.525731};
return value;
}
private double[] getCoordinate_5_20_point_6()
{
double[] value = {-0.951057,0.16246,0.262866,-0.951057,0.16246,-0.262866,-0.850651,0.0,-0.525731,-0.951057,-0.16246,-0.262866,-0.16246,-0.262866,0.951057,0.0,-0.525731,0.850651,0.16246,-0.262866,0.951057,0.16246,0.262866,0.951057,0.0,0.525731,0.850651,-0.16246,0.262866,0.951057,-0.16246,0.262866,-0.951057,0.0,0.525731,-0.850651,0.16246,0.262866,-0.951057,0.16246,-0.262866,-0.951057,0.0,-0.525731,-0.850651,-0.16246,-0.262866,-0.951057,0.587785,0.425325,0.688191,0.688191,0.587785,0.425325,0.425325,0.688191,0.587785,-0.688191,0.587785,0.425325,-0.587785,0.425325,0.688191,-0.425325,0.688191,0.587785,0.688191,0.587785,-0.425325,0.587785,0.425325,-0.688191,0.425325,0.688191,-0.587785,-0.587785,0.425325,-0.688191,-0.688191,0.587785,-0.425325,-0.425325,0.688191,-0.587785,0.688191,-0.587785,0.425325,0.587785,-0.425325,0.688191,0.425325,-0.688191,0.587785,-0.587785,-0.425325,0.688191,-0.688191,-0.587785,0.425325,-0.425325,-0.688191,0.587785,0.587785,-0.425325,-0.688191,0.688191,-0.587785,-0.425325,0.425325,-0.688191,-0.587785,-0.688191,-0.587785,-0.425325,-0.587785,-0.425325,-0.688191,-0.425325,-0.688191,-0.587785,0.0,0.961938,-0.273267,0.259892,0.862668,-0.433889,0.0,0.961938,0.273267,0.259892,0.862668,0.433889,0.702046,0.69378,0.160622,0.702046,0.69378,-0.160622,-0.259892,0.862668,0.433889,-0.259892,0.862668,-0.433889,-0.702046,0.69378,-0.160622,-0.702046,0.69378,0.160622,0.0,-0.961938,0.273267,0.259892,-0.862668,0.433889,0.0,-0.961938,-0.273267,0.259892,-0.862668,-0.433889,0.702046,-0.69378,-0.160622,0.702046,-0.69378,0.160622,-0.259892,-0.862668,-0.433889,-0.259892,-0.862668,0.433889,-0.702046,-0.69378,0.160622,-0.702046,-0.69378,-0.160622,0.961938,0.273267,0.0,0.862668,0.433889,-0.259892,0.961938,-0.273267,0.0,0.862668,-0.433889,-0.259892,0.69378,-0.160622,-0.702046,0.69378,0.160622,-0.702046,0.862668,-0.433889,0.259892,0.862668,0.433889,0.259892,0.69378,0.160622,0.702046,0.69378,-0.160622,0.702046,-0.961938,0.273267,0.0,-0.862668,0.433889,0.259892,-0.961938,-0.273267,0.0,-0.862668,-0.433889,0.259892,-0.69378,-0.160622,0.702046,-0.69378,0.160622,0.702046,-0.862668,-0.433889,-0.259892,-0.862668,0.433889,-0.259892,-0.69378,0.160622,-0.702046,-0.69378,-0.160622,-0.702046,0.273267,0.0,0.961938,0.433889,-0.259892,0.862668,-0.273267,0.0,0.961938,-0.433889,-0.259892,0.862668,-0.160622,-0.702046,0.69378,0.160622,-0.702046,0.69378,-0.433889,0.259892,0.862668,0.433889,0.259892,0.862668,0.160622,0.702046,0.69378,-0.160622,0.702046,0.69378,0.273267,0.0,-0.961938,0.433889,0.259892,-0.862668,-0.273267,0.0,-0.961938,-0.433889,0.259892,-0.862668,-0.160622,0.702046,-0.69378,0.160622,0.702046,-0.69378,-0.433889,-0.259892,-0.862668,0.433889,-0.259892,-0.862668,0.160622,-0.702046,-0.69378,-0.160622,-0.702046,-0.69378};
return value;
}
private double[] getCoordinate_5_20_point_7()
{
double[] value = {0.0,1.0,0.0,0.5,0.809017,0.309017,0.5,0.809017,-0.309017,-0.5,0.809017,-0.309017,-0.5,0.809017,0.309017,0.0,-1.0,0.0,0.5,-0.809017,-0.309017,0.5,-0.809017,0.309017,-0.5,-0.809017,0.309017,-0.5,-0.809017,-0.309017,1.0,0.0,0.0,0.809017,-0.309017,-0.5,0.809017,0.309017,-0.5,0.809017,0.309017,0.5,0.809017,-0.309017,0.5,-1.0,0.0,0.0,-0.809017,-0.309017,0.5,-0.809017,0.309017,0.5,-0.809017,0.309017,-0.5,-0.809017,-0.309017,-0.5,0.0,0.0,1.0,-0.309017,-0.5,0.809017,0.309017,-0.5,0.809017,0.309017,0.5,0.809017,-0.309017,0.5,0.809017,0.0,0.0,-1.0,-0.309017,0.5,-0.809017,0.309017,0.5,-0.809017,0.309017,-0.5,-0.809017,-0.309017,-0.5,-0.809017,0.0,0.850651,-0.525731,0.0,0.850651,0.525731,0.850651,0.525731,0.0,-0.850651,0.525731,0.0,0.0,-0.850651,0.525731,0.0,-0.850651,-0.525731,0.850651,-0.525731,0.0,-0.850651,-0.525731,0.0,0.525731,0.0,-0.850651,0.525731,0.0,0.850651,-0.525731,0.0,0.850651,-0.525731,0.0,-0.850651};
return value;
}
/** Large attribute array: IndexedFaceSet coordIndex field, scene-graph level=4, element #20, 5120 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 MFInt32 getIndexedFaceSet_4_20_coordIndex()
{
MFInt32 IndexedFaceSet_4_20_coordIndex = new MFInt32()/*2.finalize*/
.append(new MFInt32(getIndexedFaceSet_4_20_coordIndex_1()))
.append(new MFInt32(getIndexedFaceSet_4_20_coordIndex_2()))
.append(new MFInt32(getIndexedFaceSet_4_20_coordIndex_3()))
.append(new MFInt32(getIndexedFaceSet_4_20_coordIndex_4()))
.append(new MFInt32(getIndexedFaceSet_4_20_coordIndex_5()))
.append(new MFInt32(getIndexedFaceSet_4_20_coordIndex_6()));
return IndexedFaceSet_4_20_coordIndex;
}
/** Large attribute array: Coordinate point field, scene-graph level=5, element #20, 1926 total numbers made up of 642 3-tuple values.
* Reassemble split array as single method to improve readability and runnability.
* Provide large array values via separate methods, hoping to avoid 'code too large' Java compilation errors.
* Individual Java methods (including aggregated initializations) are limited to 64KB.
* @see https://stackoverflow.com/questions/2407912/code-too-large-compilation-error-in-java
* @see https://stackoverflow.com/questions/11437905/java-too-many-constants-jvm-error
*/
private MFVec3f getCoordinate_5_20_point()
{
MFVec3f Coordinate_5_20_point = new MFVec3f()/*2.finalize*/
.append(new MFVec3f(getCoordinate_5_20_point_1()))
.append(new MFVec3f(getCoordinate_5_20_point_2()))
.append(new MFVec3f(getCoordinate_5_20_point_3()))
.append(new MFVec3f(getCoordinate_5_20_point_4()))
.append(new MFVec3f(getCoordinate_5_20_point_5()))
.append(new MFVec3f(getCoordinate_5_20_point_6()))
.append(new MFVec3f(getCoordinate_5_20_point_7()));
return Coordinate_5_20_point;
}
/** The initialized model object, created within initialize() method. */
private X3D x3dModel;
/**
* Provide a
* shallow copy
* of the X3D model.
* @see X3D
* @return IcosahedronSubdivisionLevel3 model
*/
public X3D getX3dModel()
{
return x3dModel;
}
/**
* Default main() method provided for test purposes, uses CommandLine to set global ConfigurationProperties for this object.
* @param args array of input parameters, provided as arguments
* @see X3D.handleArguments(args)
* @see X3D.validationReport()
* @see CommandLine
* @see CommandLine.USAGE
* @see ConfigurationProperties
*/
public static void main(String args[])
{
X3D thisExampleX3dModel = new IcosahedronSubdivisionLevel3().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(X3D.FILE_EXTENSION_X3D) ||
arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_CLASSICVRML) ||
arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_X3DB) ||
arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_VRML97) ||
arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_EXI) ||
arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_GZIP) ||
arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_ZIP) ||
arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_HTML) ||
arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_XHTML))
{
argumentsLoadNewModel = true;
fileName = arg;
}
}
}
if (argumentsLoadNewModel)
System.out.println("WARNING: \"X3dForAdvancedModeling.GeometricShapes.IcosahedronSubdivisionLevel3\" model invocation is attempting to load file \"" + fileName + "\" instead of simply validating itself... file loading ignored.");
else if (hasArguments) // if no arguments provided, this method produces usage warning
thisExampleX3dModel.handleArguments(args);
if (validate)
{
System.out.print("Java program \"X3dForAdvancedModeling.GeometricShapes.IcosahedronSubdivisionLevel3\" self-validation test results: ");
String validationResults = thisExampleX3dModel.validationReport();
if (validationResults.startsWith("\n"))
System.out.println();
System.out.println(validationResults.trim());
}
}
}