package Savage.HarborEquipment.Canopy;

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

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> A simple canopy with tent material color exposed as a proto input. </p>
 <p> Related links: Catalog page <a href="../../../../HarborEquipment/Canopy/CanopyPrototypeIndex.html" target="_blank">CanopyPrototype</a>,  source <a href="../../../../HarborEquipment/Canopy/CanopyPrototype.java">CanopyPrototype.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="../../../../HarborEquipment/Canopy/CanopyPrototype.x3d">CanopyPrototype.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> A simple canopy with tent material color exposed as a proto input </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> LT Patrick Sullivan </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 23 March 2005 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 20 October 2019 </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/Savage/HarborEquipment/Canopy/CanopyPrototype.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/HarborEquipment/Canopy/CanopyPrototype.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> X3D-Edit 3.2, <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> generator </i> </td>
			<td> VizX3D, <a href="http://www.vivaty.com/downloads/studio" target="_blank">http://www.vivaty.com/downloads/studio</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> Wings3D, <a href="http://www.wings3d.com" target="_blank">http://www.wings3d.com</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> license </i> </td>
			<td> <a href="../../../../HarborEquipment/Canopy/../../license.html">../../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 LT Patrick Sullivan
 */

public class CanopyPrototype
{
	/** Default constructor to create this object. */
	public CanopyPrototype ()
	{
	  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_1)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("CanopyPrototype.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("A simple canopy with tent material color exposed as a proto input"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("LT Patrick Sullivan"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("23 March 2005"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("20 October 2019"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Savage/HarborEquipment/Canopy/CanopyPrototype.x3d"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("VizX3D, http://www.vivaty.com/downloads/studio"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("Wings3D, http://www.wings3d.com"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("CanopyPrototype.x3d"))
    .addChild(new ProtoDeclare("Canopy").setName("Canopy")
      .setProtoInterface(new ProtoInterface()
        .addField(new field().setName("materialColor").setType(field.TYPE_SFCOLOR).setAccessType(field.ACCESSTYPE_INITIALIZEONLY).setValue(new SFColor(0.0,0.0,1.0)).setAppinfo("The color of the material of the tent that forms the canopy")))
      .setProtoBody(new ProtoBody()
        .addChild(new Group("Canopy")
          .addChild(new Transform("TentMaterial")
            .addChild(new Shape("cube1")
              .setAppearance(new Appearance()
                .setMaterial(new Material("tentColor")
                  .setIS(new IS()
                    .addConnect(new connect().setNodeField("diffuseColor").setProtoField("materialColor")))))
              .setGeometry(new IndexedFaceSet().setCreaseAngle(0.524).setCoordIndex(new int[] {0,1,2,-1,0,2,3,-1,0,4,5,-1,0,5,6,-1,0,6,7,-1,0,7,8,-1,0,8,1,-1,0,3,9,-1,0,9,10,-1,0,10,4,-1,1,8,11,-1,1,11,2,-1,12,6,13,-1,12,13,14,-1,12,8,7,-1,12,7,6,-1,12,14,11,-1,12,11,8,-1,6,5,15,-1,6,15,16,-1,6,16,13,-1,9,17,18,-1,9,18,19,-1,9,19,16,-1,9,16,15,-1,9,15,10,-1,9,3,2,-1,9,2,17,-1,17,2,11,-1,17,11,18,-1,20,16,19,-1,20,19,18,-1,20,14,13,-1,20,13,16,-1,20,18,11,-1,20,11,14,-1,29,30,31,-1,29,31,32,-1,29,32,33,-1,29,33,34,-1,29,35,36,-1,29,36,30,-1,29,34,37,-1,29,37,35,-1,30,36,38,-1,30,38,31,-1,31,38,39,-1,31,39,32,-1,32,39,40,-1,32,40,33,-1,35,39,38,-1,35,38,36,-1,35,37,40,-1,35,40,39,-1})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {-1.0,.59111,1.0,-.0765,1.0,.0765,-.102,1.0,0.0,-1.0,.59111,0.0,-1.0,.46311,1.0,1.0,.46311,1.0,1.0,.59111,1.0,0.0,.59111,1.0,0.0,1.0,.102,-1.0,.59111,-1.0,-1.0,.46311,-1.0,0.0,1.0,0.0,.0765,1.0,.0765,1.0,.59111,0.0,.102,1.0,0.0,1.0,.46311,-1.0,1.0,.59111,-1.0,-.0765,1.0,-.0765,0.0,1.0,-.102,0.0,.59111,-1.0,.0765,1.0,-.0765,-1.0,.46311,1.0,1.0,.46311,1.0,1.0,.46311,-1.0,-1.0,.46311,-1.0,-1.0,.46311,1.0,1.0,.46311,1.0,1.0,.46311,-1.0,-1.0,.46311,-1.0,-1.0,.59111,1.0,-.102,1.0,.102,.102,1.0,.102,1.0,.59111,1.0,1.0,.46311,1.0,-1.0,.46311,1.0,-1.0,.59111,-1.0,-.102,1.0,-.102,-1.0,.46311,-1.0,.102,1.0,-.102,1.0,.59111,-1.0,1.0,.46311,-1.0}))))))
          .addChild(new Transform("Leg1")
            .addChild(new Shape("cylinder2_copy5")
              .setAppearance(new Appearance()
                .setMaterial(new Material("Black_mat").setDiffuseColor(0.0,0.0,0.0)))
              .setGeometry(new IndexedFaceSet().setCreaseAngle(0.524).setCoordIndex(new int[] {0,1,2,-1,0,2,3,-1,0,4,5,-1,0,5,6,-1,0,6,7,-1,0,7,8,-1,0,8,9,-1,0,9,10,-1,0,10,11,-1,0,11,12,-1,0,12,13,-1,0,13,14,-1,0,14,15,-1,0,15,16,-1,0,16,17,-1,0,17,1,-1,0,3,18,-1,0,18,4,-1,1,17,19,-1,1,19,2,-1,17,16,20,-1,17,20,19,-1,16,15,21,-1,16,21,20,-1,15,14,22,-1,15,22,21,-1,14,13,23,-1,14,23,22,-1,13,12,24,-1,13,24,23,-1,12,11,25,-1,12,25,24,-1,11,10,26,-1,11,26,25,-1,10,9,27,-1,10,27,26,-1,9,8,28,-1,9,28,27,-1,8,7,29,-1,8,29,28,-1,7,6,30,-1,7,30,29,-1,6,5,31,-1,6,31,30,-1,5,4,18,-1,5,18,31,-1,3,2,19,-1,3,19,20,-1,3,20,21,-1,3,21,22,-1,3,22,23,-1,3,23,24,-1,3,24,25,-1,3,25,26,-1,3,26,27,-1,3,27,28,-1,3,28,29,-1,3,29,30,-1,3,30,31,-1,3,31,18,-1})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {-.89716,.61014,-.91191,-.89814,.61014,-.90699,-.89814,-1.0,-.90699,-.89716,-1.0,-.91191,-.89814,.61014,-.91682,-.90092,.61014,-.92099,-.90509,.61014,-.92378,-.91001,.61014,-.92476,-.91493,.61014,-.92378,-.9191,.61014,-.92099,-.92189,.61014,-.91682,-.92286,.61014,-.91191,-.92189,.61014,-.90699,-.9191,.61014,-.90282,-.91493,.61014,-.90003,-.91001,.61014,-.89905,-.90509,.61014,-.90003,-.90092,.61014,-.90282,-.89814,-1.0,-.91682,-.90092,-1.0,-.90282,-.90509,-1.0,-.90003,-.91001,-1.0,-.89905,-.91493,-1.0,-.90003,-.9191,-1.0,-.90282,-.92189,-1.0,-.90699,-.92286,-1.0,-.91191,-.92189,-1.0,-.91682,-.9191,-1.0,-.92099,-.91493,-1.0,-.92378,-.91001,-1.0,-.92476,-.90509,-1.0,-.92378,-.90092,-1.0,-.92099}))))))
          .addChild(new Transform("Leg2")
            .addChild(new Shape("cylinder2_copy4")
              .setAppearance(new Appearance()
                .setMaterial(new Material().setUSE("Black_mat")))
              .setGeometry(new IndexedFaceSet().setCreaseAngle(0.524).setCoordIndex(new int[] {0,1,2,-1,0,2,3,-1,0,4,5,-1,0,5,6,-1,0,6,7,-1,0,7,8,-1,0,8,9,-1,0,9,10,-1,0,10,11,-1,0,11,12,-1,0,12,13,-1,0,13,14,-1,0,14,15,-1,0,15,16,-1,0,16,17,-1,0,17,1,-1,0,3,18,-1,0,18,4,-1,1,17,19,-1,1,19,2,-1,17,16,20,-1,17,20,19,-1,16,15,21,-1,16,21,20,-1,15,14,22,-1,15,22,21,-1,14,13,23,-1,14,23,22,-1,13,12,24,-1,13,24,23,-1,12,11,25,-1,12,25,24,-1,11,10,26,-1,11,26,25,-1,10,9,27,-1,10,27,26,-1,9,8,28,-1,9,28,27,-1,8,7,29,-1,8,29,28,-1,7,6,30,-1,7,30,29,-1,6,5,31,-1,6,31,30,-1,5,4,18,-1,5,18,31,-1,3,2,19,-1,3,19,20,-1,3,20,21,-1,3,21,22,-1,3,22,23,-1,3,23,24,-1,3,24,25,-1,3,25,26,-1,3,26,27,-1,3,27,28,-1,3,28,29,-1,3,29,30,-1,3,30,31,-1,3,31,18,-1})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {-.89716,.61014,.90984,-.89814,.61014,.91476,-.89814,-1.0,.91476,-.89716,-1.0,.90984,-.89814,.61014,.90492,-.90092,.61014,.90075,-.90509,.61014,.89797,-.91001,.61014,.89699,-.91493,.61014,.89797,-.9191,.61014,.90075,-.92189,.61014,.90492,-.92286,.61014,.90984,-.92189,.61014,.91476,-.9191,.61014,.91893,-.91493,.61014,.92172,-.91001,.61014,.92269,-.90509,.61014,.92172,-.90092,.61014,.91893,-.89814,-1.0,.90492,-.90092,-1.0,.91893,-.90509,-1.0,.92172,-.91001,-1.0,.92269,-.91493,-1.0,.92172,-.9191,-1.0,.91893,-.92189,-1.0,.91476,-.92286,-1.0,.90984,-.92189,-1.0,.90492,-.9191,-1.0,.90075,-.91493,-1.0,.89797,-.91001,-1.0,.89699,-.90509,-1.0,.89797,-.90092,-1.0,.90075}))))))
          .addChild(new Transform("Leg3")
            .addChild(new Shape("cylinder2_copy3")
              .setAppearance(new Appearance()
                .setMaterial(new Material().setUSE("Black_mat")))
              .setGeometry(new IndexedFaceSet().setCreaseAngle(0.524).setCoordIndex(new int[] {0,1,2,-1,0,2,3,-1,0,4,5,-1,0,5,6,-1,0,6,7,-1,0,7,8,-1,0,8,9,-1,0,9,10,-1,0,10,11,-1,0,11,12,-1,0,12,13,-1,0,13,14,-1,0,14,15,-1,0,15,16,-1,0,16,17,-1,0,17,1,-1,0,3,18,-1,0,18,4,-1,1,17,19,-1,1,19,2,-1,17,16,20,-1,17,20,19,-1,16,15,21,-1,16,21,20,-1,15,14,22,-1,15,22,21,-1,14,13,23,-1,14,23,22,-1,13,12,24,-1,13,24,23,-1,12,11,25,-1,12,25,24,-1,11,10,26,-1,11,26,25,-1,10,9,27,-1,10,27,26,-1,9,8,28,-1,9,28,27,-1,8,7,29,-1,8,29,28,-1,7,6,30,-1,7,30,29,-1,6,5,31,-1,6,31,30,-1,5,4,18,-1,5,18,31,-1,3,2,19,-1,3,19,20,-1,3,20,21,-1,3,21,22,-1,3,22,23,-1,3,23,24,-1,3,24,25,-1,3,25,26,-1,3,26,27,-1,3,27,28,-1,3,28,29,-1,3,29,30,-1,3,30,31,-1,3,31,18,-1})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {.91916,.61014,-.91191,.91818,.61014,-.90699,.91818,-1.0,-.90699,.91916,-1.0,-.91191,.91818,.61014,-.91682,.9154,.61014,-.92099,.91123,.61014,-.92378,.90631,.61014,-.92476,.90139,.61014,-.92378,.89722,.61014,-.92099,.89443,.61014,-.91682,.89346,.61014,-.91191,.89443,.61014,-.90699,.89722,.61014,-.90282,.90139,.61014,-.90003,.90631,.61014,-.89905,.91123,.61014,-.90003,.9154,.61014,-.90282,.91818,-1.0,-.91682,.9154,-1.0,-.90282,.91123,-1.0,-.90003,.90631,-1.0,-.89905,.90139,-1.0,-.90003,.89722,-1.0,-.90282,.89443,-1.0,-.90699,.89346,-1.0,-.91191,.89443,-1.0,-.91682,.89722,-1.0,-.92099,.90139,-1.0,-.92378,.90631,-1.0,-.92476,.91123,-1.0,-.92378,.9154,-1.0,-.92099}))))))
          .addChild(new Transform("Leg4")
            .addChild(new Shape("cylinder2")
              .setAppearance(new Appearance()
                .setMaterial(new Material().setUSE("Black_mat")))
              .setGeometry(new IndexedFaceSet().setCreaseAngle(0.524).setCoordIndex(new int[] {0,1,2,-1,0,2,3,-1,0,4,5,-1,0,5,6,-1,0,6,7,-1,0,7,8,-1,0,8,9,-1,0,9,10,-1,0,10,11,-1,0,11,12,-1,0,12,13,-1,0,13,14,-1,0,14,15,-1,0,15,16,-1,0,16,17,-1,0,17,1,-1,0,3,18,-1,0,18,4,-1,1,17,19,-1,1,19,2,-1,17,16,20,-1,17,20,19,-1,16,15,21,-1,16,21,20,-1,15,14,22,-1,15,22,21,-1,14,13,23,-1,14,23,22,-1,13,12,24,-1,13,24,23,-1,12,11,25,-1,12,25,24,-1,11,10,26,-1,11,26,25,-1,10,9,27,-1,10,27,26,-1,9,8,28,-1,9,28,27,-1,8,7,29,-1,8,29,28,-1,7,6,30,-1,7,30,29,-1,6,5,31,-1,6,31,30,-1,5,4,18,-1,5,18,31,-1,3,2,19,-1,3,19,20,-1,3,20,21,-1,3,21,22,-1,3,22,23,-1,3,23,24,-1,3,24,25,-1,3,25,26,-1,3,26,27,-1,3,27,28,-1,3,28,29,-1,3,29,30,-1,3,30,31,-1,3,31,18,-1})
                .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {.91916,.61014,.90984,.91818,.61014,.91476,.91818,-1.0,.91476,.91916,-1.0,.90984,.91818,.61014,.90492,.9154,.61014,.90075,.91123,.61014,.89797,.90631,.61014,.89699,.90139,.61014,.89797,.89722,.61014,.90075,.89443,.61014,.90492,.89346,.61014,.90984,.89443,.61014,.91476,.89722,.61014,.91893,.90139,.61014,.92172,.90631,.61014,.92269,.91123,.61014,.92172,.9154,.61014,.91893,.91818,-1.0,.90492,.9154,-1.0,.91893,.91123,-1.0,.92172,.90631,-1.0,.92269,.90139,-1.0,.92172,.89722,-1.0,.91893,.89443,-1.0,.91476,.89346,-1.0,.90984,.89443,-1.0,.90492,.89722,-1.0,.90075,.90139,-1.0,.89797,.90631,-1.0,.89699,.91123,-1.0,.89797,.9154,-1.0,.90075}))))))))));
            }
            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

	/** 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 CanopyPrototype 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 CanopyPrototype().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: \"Savage.HarborEquipment.Canopy.CanopyPrototype\" 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("Savage.HarborEquipment.Canopy.CanopyPrototype self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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