<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">package X3dForAdvancedModeling.GeometricShapes;

import org.web3d.x3d.jsail.Core.*;
import org.web3d.x3d.jsail.EnvironmentalEffects.*;
import org.web3d.x3d.jsail.fields.*;
import org.web3d.x3d.jsail.Geometry3D.*;
import org.web3d.x3d.jsail.Grouping.*;
import org.web3d.x3d.jsail.Navigation.*;
import org.web3d.x3d.jsail.Rendering.*;
import org.web3d.x3d.jsail.Shape.*;
import org.web3d.x3d.jsail.Text.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * &lt;p&gt; RoundedRectangleComparison shows three RoundedRectangle shapes using polygons/lines/points rendering. Note that reuse of RoundedRectangle geometry requires only Interchange profile, but Text requires Immersive profile. &lt;/p&gt;
 &lt;p&gt; Related links: Catalog page &lt;a href="../../../GeometricShapes/RoundedRectangleComparisonIndex.html" target="_blank"&gt;RoundedRectangleComparison&lt;/a&gt;,  source &lt;a href="../../../GeometricShapes/RoundedRectangleComparison.java"&gt;RoundedRectangleComparison.java&lt;/a&gt;, &lt;a href="https://www.web3d.org/x3d/content/examples/X3dResources.html" target="_blank"&gt;X3D Resources&lt;/a&gt;, &lt;a href="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html" target="_blank"&gt;X3D Scene Authoring Hints&lt;/a&gt;, and &lt;a href="https://www.web3d.org/x3d/content/X3dTooltips.html" target="_blank"&gt;X3D Tooltips&lt;/a&gt;. &lt;/p&gt;
	&lt;table style="color:black; border:0px solid; border-spacing:10px 0px;"&gt;
        &lt;caption&gt;Scene Meta Information&lt;/caption&gt;
		&lt;tr style="background-color:silver; border-color:silver;"&gt;
			&lt;td style="text-align:center; padding:10px 0px;"&gt;&lt;i&gt;meta tags&lt;/i&gt;&lt;/td&gt;
			&lt;td style="text-align:left;   padding:10px 0px;"&gt;&amp;nbsp; Document Metadata &lt;/td&gt;
		&lt;/tr&gt;

		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; title &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; &lt;a href="../../../GeometricShapes/RoundedRectangleComparison.x3d"&gt;RoundedRectangleComparison.x3d&lt;/a&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; description &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; RoundedRectangleComparison shows three RoundedRectangle shapes using polygons/lines/points rendering. Note that reuse of RoundedRectangle geometry requires only Interchange profile, but Text requires Immersive profile. &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; created &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; 8 November 2014 &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; modified &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; 14 July 2025 &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; Image &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; &lt;a href="../../../GeometricShapes/RoundedRectangleComparison.png"&gt;RoundedRectangleComparison.png&lt;/a&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; reference &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; &lt;a href="../../../GeometricShapes/RoundedRectanglePrimitives.x3d"&gt;RoundedRectanglePrimitives.x3d&lt;/a&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; reference &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; &lt;a href="../../../GeometricShapes/RoundedRectangle2D.x3d"&gt;RoundedRectangle2D.x3d&lt;/a&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; reference &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; RoundedRectangleDesign.vsd &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; reference &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; RoundedRectangleDesign.png &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; reference &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; &lt;a href="../../../GeometricShapes/RoundedRectangleDesign.svg"&gt;RoundedRectangleDesign.svg&lt;/a&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; creator &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; Don Brutzman &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; reference &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; &lt;a href="https://en.wikipedia.org/wiki/Squircle" target="_blank"&gt;https://en.wikipedia.org/wiki/Squircle&lt;/a&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; reference &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; &lt;a href="https://en.wiktionary.org/wiki/roundrect" target="_blank"&gt;https://en.wiktionary.org/wiki/roundrect&lt;/a&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; info &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; Development of this scene added new features to X3D-Edit &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; identifier &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; &lt;a href="https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/RoundedRectangleComparison.x3d" target="_blank"&gt;https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/RoundedRectangleComparison.x3d&lt;/a&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; generator &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; X3D-Edit 3.3, &lt;a href="https://savage.nps.edu/X3D-Edit" target="_blank"&gt;https://savage.nps.edu/X3D-Edit&lt;/a&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right; vertical-align: text-top;"&gt; &lt;i&gt; license &lt;/i&gt; &lt;/td&gt;
			&lt;td&gt; &lt;a href="../../../GeometricShapes/../license.html"&gt;../license.html&lt;/a&gt; &lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr style="background-color:silver; border-color:silver;"&gt;
			&lt;td style="text-align:center;" colspan="2"&gt;  &amp;nbsp; &lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;

	&lt;p&gt;
		This program uses the
		&lt;a href="https://www.web3d.org/specifications/java/X3DJSAIL.html" target="_blank"&gt;X3D Java Scene Access Interface Library (X3DJSAIL)&lt;/a&gt;.
		It has been produced using the 
		&lt;a href="https://www.web3d.org/x3d/stylesheets/X3dToJava.xslt" target="_blank"&gt;X3dToJava.xslt&lt;/a&gt;
		stylesheet
	       (&lt;a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/X3dToJava.xslt" target="_blank"&gt;version control&lt;/a&gt;)
                which is used to create Java source code from an original &lt;code&gt;.x3d&lt;/code&gt; model.
	&lt;/p&gt;

	* @author Don Brutzman
 */

public class RoundedRectangleComparison
{
	/** Default constructor to create this object. */
	public RoundedRectangleComparison ()
	{
	  initialize();
	}

	/** Create and initialize the X3D model for this object. */
	public final void initialize()
	{
            try { // catch-all
  x3dModel = new X3D().setProfile(X3D.PROFILE_IMMERSIVE).setVersion(X3D.VERSION_3_3)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("RoundedRectangleComparison.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("RoundedRectangleComparison shows three RoundedRectangle shapes using polygons/lines/points rendering. Note that reuse of RoundedRectangle geometry requires only Interchange profile, but Text requires Immersive profile."))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("8 November 2014"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("14 July 2025"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("RoundedRectangleComparison.png"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("RoundedRectanglePrimitives.x3d"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("RoundedRectangle2D.x3d"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("RoundedRectangleDesign.vsd"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("RoundedRectangleDesign.png"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("RoundedRectangleDesign.svg"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Don Brutzman"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://en.wikipedia.org/wiki/Squircle"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://en.wiktionary.org/wiki/roundrect"))
    .addMeta(new meta().setName(meta.NAME_INFO       ).setContent("Development of this scene added new features to X3D-Edit"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/RoundedRectangleComparison.x3d"))
    .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("RoundedRectangleComparison.x3d"))
    .addChild(new Background().setSkyColor(new MFColor(new double[] {0.1,0.1,0.1})))
    .addChild(new Viewpoint().setDescription("RoundedRectangle Comparison").setPosition(0.0,0.0,7.0))
    .addChild(new Viewpoint().setDescription("Polygons RoundedRectangle").setPosition(-2.0,0.0,3.0))
    .addChild(new Viewpoint().setDescription("Lines RoundedRectangle").setPosition(0.0,0.0,3.0))
    .addChild(new Viewpoint().setDescription("Points RoundedRectangle").setPosition(2.0,0.0,3.0))
    .addChild(new Transform().setTranslation(-2.0,0.0,0.0)
      .addChild(new Shape("polygonsRoundedRectangle")
        .addComments(" RoundedRectangle with 44 perimeter points + 4 internal points on each level ")
        .setGeometry(new IndexedFaceSet().setCreaseAngle(6.28).setSolid(false).setCoordIndex(getIndexedFaceSet_5_25_coordIndex())
          .setCoord(new Coordinate("PointArray2x1x0_2").setPoint(getPointArray2x1x0_2_6_25_point())))
        .setAppearance(new Appearance()
          .addComments(" Polygon color is primarily defined by diffuseColor ")
          .setMaterial(new Material("PeriwinkleDiffuse").setDiffuseColor(0.8,0.8,1.0))))
      .addChild(new Transform().setTranslation(0.0,-1.5,0.0)
        .addChild(new Shape()
          .setGeometry(new Text().setString(new String[] {"Polygons"})
            .setFontStyle(new FontStyle("SmallCenteredFont").setFamily(new String[] {"SANS"}).setJustify(FontStyle.JUSTIFY_MIDDLE_MIDDLE).setSize(0.2).setCssStyle("BOLD")))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setUSE("PeriwinkleDiffuse"))))))
    .addChild(new Shape("linesRoundedRectangle")
      .setGeometry(new IndexedLineSet().setCoordIndex(getIndexedLineSet_4_37_coordIndex())
        .setCoord(new Coordinate().setUSE("PointArray2x1x0_2")))
      .setAppearance(new Appearance()
        .addComments(" Line color is only! defined by emissiveColor ")
        .setMaterial(new Material("PeriwinkleEmissive").setEmissiveColor(0.8,0.8,1.0))))
    .addChild(new Transform().setTranslation(0.0,-1.5,0.0)
      .addChild(new Shape()
        .setGeometry(new Text().setString(new String[] {"Lines"})
          .setFontStyle(new FontStyle().setUSE("SmallCenteredFont")))
        .setAppearance(new Appearance()
          .setMaterial(new Material().setUSE("PeriwinkleDiffuse")))))
    .addChild(new Transform().setTranslation(2.0,0.0,0.0)
      .addChild(new Shape("pointsRoundedRectangle")
        .setGeometry(new PointSet()
          .setCoord(new Coordinate().setUSE("PointArray2x1x0_2")))
        .setAppearance(new Appearance()
          .addComments(" Point color is only! defined by emissiveColor ")
          .setMaterial(new Material().setUSE("PeriwinkleEmissive"))))
      .addChild(new Transform().setTranslation(0.0,-1.5,0.0)
        .addChild(new Shape()
          .setGeometry(new Text().setString(new String[] {"Points"})
            .setFontStyle(new FontStyle().setUSE("SmallCenteredFont")))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setUSE("PeriwinkleDiffuse")))))));
            }
            catch (Exception ex)
            {       
                System.err.println ("*** Further hints on X3DJSAIL errors and exceptions at");
                System.err.println ("*** https://www.web3d.org/specifications/java/X3DJSAIL.html");
                throw (ex);
            }
	}
	// end of initialize() method

		/** Define subarrays using type int[] */
		private int[] getIndexedFaceSet_5_25_coordIndex_1()
		{
			int[] value = {0,1,2,3,0,-1,0,14,15,1,0,-1,1,25,26,2,1,-1,2,36,37,3,2,-1,3,47,4,0,3,-1,0,4,5,6,7,8,9,10,11,12,13,14,0,-1,1,15,16,17,18,19,20,21,22,23,24,25,1,-1,2,26,27,28,29,30,31,32,33,34,35,36,2,-1,3,37,38,39,40,41,42,43,44,45,46,47,3,-1,48,49,50,51,48,-1,48,62,63,49,48,-1,49,73,74,50,49,-1,50,84,85,51,50,-1,51,95,52,48,51,-1,48,52,53,54,55,56,57,58,59,60,61,62,48,-1,49,63,64,65,66,67,68,69,70,71,72,73,49,-1,50,74,75,76,77,78,79,80,81,82,83,84,50,-1,51,85,86,87,88,89,90,91,92,93,94,95,51,-1,5,4,52,53,-1,6,5,53,54,-1,7,6,54,55,-1,8,7,55,56,-1,9,8,56,57,-1,10,9,57,58,-1,11,10,58,59,-1,12,11,59,60,-1,13,12,60,61,-1,14,13,61,62,-1,15,14,62,63,-1,16,15,63,64,-1,17,16,64,65,-1,18,17,65,66,-1,19,18,66,67,-1,20,19,67,68,-1,21,20,68,69,-1,22,21,69,70,-1,23,22,70,71,-1,24,23,71,72,-1,25,24,72,73,-1,26,25,73,74,-1,27,26,74,75,-1,28,27,75,76,-1,29,28,76,77,-1,30,29,77,78,-1,31,30,78,79,-1,32,31,79,80,-1,33,32,80,81,-1,34,33,81,82,-1,35,34,82,83,-1,36,35,83,84,-1,37,36,84,85,-1,38,37,85,86,-1,39,38,86,87,-1,40,39,87,88,-1,41,40,88,89,-1,42,41,89,90,-1,43,42,90,91,-1,44,43,91,92,-1,45,44,92,93,-1,46,45,93,94,-1,47,46,94,95,-1,47,95,52,4,-1};
			return value;
		}



		/** Define subarrays using type int[] */
		private int[] getIndexedLineSet_4_37_coordIndex_1()
		{
			int[] value = {0,1,2,3,0,-1,0,14,15,1,0,-1,1,25,26,2,1,-1,2,36,37,3,2,-1,3,47,4,0,3,-1,0,4,5,6,7,8,9,10,11,12,13,14,0,-1,1,15,16,17,18,19,20,21,22,23,24,25,1,-1,2,26,27,28,29,30,31,32,33,34,35,36,2,-1,3,37,38,39,40,41,42,43,44,45,46,47,3,-1,48,49,50,51,48,-1,48,62,63,49,48,-1,49,73,74,50,49,-1,50,84,85,51,50,-1,51,95,52,48,51,-1,48,52,53,54,55,56,57,58,59,60,61,62,48,-1,49,63,64,65,66,67,68,69,70,71,72,73,49,-1,50,74,75,76,77,78,79,80,81,82,83,84,50,-1,51,85,86,87,88,89,90,91,92,93,94,95,51,-1,5,4,52,53,-1,6,5,53,54,-1,7,6,54,55,-1,8,7,55,56,-1,9,8,56,57,-1,10,9,57,58,-1,11,10,58,59,-1,12,11,59,60,-1,13,12,60,61,-1,14,13,61,62,-1,15,14,62,63,-1,16,15,63,64,-1,17,16,64,65,-1,18,17,65,66,-1,19,18,66,67,-1,20,19,67,68,-1,21,20,68,69,-1,22,21,69,70,-1,23,22,70,71,-1,24,23,71,72,-1,25,24,72,73,-1,26,25,73,74,-1,27,26,74,75,-1,28,27,75,76,-1,29,28,76,77,-1,30,29,77,78,-1,31,30,78,79,-1,32,31,79,80,-1,33,32,80,81,-1,34,33,81,82,-1,35,34,82,83,-1,36,35,83,84,-1,37,36,84,85,-1,38,37,85,86,-1,39,38,86,87,-1,40,39,87,88,-1,41,40,88,89,-1,42,41,89,90,-1,43,42,90,91,-1,44,43,91,92,-1,45,44,92,93,-1,46,45,93,94,-1,47,46,94,95,-1,47,95,52,4,-1};
			return value;
		}

		/** Large attribute array: IndexedFaceSet coordIndex field, scene-graph level=5, element #25, 392 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_5_25_coordIndex()
		{
			MFInt32 IndexedFaceSet_5_25_coordIndex = new MFInt32()/*2.finalize*/
				.append(new MFInt32(getIndexedFaceSet_5_25_coordIndex_1()));
			return IndexedFaceSet_5_25_coordIndex;
		}
		/** Large attribute array: Coordinate DEF='PointArray2x1x0_2' point field, scene-graph level=6, element #25, 288 total numbers made up of 96 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 getPointArray2x1x0_2_6_25_point()
		{
			MFVec3f PointArray2x1x0_2_6_25_point = new MFVec3f(new double[] {0.450,0.900,0.100,0.450,-0.900,0.100,-0.450,-0.900,0.100,-0.450,0.900,0.100,0.450,1.000,0.100,0.466,0.999,0.100,0.481,0.995,0.100,0.495,0.989,0.100,0.509,0.981,0.100,0.521,0.971,0.100,0.531,0.959,0.100,0.539,0.945,0.100,0.545,0.931,0.100,0.549,0.916,0.100,0.550,0.900,0.100,0.550,-0.900,0.100,0.549,-0.916,0.100,0.545,-0.931,0.100,0.539,-0.945,0.100,0.531,-0.959,0.100,0.521,-0.971,0.100,0.509,-0.981,0.100,0.495,-0.989,0.100,0.481,-0.995,0.100,0.466,-0.999,0.100,0.450,-1.000,0.100,-0.450,-1.000,0.100,-0.466,-0.999,0.100,-0.481,-0.995,0.100,-0.495,-0.989,0.100,-0.509,-0.981,0.100,-0.521,-0.971,0.100,-0.531,-0.959,0.100,-0.539,-0.945,0.100,-0.545,-0.931,0.100,-0.549,-0.916,0.100,-0.550,-0.900,0.100,-0.550,0.900,0.100,-0.549,0.916,0.100,-0.545,0.931,0.100,-0.539,0.945,0.100,-0.531,0.959,0.100,-0.521,0.971,0.100,-0.509,0.981,0.100,-0.495,0.989,0.100,-0.481,0.995,0.100,-0.466,0.999,0.100,-0.450,1.000,0.100,0.450,0.900,-0.100,0.450,-0.900,-0.100,-0.450,-0.900,-0.100,-0.450,0.900,-0.100,0.450,1.000,-0.100,0.466,0.999,-0.100,0.481,0.995,-0.100,0.495,0.989,-0.100,0.509,0.981,-0.100,0.521,0.971,-0.100,0.531,0.959,-0.100,0.539,0.945,-0.100,0.545,0.931,-0.100,0.549,0.916,-0.100,0.550,0.900,-0.100,0.550,-0.900,-0.100,0.549,-0.916,-0.100,0.545,-0.931,-0.100,0.539,-0.945,-0.100,0.531,-0.959,-0.100,0.521,-0.971,-0.100,0.509,-0.981,-0.100,0.495,-0.989,-0.100,0.481,-0.995,-0.100,0.466,-0.999,-0.100,0.450,-1.000,-0.100,-0.450,-1.000,-0.100,-0.466,-0.999,-0.100,-0.481,-0.995,-0.100,-0.495,-0.989,-0.100,-0.509,-0.981,-0.100,-0.521,-0.971,-0.100,-0.531,-0.959,-0.100,-0.539,-0.945,-0.100,-0.545,-0.931,-0.100,-0.549,-0.916,-0.100,-0.550,-0.900,-0.100,-0.550,0.900,-0.100,-0.549,0.916,-0.100,-0.545,0.931,-0.100,-0.539,0.945,-0.100,-0.531,0.959,-0.100,-0.521,0.971,-0.100,-0.509,0.981,-0.100,-0.495,0.989,-0.100,-0.481,0.995,-0.100,-0.466,0.999,-0.100,-0.450,1.000,-0.100});
			return PointArray2x1x0_2_6_25_point;
		}
		/** Large attribute array: IndexedLineSet coordIndex field, scene-graph level=4, element #37, 392 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 getIndexedLineSet_4_37_coordIndex()
		{
			MFInt32 IndexedLineSet_4_37_coordIndex = new MFInt32()/*2.finalize*/
				.append(new MFInt32(getIndexedLineSet_4_37_coordIndex_1()));
			return IndexedLineSet_4_37_coordIndex;
		}

	/** The initialized model object, created within initialize() method. */
	private X3D x3dModel;

	/** 
	 * Provide a 
	 * &lt;a href="https://dzone.com/articles/java-copy-shallow-vs-deep-in-which-you-will-swim" target="_blank"&gt;shallow copy&lt;/a&gt;
	 * of the X3D model.
	 * @see &lt;a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html"&gt;X3D&lt;/a&gt;
	 * @return RoundedRectangleComparison 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 &lt;a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html#handleArguments-java.lang.String:A-"&gt;X3D.handleArguments(args)&lt;/a&gt;
     * @see &lt;a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html#validationReport--"&gt;X3D.validationReport()&lt;/a&gt;
     * @see &lt;a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/CommandLine.html"&gt;CommandLine&lt;/a&gt;
     * @see &lt;a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/CommandLine.html#USAGE"&gt;CommandLine.USAGE&lt;/a&gt;
     * @see &lt;a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/ConfigurationProperties.html"&gt;ConfigurationProperties&lt;/a&gt;
     */
    public static void main(String args[])
    {
        System.out.println("Build this X3D model, showing validation diagnostics...");
        X3D thisExampleX3dModel = new RoundedRectangleComparison().getX3dModel();
//      System.out.println("X3D model construction complete.");
	
        // next handle command line arguments
        boolean hasArguments = (args != null) &amp;&amp; (args.length &gt; 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.RoundedRectangleComparison\" 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.println("--- TODO fix duplicated outputs ---"); // omit when duplicated outputs problem is solved/refactored
		String validationResults = thisExampleX3dModel.validationReport();
            //  System.out.println("-----------------------------------"); // omit when duplicated outputs problem is solved/refactored
                System.out.print("X3dForAdvancedModeling.GeometricShapes.RoundedRectangleComparison self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

                // experimental: test X3DJSAIL output files
                // GeometricShapes/RoundedRectangleComparison_JavaExport.* file validation is checked when building X3D Example Archives
                String filenameX3D  = "GeometricShapes/RoundedRectangleComparison_JavaExport.x3d"; 
                String filenameX3DV = "GeometricShapes/RoundedRectangleComparison_JavaExport.x3dv"; 
                String filenameJSON = "GeometricShapes/RoundedRectangleComparison_JavaExport.json";
                thisExampleX3dModel.toFileX3D        (filenameX3D);
                thisExampleX3dModel.toFileClassicVRML(filenameX3DV);
// TODO         thisExampleX3dModel.toFileJSON       (filenameJSON);
        }
    }
}
</pre></body></html>