package X3dForAdvancedModeling.GltfSampleModels;

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.*;
import org.web3d.x3d.jsail.Texturing.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> This model tests the various alpha modes available in glTF 2.0 rendering. There are three settings for alphaMode: "OPAQUE" (the default), "BLEND", and "MASK". Of these, "MASK" takes an additional alphaCutoff value that modifies it. </p>
 <p> Related links: Catalog page <a href="../../../GltfSampleModels/AlphaBlendModeTestIndex.html" target="_blank">AlphaBlendModeTest</a>,  source <a href="../../../GltfSampleModels/AlphaBlendModeTest.java">AlphaBlendModeTest.java</a>, <a href="https://www.web3d.org/x3d/content/examples/X3dResources.html" target="_blank">X3D Resources</a>, <a href="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html" target="_blank">X3D Scene Authoring Hints</a>, and <a href="https://www.web3d.org/x3d/content/X3dTooltips.html" target="_blank">X3D Tooltips</a>. </p>
	<table style="color:black; border:0px solid; border-spacing:10px 0px;">
        <caption>Scene Meta Information</caption>
		<tr style="background-color:silver; border-color:silver;">
			<td style="text-align:center; padding:10px 0px;"><i>meta tags</i></td>
			<td style="text-align:left;   padding:10px 0px;">&nbsp; Document Metadata </td>
		</tr>

		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> title </i> </td>
			<td> <a href="../../../GltfSampleModels/AlphaBlendModeTest.x3d">AlphaBlendModeTest.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> This model tests the various alpha modes available in glTF 2.0 rendering. There are three settings for alphaMode: "OPAQUE" (the default), "BLEND", and "MASK". Of these, "MASK" takes an additional alphaCutoff value that modifies it. </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 17 July 2021 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 28 March 2026 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Ed Mackey </td>
		</tr>
		<tr style="color:burntorange">
			<td style="text-align:right; vertical-align: text-top;"> <i> warning </i> </td>
			<td> removed gravityTransform=false since that construct is not valid X3D4. several converters not yet supporting Tangent node properly, perform QA checks for details. </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> source </i> </td>
			<td> AlphaBlendModeTest.gltf </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/AlphaBlendModeTest" target="_blank">https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/AlphaBlendModeTest</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://khronos/gltf" target="_blank">https://khronos/gltf</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://en.wikipedia.org/glTF" target="_blank">https://en.wikipedia.org/glTF</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://www.web3d.org/x3d4" target="_blank">https://www.web3d.org/x3d4</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> specificationSection </i> </td>
			<td> X3D 4.0 Architecture, ISO/IEC 19775-1:2023, clause 12 Shape component, 12.4.2 Appearance </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> specificationUrl </i> </td>
			<td> <a href="https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/shape.html#Appearance" target="_blank">https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/shape.html#Appearance</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> specificationSection </i> </td>
			<td> X3D 4.0 Architecture, ISO/IEC 19775-1:2023, clause 12 Shape component, Table 12.4 - Shape component support levels </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> specificationUrl </i> </td>
			<td> <a href="https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/shape.html#t-supportLevels" target="_blank">https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/shape.html#t-supportLevels</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://castle-engine.io/creating_data_model_formats.php#section_gltf" target="_blank">https://castle-engine.io/creating_data_model_formats.php#section_gltf</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> view3dscene, <a href="https://castle-engine.io/view3dscene.php" target="_blank">https://castle-engine.io/view3dscene.php</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> X3D-Edit 4.0, <a href="https://www.web3d.org/x3d/tools/X3D-Edit" target="_blank">https://www.web3d.org/x3d/tools/X3D-Edit</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> identifier </i> </td>
			<td> <a href="https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/AlphaBlendModeTest.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/AlphaBlendModeTest.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> license </i> </td>
			<td> <a href="https://www.web3d.org/x3d/content/examples/license.html" target="_blank">https://www.web3d.org/x3d/content/examples/license.html</a> </td>
		</tr>
		<tr style="background-color:silver; border-color:silver;">
			<td style="text-align:center;" colspan="2">  &nbsp; </td>
		</tr>
	</table>

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

	* @author Ed Mackey
 */

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

	/** Create and initialize the X3D model for this object. */
	public final void initialize()
	{
            try { // catch-all
  x3dModel = new X3D().setProfile(X3D.PROFILE_INTERCHANGE).setVersion(X3D.VERSION_4_1)
  .setHead(new head()
    .addComponent(new component().setName("Lighting").setLevel(3))
    .addComponent(new component().setName("Shape").setLevel(2))
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("AlphaBlendModeTest.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("This model tests the various alpha modes available in glTF 2.0 rendering. There are three settings for alphaMode: \"OPAQUE\" (the default), \"BLEND\", and \"MASK\". Of these, \"MASK\" takes an additional alphaCutoff value that modifies it."))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("17 July 2021"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("28 March 2026"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Ed Mackey"))
    .addMeta(new meta().setName(meta.NAME_WARNING    ).setContent("removed gravityTransform=false since that construct is not valid X3D4. several converters not yet supporting Tangent node properly, perform QA checks for details."))
    .addMeta(new meta().setName(meta.NAME_SOURCE     ).setContent("AlphaBlendModeTest.gltf"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/AlphaBlendModeTest"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://khronos/gltf"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://en.wikipedia.org/glTF"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://www.web3d.org/x3d4"))
    .addMeta(new meta().setName(meta.NAME_SPECIFICATIONSECTION).setContent("X3D 4.0 Architecture, ISO/IEC 19775-1:2023, clause 12 Shape component, 12.4.2 Appearance"))
    .addMeta(new meta().setName(meta.NAME_SPECIFICATIONURL).setContent("https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/shape.html#Appearance"))
    .addMeta(new meta().setName(meta.NAME_SPECIFICATIONSECTION).setContent("X3D 4.0 Architecture, ISO/IEC 19775-1:2023, clause 12 Shape component, Table 12.4 - Shape component support levels"))
    .addMeta(new meta().setName(meta.NAME_SPECIFICATIONURL).setContent("https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/shape.html#t-supportLevels"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://castle-engine.io/creating_data_model_formats.php#section_gltf"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("view3dscene, https://castle-engine.io/view3dscene.php"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/AlphaBlendModeTest.x3d"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("https://www.web3d.org/x3d/content/examples/license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setInfo(new String[] {"glTF Sample Model"}).setTitle("AlphaBlendModeTest.x3d"))
    .addChild(new Transform("GreenArrows").setTranslation(0.5,1.0682,0.005)
      .addChild(new Group("GreenArrowsMesh")
        .addChild(new Shape().setBboxCenter(1.545,0.0009,0.0).setBboxSize(3.09,0.965,0.0)
          .setAppearance(new Appearance("MatOpaque").setAlphaMode("OPAQUE")
            .setTextureTransform(new TextureTransform("FlipVertical").setScale(1.0,-1.0).setTranslation(0.0,-1.0))
            .setMaterial(new PhysicalMaterial().setBaseTextureMapping("TEXCOORD_0").setMetallic(0).setRoughness(0.8)
              .setBaseTexture(new ImageTexture("AlphaBlendLabels").setUrl(new String[] {"AlphaBlendLabels.png","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/AlphaBlendLabels.png"}))))
          .setGeometry(new IndexedTriangleSet().setCcw(true).setColorPerVertex(true).setIndex(new int[] {0,1,2,3,4,5,6,7,8}).setNormalPerVertex(true).setSolid(false)
            .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {1.5,0.0,0.0,1.59,-0.095,0.0,1.59,0.095,0.0,0.0,0.3884,0.0,0.09,0.2934,0.0,0.09,0.4834,0.0,3.0,-0.3866,0.0,3.09,-0.4816,0.0,3.09,-0.2916,0.0})))
            .setNormal(new Normal().setVector(new MFVec3f(new double[] {0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0})))
            .setTangent(new Tangent("TodoFigureOutMissingValue").setVector(new MFVec4f(new double[] {0.9998,-0.0175,0.0,0.9998,-0.0175,0.0,0.9998,-0.0175,0.0,0.9998,-0.0175,0.0,0.9998,-0.0175,0.0,0.9998,-0.0175,0.0,0.9998,-0.0175,0.0,0.9998,-0.0175,0.0,0.9998,-0.0175,0.0})))
            .setTexCoord(new MultiTextureCoordinate()
              .addTexCoord(new TextureCoordinate().setMapping("TEXCOORD_0").setPoint(new MFVec2f(new double[] {0.8134,0.6123,0.8169,0.6158,0.8169,0.6087,0.8134,0.6123,0.8169,0.6158,0.8169,0.6087,0.8134,0.6123,0.8169,0.6158,0.8169,0.6087}))))))))
    .addChild(new Transform("DecalBlend").setRotation(-1.0,0.0,0.0,0.9828).setTranslation(0.0,0.0,0.409)
      .addChild(new Group("DecalBlendMesh")
        .addChild(new Shape().setBboxCenter(-1.1,0.0,0.01).setBboxSize(0.216,0.228,0.0)
          .setAppearance(new Appearance("MatBlend").setAlphaMode("BLEND")
            .setTextureTransform(new TextureTransform().setUSE("FlipVertical"))
            .setMaterial(new PhysicalMaterial().setBaseTextureMapping("TEXCOORD_0").setMetallic(0).setRoughness(0.8)
              .setBaseTexture(new ImageTexture().setUSE("AlphaBlendLabels"))))
          .setGeometry(new IndexedTriangleSet().setCcw(true).setColorPerVertex(true).setIndex(new int[] {0,1,2,0,3,1}).setNormalPerVertex(true).setSolid(false)
            .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {-0.992,0.114,0.01,-1.208,-0.114,0.01,-0.992,-0.114,0.01,-1.208,0.114,0.01})))
            .setNormal(new Normal().setVector(new MFVec3f(new double[] {0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0})))
            .setTangent(new Tangent().setVector(new MFVec4f(new double[] {1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0})))
            .setTexCoord(new MultiTextureCoordinate()
              .addTexCoord(new TextureCoordinate().setMapping("TEXCOORD_0").setPoint(new MFVec2f(new double[] {0.9825,0.6625,0.8925,0.7575,0.9825,0.7575,0.8925,0.6625}))))))))
    .addChild(new Transform("DecalOpaque").setRotation(-1.0,0.0,0.0,0.9828).setTranslation(0.0,0.0,0.409)
      .addChild(new Group("DecalOpaqueMesh")
        .addChild(new Shape().setBboxCenter(0.0,0.0,0.005).setBboxSize(6.58,0.312,0.01)
          .setAppearance(new Appearance().setUSE("MatOpaque"))
          .setGeometry(new IndexedTriangleSet().setCcw(true).setColorPerVertex(true).setIndex(new int[] {0,1,2,0,3,1,4,5,6,4,7,5,8,9,10,8,11,9,12,13,14,12,15,13,16,17,18,16,19,17,20,21,22,20,23,21,24,25,26,24,27,25,28,29,30,28,31,29}).setNormalPerVertex(true).setSolid(false)
            .setCoord(new Coordinate().setPoint(getCoordinate_7_52_point()))
            .setNormal(new Normal().setVector(new MFVec3f(new double[] {0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0})))
            .setTangent(new Tangent().setVector(new MFVec4f(new double[] {1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0})))
            .setTexCoord(new MultiTextureCoordinate()
              .addTexCoord(new TextureCoordinate().setMapping("TEXCOORD_0").setPoint(getTextureCoordinate_8_55_point())))))))
    .addChild(new Transform("TestCutoff75").setTranslation(3.0,0.0,0.0)
      .addChild(new Group("TestCutoff75Mesh")
        .addChild(new Shape().setBboxCenter(0.0,1.035,0.0).setBboxSize(1.1,1.87,0.0)
          .setAppearance(new Appearance("MatCutoff75").setAlphaCutoff(0.75).setAlphaMode("MASK")
            .setTextureTransform(new TextureTransform().setUSE("FlipVertical"))
            .setMaterial(new PhysicalMaterial().setBaseTextureMapping("TEXCOORD_0").setMetallic(0).setRoughness(0.8)
              .setBaseTexture(new ImageTexture().setUSE("AlphaBlendLabels"))))
          .setGeometry(new IndexedTriangleSet().setCcw(true).setColorPerVertex(true).setIndex(new int[] {0,1,2,0,3,1}).setNormalPerVertex(true).setSolid(false)
            .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {0.55,1.97,0.0,-0.55,0.1,0.0,0.55,0.1,0.0,-0.55,1.97,0.0})))
            .setNormal(new Normal().setVector(new MFVec3f(new double[] {0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0})))
            .setTangent(new Tangent().setVector(new MFVec4f(new double[] {1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0})))
            .setTexCoord(new MultiTextureCoordinate()
              .addTexCoord(new TextureCoordinate().setMapping("TEXCOORD_0").setPoint(new MFVec2f(new double[] {0.675,0.05,0.125,0.985,0.675,0.985,0.125,0.05}))))))))
    .addChild(new Transform("TestCutoffDefault").setTranslation(1.5,0.0,0.0)
      .addChild(new Group("TestCutoffDefaultMesh")
        .addChild(new Shape().setBboxCenter(0.0,1.035,0.0).setBboxSize(1.1,1.87,0.0)
          .setAppearance(new Appearance("MatCutoffDefault").setAlphaMode("MASK")
            .setTextureTransform(new TextureTransform().setUSE("FlipVertical"))
            .setMaterial(new PhysicalMaterial().setBaseTextureMapping("TEXCOORD_0").setMetallic(0).setRoughness(0.8)
              .setBaseTexture(new ImageTexture().setUSE("AlphaBlendLabels"))))
          .setGeometry(new IndexedTriangleSet().setCcw(true).setColorPerVertex(true).setIndex(new int[] {0,1,2,0,3,1}).setNormalPerVertex(true).setSolid(false)
            .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {0.55,1.97,0.0,-0.55,0.1,0.0,0.55,0.1,0.0,-0.55,1.97,0.0})))
            .setNormal(new Normal().setVector(new MFVec3f(new double[] {0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0})))
            .setTangent(new Tangent().setVector(new MFVec4f(new double[] {1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0})))
            .setTexCoord(new MultiTextureCoordinate()
              .addTexCoord(new TextureCoordinate().setMapping("TEXCOORD_0").setPoint(new MFVec2f(new double[] {0.675,0.05,0.125,0.985,0.675,0.985,0.125,0.05}))))))))
    .addChild(new Transform("TestCutoff25")
      .addChild(new Group("TestCutoff25Mesh")
        .addChild(new Shape().setBboxCenter(0.0,1.035,0.0).setBboxSize(1.1,1.87,0.0)
          .setAppearance(new Appearance("MatCutoff25").setAlphaCutoff(0.25).setAlphaMode("MASK")
            .setTextureTransform(new TextureTransform().setUSE("FlipVertical"))
            .setMaterial(new PhysicalMaterial().setBaseTextureMapping("TEXCOORD_0").setMetallic(0).setRoughness(0.8)
              .setBaseTexture(new ImageTexture().setUSE("AlphaBlendLabels"))))
          .setGeometry(new IndexedTriangleSet().setCcw(true).setColorPerVertex(true).setIndex(new int[] {0,1,2,0,3,1}).setNormalPerVertex(true).setSolid(false)
            .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {0.55,1.97,0.0,-0.55,0.1,0.0,0.55,0.1,0.0,-0.55,1.97,0.0})))
            .setNormal(new Normal().setVector(new MFVec3f(new double[] {0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0})))
            .setTangent(new Tangent().setVector(new MFVec4f(new double[] {1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0})))
            .setTexCoord(new MultiTextureCoordinate()
              .addTexCoord(new TextureCoordinate().setMapping("TEXCOORD_0").setPoint(new MFVec2f(new double[] {0.675,0.05,0.125,0.985,0.675,0.985,0.125,0.05}))))))))
    .addChild(new Transform("TestBlend").setTranslation(-1.5,0.0,0.0)
      .addChild(new Group("TestBlendMesh")
        .addChild(new Shape().setBboxCenter(0.0,1.035,0.0).setBboxSize(1.1,1.87,0.0)
          .setAppearance(new Appearance().setUSE("MatBlend"))
          .setGeometry(new IndexedTriangleSet().setCcw(true).setColorPerVertex(true).setIndex(new int[] {0,1,2,0,3,1}).setNormalPerVertex(true).setSolid(false)
            .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {0.55,1.97,0.0,-0.55,0.1,0.0,0.55,0.1,0.0,-0.55,1.97,0.0})))
            .setNormal(new Normal().setVector(new MFVec3f(new double[] {0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0})))
            .setTangent(new Tangent().setVector(new MFVec4f(new double[] {1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0})))
            .setTexCoord(new MultiTextureCoordinate()
              .addTexCoord(new TextureCoordinate().setMapping("TEXCOORD_0").setPoint(new MFVec2f(new double[] {0.675,0.05,0.125,0.985,0.675,0.985,0.125,0.05}))))))))
    .addChild(new Transform("TestOpaque").setTranslation(-3.0,0.0,0.0)
      .addChild(new Group("TestOpaqueMesh")
        .addChild(new Shape().setBboxCenter(0.0,1.035,0.0).setBboxSize(1.1,1.87,0.0)
          .setAppearance(new Appearance().setUSE("MatOpaque"))
          .setGeometry(new IndexedTriangleSet().setCcw(true).setColorPerVertex(true).setIndex(new int[] {0,1,2,0,3,1}).setNormalPerVertex(true).setSolid(false)
            .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {0.55,1.97,0.0,-0.55,0.1,0.0,0.55,0.1,0.0,-0.55,1.97,0.0})))
            .setNormal(new Normal().setVector(new MFVec3f(new double[] {0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0})))
            .setTangent(new Tangent().setVector(new MFVec4f(new double[] {1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0})))
            .setTexCoord(new MultiTextureCoordinate()
              .addTexCoord(new TextureCoordinate().setMapping("TEXCOORD_0").setPoint(new MFVec2f(new double[] {0.675,0.05,0.125,0.985,0.675,0.985,0.125,0.05}))))))))
    .addChild(new Transform("Bed")
      .addChild(new Group("BedMesh")
        .addChild(new Shape().setBboxCenter(0.0,1.0998,-0.1).setBboxSize(8.6,2.3995,1.3)
          .setAppearance(new Appearance("MatBed").setAlphaMode("OPAQUE")
            .setMaterial(new PhysicalMaterial().setBaseTextureMapping("TEXCOORD_0").setMetallicRoughnessTextureMapping("TEXCOORD_0").setNormalTextureMapping("TEXCOORD_0").setOcclusionTextureMapping("TEXCOORD_0")
              .setNormalTexture(new ImageTexture().setUrl(new String[] {"MatBed_normal.jpg","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/MatBed_normal.jpg"}))
              .setBaseTexture(new ImageTexture().setUrl(new String[] {"MatBed_baseColor.jpg","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/MatBed_baseColor.jpg"}))
              .setMetallicRoughnessTexture(new ImageTexture("MatBed_occlusionRoughnessMetallic").setUrl(new String[] {"MatBed_occlusionRoughnessMetallic.jpg","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/MatBed_occlusionRoughnessMetallic.jpg"}))
              .setOcclusionTexture(new ImageTexture().setUSE("MatBed_occlusionRoughnessMetallic"))))
          .setGeometry(new IndexedTriangleSet().setCcw(true).setColorPerVertex(true).setIndex(getIndexedTriangleSet_6_126_index()).setNormalPerVertex(true).setSolid(true)
            .setCoord(new Coordinate().setPoint(getCoordinate_7_126_point()))
            .setNormal(new Normal().setVector(getNormal_7_127_vector()))
            .setTangent(new Tangent().setVector(getTangent_7_128_vector()))
            .setTexCoord(new MultiTextureCoordinate()
              .addTexCoord(new TextureCoordinate().setMapping("TEXCOORD_0").setPoint(getTextureCoordinate_8_129_point()))))))));
            }
            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

		/** Large attribute array: Coordinate point field, scene-graph level=7, element #52, 96 total numbers made up of 32 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_7_52_point()
		{
			MFVec3f Coordinate_7_52_point = new MFVec3f(new double[] {-0.992,0.114,-0.0,-1.208,-0.114,-0.0,-0.992,-0.114,-0.0,-1.208,0.114,-0.0,-2.492,0.114,-0.0,-2.708,-0.114,-0.0,-2.492,-0.114,-0.0,-2.708,0.114,-0.0,-2.492,0.114,0.01,-2.708,-0.114,0.01,-2.492,-0.114,0.01,-2.708,0.114,0.01,0.29,0.156,-0.0,-0.29,-0.156,-0.0,0.29,-0.156,-0.0,-0.29,0.156,-0.0,1.79,0.156,-0.0,1.21,-0.156,-0.0,1.79,-0.156,-0.0,1.21,0.156,-0.0,3.29,0.156,-0.0,2.71,-0.156,-0.0,3.29,-0.156,-0.0,2.71,0.156,-0.0,-1.21,0.156,-0.0,-1.79,-0.156,-0.0,-1.21,-0.156,-0.0,-1.79,0.156,-0.0,-2.71,0.156,-0.0,-3.29,-0.156,-0.0,-2.71,-0.156,-0.0,-3.29,0.156,-0.0});
			return Coordinate_7_52_point;
		}
		/** Large attribute array: TextureCoordinate point field, scene-graph level=8, element #55, 64 total numbers made up of 32 2-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 MFVec2f getTextureCoordinate_8_55_point()
		{
			MFVec2f TextureCoordinate_8_55_point = new MFVec2f(new double[] {0.87,0.545,0.78,0.64,0.87,0.64,0.78,0.545,0.9825,0.545,0.8925,0.64,0.9825,0.64,0.8925,0.545,0.87,0.6625,0.78,0.7575,0.87,0.7575,0.78,0.6625,0.975,0.405,0.83,0.483,0.975,0.483,0.83,0.405,0.975,0.295,0.83,0.373,0.975,0.373,0.83,0.295,0.975,0.18,0.83,0.258,0.975,0.258,0.83,0.18,0.975,0.09,0.83,0.168,0.975,0.168,0.83,0.09,0.975,0.0198,0.83,0.0978,0.975,0.0978,0.83,0.0198});
			return TextureCoordinate_8_55_point;
		}
		/** Large attribute array: IndexedTriangleSet index field, scene-graph level=6, element #126, 90 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 getIndexedTriangleSet_6_126_index()
		{
			MFInt32 IndexedTriangleSet_6_126_index = new MFInt32(new int[] {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,0,39,1,3,40,4,41,42,43,9,44,10,12,45,13,15,46,16,18,47,19,48,49,50,51,52,53,54,55,56,24,57,25,58,59,60,30,61,31,33,62,34,63,64,65,66,67,68,69,70,71});
			return IndexedTriangleSet_6_126_index;
		}
		/** Large attribute array: Coordinate point field, scene-graph level=7, element #126, 216 total numbers made up of 72 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_7_126_point()
		{
			MFVec3f Coordinate_7_126_point = new MFVec3f(new double[] {-4.3,0.1,0.25,-4.3,-0.1,-0.75,-4.3,-0.1,0.55,-4.3,0.1,-0.75,4.3,-0.1,-0.75,-4.3,-0.1,-0.75,4.3,-0.1,-0.75,4.3,0.1,0.25,4.3,-0.1,0.55,4.3,0.1,0.25,-4.3,-0.1,0.55,4.3,-0.1,0.55,4.3,-0.1,-0.75,-4.3,-0.1,0.55,-4.3,-0.1,-0.75,-4.3,0.1,-0.75,4.3,0.1,0.25,4.3,0.1,-0.75,4.0566,2.2995,-0.5672,-4.0566,2.2995,-0.4672,4.0566,2.2995,-0.4672,-4.1881,0.0995,-0.5672,4.0566,2.2995,-0.5672,4.1881,0.0995,-0.5672,-4.1881,2.168,-0.5672,-4.1881,0.0995,-0.4672,-4.1881,2.168,-0.4672,4.1881,0.0995,-0.5672,4.1881,2.168,-0.4672,4.1881,0.0995,-0.4672,-4.0566,2.2995,-0.5672,-4.1881,2.168,-0.4672,-4.0566,2.2995,-0.4672,4.0566,2.2995,-0.4672,4.1881,2.168,-0.5672,4.0566,2.2995,-0.5672,4.1881,0.0995,-0.4672,-4.0566,2.2995,-0.4672,-4.1881,0.0995,-0.4672,-4.3,0.1,-0.75,4.3,0.1,-0.75,4.3,-0.1,-0.75,4.3,0.1,-0.75,4.3,0.1,0.25,-4.3,0.1,0.25,4.3,-0.1,0.55,-4.3,0.1,0.25,-4.0566,2.2995,-0.5672,4.1881,2.168,-0.5672,4.1881,0.0995,-0.5672,4.0566,2.2995,-0.5672,-4.1881,0.0995,-0.5672,-4.1881,2.168,-0.5672,-4.0566,2.2995,-0.5672,-4.0566,2.2995,-0.5672,4.0566,2.2995,-0.5672,-4.1881,0.0995,-0.5672,-4.1881,0.0995,-0.5672,4.1881,0.0995,-0.5672,4.1881,2.168,-0.5672,4.1881,2.168,-0.4672,-4.1881,2.168,-0.5672,4.1881,2.168,-0.4672,-4.1881,2.168,-0.4672,-4.1881,0.0995,-0.4672,-4.0566,2.2995,-0.4672,4.1881,0.0995,-0.4672,4.1881,2.168,-0.4672,4.0566,2.2995,-0.4672,4.0566,2.2995,-0.4672,-4.0566,2.2995,-0.4672,4.1881,0.0995,-0.4672});
			return Coordinate_7_126_point;
		}
		/** Large attribute array: Normal vector field, scene-graph level=7, element #127, 216 total numbers made up of 72 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 getNormal_7_127_vector()
		{
			MFVec3f Normal_7_127_vector = new MFVec3f(new double[] {-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,0.8321,0.5547,0.0,0.8321,0.5547,0.0,0.8321,0.5547,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,-0.7071,0.7071,0.0,-0.7071,0.7071,0.0,-0.7071,0.7071,0.0,0.7071,0.7071,0.0,0.7071,0.7071,0.0,0.7071,0.7071,0.0,0.0,-0.0,1.0,0.0,-0.0,1.0,0.0,-0.0,1.0,-1.0,0.0,0.0,0.0,0.0,-1.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,0.8321,0.5547,0.0,-1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,-1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,-0.7071,0.7071,0.0,0.7071,0.7071,0.0,0.0,-0.0,1.0,0.0,-0.0,1.0,0.0,-0.0,1.0,-0.0,-0.0,1.0,-0.0,-0.0,1.0,-0.0,-0.0,1.0,0.0,-0.0,1.0,0.0,-0.0,1.0,0.0,-0.0,1.0});
			return Normal_7_127_vector;
		}
		/** Large attribute array: Tangent vector field, scene-graph level=7, element #128, 216 total numbers made up of 54 4-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 MFVec4f getTangent_7_128_vector()
		{
			MFVec4f Tangent_7_128_vector = new MFVec4f(new double[] {0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,0.5547,-0.8321,0.0,0.5547,-0.8321,0.0,0.5547,-0.8321,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,0.5547,-0.8321,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,0.0,-1.0,-0.0,-0.0,-1.0,-0.0,-0.0,-1.0,-0.0,-0.0,-1.0,-0.0,-0.0,-1.0,-0.0,-0.0,-1.0,-0.0,-0.0,-1.0,-0.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,0.0,0.0,-1.0,-0.0,1.0,0.0,-0.0,1.0,0.0,-0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,-0.0,1.0,0.0,-0.0,1.0,0.0,-0.0,1.0,0.0});
			return Tangent_7_128_vector;
		}
		/** Large attribute array: TextureCoordinate point field, scene-graph level=8, element #129, 144 total numbers made up of 72 2-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 MFVec2f getTextureCoordinate_8_129_point()
		{
			MFVec2f TextureCoordinate_8_129_point = new MFVec2f(new double[] {0.9717,0.8819,0.9974,0.9977,0.9974,0.8472,0.9229,0.0023,0.9486,0.9977,0.9486,0.0023,0.9974,0.6921,0.9717,0.8079,0.9974,0.8426,0.617,0.9977,0.5784,0.0023,0.5784,0.9977,0.7506,0.9977,0.9177,0.0023,0.7506,0.0023,0.7455,0.0023,0.617,0.9977,0.7455,0.9977,0.9666,0.9825,0.9537,0.0434,0.9537,0.9825,0.5733,0.0282,0.2905,0.9825,0.5733,0.9977,0.9717,0.4481,0.9846,0.6875,0.9846,0.4481,0.9846,0.4435,0.9717,0.2041,0.9717,0.4435,0.9666,0.0434,0.9537,0.0282,0.9537,0.0434,0.9537,0.9825,0.9666,0.9977,0.9666,0.9825,0.0026,0.9977,0.2853,0.0434,0.0026,0.0282,0.9717,0.9977,0.9229,0.9977,0.9974,0.6921,0.9717,0.6921,0.9717,0.8079,0.617,0.0023,0.9177,0.9977,0.617,0.0023,0.9666,0.0434,0.3074,0.9977,0.5733,0.9977,0.2905,0.9825,0.5733,0.0282,0.3074,0.0282,0.2905,0.0434,0.2905,0.0434,0.2905,0.9825,0.5733,0.0282,0.9717,0.6875,0.9846,0.4435,0.9846,0.2041,0.9717,0.2041,0.9666,0.0282,0.9537,0.9977,0.2684,0.0282,0.0026,0.0282,0.2853,0.0434,0.0026,0.9977,0.2684,0.9977,0.2853,0.9825,0.2853,0.9825,0.2853,0.0434,0.0026,0.9977});
			return TextureCoordinate_8_129_point;
		}

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

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

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