package HumanoidAnimation.Bones;

import org.web3d.x3d.jsail.Core.*;
import org.web3d.x3d.jsail.fields.*;
import org.web3d.x3d.jsail.Grouping.*;
import org.web3d.x3d.jsail.Lighting.*;
import org.web3d.x3d.jsail.Navigation.*;
import org.web3d.x3d.jsail.Networking.*;
import org.web3d.x3d.jsail.PointingDeviceSensor.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> The human skull is generally considered to consist of 22 bones: eight cranial bones and fourteen facial skeleton bones. In the neurocranium these are the occipital bone, two temporal bones, two parietal bones, the sphenoid, ethmoid and frontal bones. The bones of the facial skeleton (14) are the vomer, two inferior nasal conchae, two nasal bones, two maxilla, two palatine bones, two zygomatic bones, and two lacrimal bones. This composite model also includes the upper teeth. The mandible and lower teeth are separate, animatable together, and included in the jaw.x3d model. </p>
 <p> Related links:  source skull.java, <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;">HumanoidAnimation.Bones.skull&nbsp; Document Metadata </td>
		</tr>

		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> title </i> </td>
			<td> <a href="https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/skull.x3d">skull.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> The human skull is generally considered to consist of 22 bones: eight cranial bones and fourteen facial skeleton bones. In the neurocranium these are the occipital bone, two temporal bones, two parietal bones, the sphenoid, ethmoid and frontal bones. The bones of the facial skeleton (14) are the vomer, two inferior nasal conchae, two nasal bones, two maxilla, two palatine bones, two zygomatic bones, and two lacrimal bones. This composite model also includes the upper teeth. The mandible and lower teeth are separate, animatable together, and included in the jaw.x3d model. </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Don Brutzman </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 14 March 2026 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 22 March 2026 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/jaw.x3d">jaw.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/skullWithFrontalBoneSelected.png">skullWithFrontalBoneSelected.png</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://en.wikipedia.org/wiki/Skull#Humans" target="_blank">https://en.wikipedia.org/wiki/Skull#Humans</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://en.wikipedia.org/wiki/Human_tooth" target="_blank">https://en.wikipedia.org/wiki/Human_tooth</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> United States, <a href="https://en.wikipedia.org/wiki/Universal_Numbering_System" target="_blank">https://en.wikipedia.org/wiki/Universal_Numbering_System</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> ISO 3950, <a href="https://en.wikipedia.org/wiki/FDI_World_Dental_Federation_notation" target="_blank">https://en.wikipedia.org/wiki/FDI_World_Dental_Federation_notation</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://en.wikipedia.org/wiki/FDI_World_Dental_Federation_notation#/media/File:Comparison_of_dental_notations.svg" target="_blank">https://en.wikipedia.org/wiki/FDI_World_Dental_Federation_notation#/media/File:Comparison_of_dental_notations.svg</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> usage examples <a href="https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Medical" target="_blank">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Medical</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> generator </i> </td>
			<td> X3D Tidy, <a href="https://www.web3d.org/x3d/stylesheets/X3dTidy.html" target="_blank">https://www.web3d.org/x3d/stylesheets/X3dTidy.html</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/HumanoidAnimation/Bones/skull.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/skull.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/HumanoidAnimation/Bones/../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 Don Brutzman
 */

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

	/** Create and initialize the X3D model for this object. */
	public final void initialize()
	{
            try { // catch-all
  x3dModel = new X3D().setProfile(X3D.PROFILE_INTERACTIVE).setVersion(X3D.VERSION_4_0)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("skull.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("The human skull is generally considered to consist of 22 bones: eight cranial bones and fourteen facial skeleton bones. In the neurocranium these are the occipital bone, two temporal bones, two parietal bones, the sphenoid, ethmoid and frontal bones. The bones of the facial skeleton (14) are the vomer, two inferior nasal conchae, two nasal bones, two maxilla, two palatine bones, two zygomatic bones, and two lacrimal bones. This composite model also includes the upper teeth. The mandible and lower teeth are separate, animatable together, and included in the jaw.x3d model."))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Don Brutzman"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("14 March 2026"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("22 March 2026"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("jaw.x3d"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("skullWithFrontalBoneSelected.png"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://en.wikipedia.org/wiki/Skull#Humans"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://en.wikipedia.org/wiki/Human_tooth"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("United States, https://en.wikipedia.org/wiki/Universal_Numbering_System"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("ISO 3950, https://en.wikipedia.org/wiki/FDI_World_Dental_Federation_notation"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://en.wikipedia.org/wiki/FDI_World_Dental_Federation_notation#/media/File:Comparison_of_dental_notations.svg"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("usage examples https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Medical"))
    .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_GENERATOR  ).setContent("X3D Tidy, https://www.web3d.org/x3d/stylesheets/X3dTidy.html"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/skull.x3d"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("skull.x3d"))
    .addComments(" user hover lights bone and reveals description, user selection/deselection temporarily binds/unbinds close-up hidden viewpoint ")
    .addChild(new TouchSensor("UserTouchSensor").setDescription("skull, cranial bones and upper teeth"))
    .addChild(new Transform("SkullLocalOffset").setTranslation(0.0,1.68,0.0)
      .addChild(new ViewpointGroup("ViewpointGroup_skull").setDescription("skull model").setRetainUserOffsets(true)
        .addChild(new Viewpoint("ViewFromFront").setDescription("skull face").setNearDistance(0.001).setPosition(0.0,0.0,0.5).setRetainUserOffsets(true))
        .addChild(new Viewpoint("ViewFromBehind").setDescription("skull from left side").setNearDistance(0.001).setOrientation(0.0,1.0,0.0,1.5708).setPosition(0.5,0.0,0.0).setRetainUserOffsets(true))
        .addChild(new Viewpoint("ViewFromLeft").setDescription("skull from behind").setNearDistance(0.001).setOrientation(0.0,1.0,0.0,3.1416).setPosition(0.0,0.0,-0.5).setRetainUserOffsets(true))
        .addChild(new Viewpoint("ViewFromRight").setDescription("skull from right side").setNearDistance(0.001).setOrientation(0.0,1.0,0.0,-1.5708).setPosition(-0.5,0.0,0.0).setRetainUserOffsets(true))
        .addChild(new Viewpoint("ViewFromAbove").setDescription("skull from above").setNearDistance(0.001).setOrientation(1.0,0.0,0.0,-1.5708).setPosition(0.0,0.5,0.0).setRetainUserOffsets(true))
        .addChild(new Viewpoint("ViewFromBelow").setDescription("skull from below").setNearDistance(0.001).setOrientation(1.0,0.0,0.0,1.5708).setPosition(0.0,-0.5,0.0).setRetainUserOffsets(true)))
      .addComments(" nevertheless, TouchSensor interfaces from each of the Inline models are closer, taking priority and overriding this interface ")
      .addChild(new Viewpoint("HiddenViewpoint").setNearDistance(0.001).setPosition(0.0,0.0,0.3).setRetainUserOffsets(true)
        .setNavigationInfo(new NavigationInfo().setTransitionType(new String[] {"ANIMATE"}).setType(new String[] {"EXAMINE"})))
      .addChild(new ROUTE().setFromNode("UserTouchSensor").setFromField("isActive").setToNode("HiddenViewpoint").setToField("set_bind"))
      .addChild(new DirectionalLight("HiddenLight").setAmbientIntensity(1).setColor(0.1,0.1,1.0).setOn(false))
      .addChild(new ROUTE().setFromNode("UserTouchSensor").setFromField("isOver").setToNode("HiddenLight").setToField("on")))
    .addChild(new Inline("ethmoid").setUrl(new String[] {"ethmoid.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/ethmoid.x3d","ethmoid.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/ethmoid.wrl"}))
    .addChild(new Inline("frontal").setUrl(new String[] {"frontal.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/frontal.x3d","frontal.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/frontal.wrl"}))
    .addChild(new Inline("l_inferior_nasal_conchae").setUrl(new String[] {"l_inferior_nasal_conchae.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_inferior_nasal_conchae.x3d","l_inferior_nasal_conchae.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_inferior_nasal_conchae.wrl"}))
    .addChild(new Inline("r_inferior_nasal_conchae").setUrl(new String[] {"r_inferior_nasal_conchae.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/r_inferior_nasal_conchae.x3d","r_inferior_nasal_conchae.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/r_inferior_nasal_conchae.wrl"}))
    .addChild(new Inline("l_lacrimal").setUrl(new String[] {"l_lacrimal.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_lacrimal.x3d","l_lacrimal.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_lacrimal.wrl"}))
    .addChild(new Inline("r_lacrimal").setUrl(new String[] {"r_lacrimal.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/r_lacrimal.x3d","r_lacrimal.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/r_lacrimal.wrl"}))
    .addChild(new Inline("l_maxilla").setUrl(new String[] {"l_maxilla.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_maxilla.x3d","l_maxilla.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_maxilla.wrl"}))
    .addChild(new Inline("r_maxilla").setUrl(new String[] {"r_maxilla.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/r_maxilla.x3d","r_maxilla.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/r_maxilla.wrl"}))
    .addChild(new Inline("l_nasal").setUrl(new String[] {"l_nasal.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_nasal.x3d","l_nasal.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_nasal.wrl"}))
    .addChild(new Inline("r_nasal").setUrl(new String[] {"r_nasal.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/r_nasal.x3d","r_nasal.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/r_nasal.wrl"}))
    .addChild(new Inline("occipital").setUrl(new String[] {"occipital.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/occipital.x3d","occipital.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/occipital.wrl"}))
    .addChild(new Inline("l_parietal").setUrl(new String[] {"l_parietal.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_parietal.x3d","l_parietal.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_parietal.wrl"}))
    .addChild(new Inline("r_parietal").setUrl(new String[] {"r_parietal.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/r_parietal.x3d","r_parietal.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/r_parietal.wrl"}))
    .addChild(new Inline("l_palatine").setUrl(new String[] {"l_palatine.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_palatine.x3d","l_palatine.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_palatine.wrl"}))
    .addChild(new Inline("r_palatine").setUrl(new String[] {"r_palatine.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/r_palatine.x3d","r_palatine.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/r_palatine.wrl"}))
    .addChild(new Inline("sphenoid").setUrl(new String[] {"sphenoid.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/sphenoid.x3d","sphenoid.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/sphenoid.wrl"}))
    .addChild(new Inline("l_temporal").setUrl(new String[] {"l_temporal.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_temporal.x3d","l_temporal.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_temporal.wrl"}))
    .addChild(new Inline("r_temporal").setUrl(new String[] {"r_temporal.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/r_temporal.x3d","r_temporal.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/r_temporal.wrl"}))
    .addChild(new Inline("vomer").setUrl(new String[] {"vomer.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/vomer.x3d","vomer.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/vomer.wrl"}))
    .addChild(new Inline("l_zygomatic").setUrl(new String[] {"l_zygomatic.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_zygomatic.x3d","l_zygomatic.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_zygomatic.wrl"}))
    .addChild(new Inline("r_zygomatic").setUrl(new String[] {"r_zygomatic.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/r_zygomatic.x3d","r_zygomatic.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/r_zygomatic.wrl"}))
    .addChild(new Inline("tooth_molar_1_18").setUrl(new String[] {"tooth_molar_1_18.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_molar_1_18.x3d","tooth_molar_1_18.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_molar_1_18.wrl"}))
    .addComments(" r_molar3c.x3d r_molar3r.x3d ")
    .addChild(new Inline("tooth_molar_2_17").setUrl(new String[] {"tooth_molar_2_17.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_molar_2_17.x3d","tooth_molar_2_17.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_molar_2_17.wrl"}))
    .addComments(" r_molar2c.3xd r_molar2r.3xd ")
    .addChild(new Inline("tooth_molar_3_16").setUrl(new String[] {"tooth_molar_3_16.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_molar_3_16.x3d","tooth_molar_3_16.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_molar_3_16.wrl"}))
    .addComments(" r_molar1c.3xd r_molar1r.3xd ")
    .addChild(new Inline("tooth_premolar_4_15").setUrl(new String[] {"tooth_premolar_4_15.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_premolar_4_15.x3d","tooth_premolar_4_15.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_premolar_4_15.wrl"}))
    .addComments(" rpreol2c.x3d rpreol2r.x3d ")
    .addChild(new Inline("tooth_premolar_5_14").setUrl(new String[] {"tooth_premolar_5_14.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_premolar_5_14.x3d","tooth_premolar_5_14.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_premolar_5_14.wrl"}))
    .addComments(" rpreol1c.x3d rpreol1r.x3d ")
    .addChild(new Inline("tooth_canine_6_13").setUrl(new String[] {"tooth_canine_6_13.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_canine_6_13.x3d","tooth_canine_6_13.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_canine_6_13.wrl"}))
    .addComments(" r_caninec.x3d r_caniner.x3d ")
    .addChild(new Inline("tooth_incisor_7_12").setUrl(new String[] {"tooth_incisor_7_12.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_incisor_7_12.x3d","tooth_incisor_7_12.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_incisor_7_12.wrl"}))
    .addComments(" rlatincc.x3d rlatincr.x3d ")
    .addChild(new Inline("tooth_incisor_8_11").setUrl(new String[] {"tooth_incisor_8_11.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_incisor_8_11.x3d","tooth_incisor_8_11.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_incisor_8_11.wrl"}))
    .addComments(" rcenincc.x3d rcenincr.x3d ")
    .addChild(new Inline("tooth_incisor_9_21").setUrl(new String[] {"tooth_incisor_9_21.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_incisor_9_21.x3d","tooth_incisor_9_21.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_incisor_9_21.wrl"}))
    .addComments(" lcenincc.x3d lcenincr.x3d ")
    .addChild(new Inline("tooth_incisor_10_22").setUrl(new String[] {"tooth_incisor_10_22.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_incisor_10_22.x3d","tooth_incisor_10_22.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_incisor_10_22.wrl"}))
    .addComments(" llatincc.x3d llatincr.x3d ")
    .addChild(new Inline("tooth_canine_11_23").setUrl(new String[] {"tooth_canine_11_23.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_canine_11_23.x3d","tooth_canine_11_23.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_canine_11_23.wrl"}))
    .addComments(" l_caninec.x3d l_caniner.x3d ")
    .addChild(new Inline("tooth_premolar_12_24").setUrl(new String[] {"tooth_premolar_12_24.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_premolar_12_24.x3d","tooth_premolar_12_24.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_premolar_12_24.wrl"}))
    .addComments(" lpreol1c.x3d lpreol1r.x3d ")
    .addChild(new Inline("tooth_premolar_13_25").setUrl(new String[] {"tooth_premolar_13_25.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_premolar_13_25.x3d","tooth_premolar_13_25.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_premolar_13_25.wrl"}))
    .addComments(" lpreol2c.x3d lpreol2r.x3d ")
    .addChild(new Inline("tooth_molar_14_26").setUrl(new String[] {"tooth_molar_14_26.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_molar_14_26.x3d","tooth_molar_14_26.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_molar_14_26.wrl"}))
    .addComments(" l_molar1c.3xd l_molar1r.3xd ")
    .addChild(new Inline("tooth_molar_15_27").setUrl(new String[] {"tooth_molar_15_27.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_molar_15_27.x3d","tooth_molar_15_27.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_molar_15_27.wrl"}))
    .addComments(" l_molar2c.3xd l_molar2r.3xd ")
    .addChild(new Inline("tooth_molar_16_28").setUrl(new String[] {"tooth_molar_16_28.x3d","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_molar_16_28.x3d","tooth_molar_16_28.wrl","https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/tooth_molar_16_28.wrl"}))
    .addComments(" l_molar3c.x3d l_molar3r.x3d "));
            }
            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 skull 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 skull().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: \"HumanoidAnimation.Bones.skull\" 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("HumanoidAnimation.Bones.skull self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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