package Savage.Buildings.HouseBarisAktop;

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.Interpolation.*;
import org.web3d.x3d.jsail.Navigation.*;
import org.web3d.x3d.jsail.Networking.*;
import org.web3d.x3d.jsail.PointingDeviceSensor.*;
import org.web3d.x3d.jsail.Shape.*;
import org.web3d.x3d.jsail.Sound.*;
import org.web3d.x3d.jsail.Texturing.*;
import org.web3d.x3d.jsail.Time.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> A house model with basic furniture, appliances and and animated doors. </p>
 <p> Related links: Catalog page <a href="../../../../Buildings/HouseBarisAktop/HouseIndex.html" target="_blank">House</a>,  source <a href="../../../../Buildings/HouseBarisAktop/House.java">House.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="../../../../Buildings/HouseBarisAktop/House.x3d">House.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> A house model with basic furniture, appliances and and animated doors. </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 20 July 2002 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 7 April 2024 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Baris Aktop </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> rights </i> </td>
			<td> All sound effects can be used in any school project </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Sound </i> </td>
			<td> <a href="../../../../Buildings/HouseBarisAktop/waterflow.wav">waterflow.wav</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Sound </i> </td>
			<td> <a href="../../../../Buildings/HouseBarisAktop/doorbell.wav">doorbell.wav</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Sound </i> </td>
			<td> <a href="../../../../Buildings/HouseBarisAktop/toiletflush.wav">toiletflush.wav</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="http://www.a1freesoundeffects.com/household.html" target="_blank">http://www.a1freesoundeffects.com/household.html</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> subject </i> </td>
			<td> house </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/Buildings/HouseBarisAktop/House.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/House.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> license </i> </td>
			<td> <a href="../../../../Buildings/HouseBarisAktop/../../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 Baris Aktop
 */

public class House
{
	/** Default constructor to create this object. */
	public House ()
	{
	  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_0)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("House.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("A house model with basic furniture, appliances and and animated doors."))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("20 July 2002"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("7 April 2024"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Baris Aktop"))
    .addMeta(new meta().setName(meta.NAME_RIGHTS     ).setContent("All sound effects can be used in any school project"))
    .addMeta(new meta().setName(meta.NAME_SOUND      ).setContent("waterflow.wav"))
    .addMeta(new meta().setName(meta.NAME_SOUND      ).setContent("doorbell.wav"))
    .addMeta(new meta().setName(meta.NAME_SOUND      ).setContent("toiletflush.wav"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("http://www.a1freesoundeffects.com/household.html"))
    .addMeta(new meta().setName(meta.NAME_SUBJECT    ).setContent("house"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/House.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_LICENSE    ).setContent("../../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("House.x3d"))
    .addChild(new Group("front")
      .addChild(new Transform("wall1").setTranslation(-3.75,2.0,0.0)
        .addChild(new Shape("part1")
          .setGeometry(new Box().setSize(1.5,4.0,0.1))
          .setAppearance(new Appearance("wall_ap")
            .setMaterial(new Material().setDiffuseColor(0.8,0.8,0.4)))))
      .addChild(new Transform("wall11").setTranslation(-1.25,2.0,0.0)
        .addChild(new Shape("part11")
          .setGeometry(new Box().setSize(1.5,4.0,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap"))))
      .addChild(new Transform("wall12").setTranslation(-2.5,3.0,0.0)
        .addChild(new Shape("part12")
          .setGeometry(new Box().setSize(1.0,2.0,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap"))))
      .addChild(new Transform("wall13").setTranslation(-2.5,0.5,0.0)
        .addChild(new Shape("part13")
          .setGeometry(new Box().setSize(1.0,1.0,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap"))))
      .addChild(new Transform("WINDOW2").setTranslation(-2.5,1.5,0.05)
        .addChild(new Shape("window2")
          .setGeometry(new Box().setSize(1.0,1.0,0.075))
          .setAppearance(new Appearance("windowApp")
            .setMaterial(new Material().setDiffuseColor(0.7,0.9,0.9).setTransparency(0.5))))
        .addChild(new Transform().setTranslation(0.4,0.0,-0.1)
          .addChild(new Shape("window2knubopen")
            .setGeometry(new Sphere("window2Knub").setRadius(0.05))
            .setAppearance(new Appearance()
              .setMaterial(new Material()))))
        .addChild(new PlaneSensor("window2Slide").setDescription("click and drag to move window").setMaxPosition(-2.5,1.5).setMinPosition(-3.0,1.5))
        .addChild(new ROUTE().setFromNode("window2Slide").setFromField("translation_changed").setToNode("WINDOW2").setToField("set_translation")))
      .addChild(new Transform("WINDOW1").setTranslation(2.5,1.5,0.05)
        .addChild(new Shape("window1")
          .setGeometry(new Box().setSize(1.0,1.0,0.075))
          .setAppearance(new Appearance().setUSE("windowApp")))
        .addChild(new Transform().setTranslation(-0.4,0.0,-0.1)
          .addChild(new Shape("window1knubopen")
            .setGeometry(new Sphere("window1Knub").setRadius(0.05))
            .setAppearance(new Appearance()
              .setMaterial(new Material()))))
        .addChild(new PlaneSensor("windowSlide").setDescription("click and drag to move window").setMaxPosition(3.0,1.5).setMinPosition(2.5,1.5))
        .addChild(new ROUTE().setFromNode("windowSlide").setFromField("translation_changed").setToNode("WINDOW1").setToField("set_translation")))
      .addChild(new Transform("wall2").setTranslation(1.25,2.0,0.0)
        .addChild(new Shape("part21")
          .setGeometry(new Box().setSize(1.5,4.0,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap"))))
      .addChild(new Transform("wall3").setTranslation(0.0,3.0,0.0)
        .addChild(new Shape("part3")
          .setGeometry(new Box().setSize(1.0,2.0,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap"))))
      .addChild(new Transform("wall31").setTranslation(3.75,2.0,0.0)
        .addChild(new Shape("part31")
          .setGeometry(new Box().setSize(1.5,4.0,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap"))))
      .addChild(new Transform("wall32").setTranslation(2.5,3.0,0.0)
        .addChild(new Shape("part32")
          .setGeometry(new Box().setSize(1.0,2.0,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap"))))
      .addChild(new Transform("wall33").setTranslation(2.5,0.5,0.0)
        .addChild(new Shape("part33")
          .setGeometry(new Box().setSize(1.0,1.0,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap"))))
      .addChild(new Transform("DOOR").setCenter(0.5,0.0,0.0).setTranslation(0.0,1.0,0.0)
        .addChild(new Shape("door")
          .setGeometry(new Box().setSize(1.0,2.0,0.1))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(0.8,0.5,0.0))
            .setTexture(new ImageTexture("wood").setUrl(new String[] {"wood.jpg","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/wood.jpg"}))))
        .addChild(new Transform().setTranslation(-0.4,0.0,0.05)
          .addChild(new Shape("knubOut")
            .setGeometry(new Sphere("doorKnub").setRadius(0.05))
            .setAppearance(new Appearance("knub_ap")
              .setMaterial(new Material())))
          .addChild(new TimeSensor("Clock").setCycleInterval(3))
          .addChild(new OrientationInterpolator("doorPathOpen").setKey(new double[] {0.0,0.34,0.68,1.0}).setKeyValue(new MFRotation(new double[] {0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.7,0.0,1.0,0.0,1.4,0.0,1.0,0.0,2.1})))
          .addChild(new TouchSensor("touchOpen").setDescription("touch to open"))
          .addChild(new ROUTE().setFromNode("touchOpen").setFromField("touchTime").setToNode("Clock").setToField("set_startTime"))
          .addChild(new ROUTE().setFromNode("Clock").setFromField("fraction_changed").setToNode("doorPathOpen").setToField("set_fraction"))
          .addChild(new ROUTE().setFromNode("doorPathOpen").setFromField("value_changed").setToNode("DOOR").setToField("set_rotation")))
        .addChild(new Transform().setTranslation(-0.4,0.0,-0.05)
          .addChild(new Shape().setUSE("knubOut"))
          .addChild(new TimeSensor("ClockClose").setCycleInterval(2))
          .addChild(new OrientationInterpolator("doorPathClose").setKey(new double[] {0.0,0.34,0.68,1.0}).setKeyValue(new MFRotation(new double[] {0.0,1.0,0.0,2.1,0.0,1.0,0.0,1.4,0.0,1.0,0.0,0.7,0.0,1.0,0.0,0.0})))
          .addChild(new TouchSensor("touchClose").setDescription("touch to close"))
          .addChild(new ROUTE().setFromNode("touchClose").setFromField("touchTime").setToNode("ClockClose").setToField("set_startTime"))
          .addChild(new ROUTE().setFromNode("ClockClose").setFromField("fraction_changed").setToNode("doorPathClose").setToField("set_fraction"))
          .addChild(new ROUTE().setFromNode("doorPathClose").setFromField("value_changed").setToNode("DOOR").setToField("set_rotation"))))
      .addChild(new Transform().setTranslation(-0.75,1.5,0.1)
        .addChild(new Shape()
          .setGeometry(new Sphere().setRadius(0.05))
          .setAppearance(new Appearance("bellap")
            .setMaterial(new Material().setDiffuseColor(0.9,0.9,0.9))))
        .addChild(new Shape()
          .setGeometry(new Box().setSize(0.2,0.15,0.05))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(0.5,0.5,0.5))))
        .addChild(new Sound().setMaxBack(30).setMaxFront(30).setMinBack(10).setMinFront(10)
          .setSource(new AudioClip("doorbell").setDescription("Door bell").setUrl(new String[] {"doorbell.wav","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/doorbell.wav"})))
        .addChild(new TouchSensor("bell").setDescription("touch to ring doorbell"))
        .addChild(new ROUTE().setFromNode("bell").setFromField("touchTime").setToNode("doorbell").setToField("set_startTime"))))
    .addChild(new Group("rightside")
      .addChild(new Transform("rightsidewall1").setRotation(0.0,1.0,0.0,1.57).setTranslation(4.5,2.0,-0.75)
        .addChild(new Shape().setUSE("part1")))
      .addChild(new Transform("rightsidewall11").setRotation(0.0,1.0,0.0,1.57).setTranslation(4.5,3.0,-2.0)
        .addChild(new Shape().setUSE("part12")))
      .addChild(new Transform("rightsidewall12").setRotation(0.0,1.0,0.0,1.57).setTranslation(4.5,0.5,-2.0)
        .addChild(new Shape().setUSE("part13")))
      .addChild(new Transform("rightWindow1").setRotation(0.0,1.0,0.0,1.57).setTranslation(4.55,1.5,-2.0)
        .addChild(new Shape("rightWindowOne")
          .setGeometry(new Box().setSize(1.0,1.0,0.075))
          .setAppearance(new Appearance().setUSE("windowApp"))))
      .addChild(new Transform().setTranslation(4.4,1.7,-1.4)
        .addChild(new Shape("rightWindow1KnubOpen")
          .setGeometry(new Sphere("rightWindow1Knub").setRadius(0.05))
          .setAppearance(new Appearance()
            .setMaterial(new Material())))
        .addChild(new TimeSensor("rightWindow1Clock"))
        .addChild(new PositionInterpolator("rightWindow1Pos").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFVec3f(new double[] {4.55,1.5,-2.0,4.55,1.5,-2.25,4.55,1.5,-2.5})))
        .addChild(new TouchSensor("rightWindow1Open").setDescription("touch to open"))
        .addChild(new ROUTE().setFromNode("rightWindow1Open").setFromField("touchTime").setToNode("rightWindow1Clock").setToField("set_startTime"))
        .addChild(new ROUTE().setFromNode("rightWindow1Clock").setFromField("fraction_changed").setToNode("rightWindow1Pos").setToField("set_fraction"))
        .addChild(new ROUTE().setFromNode("rightWindow1Pos").setFromField("value_changed").setToNode("rightWindow1").setToField("set_translation")))
      .addChild(new Transform().setTranslation(4.4,1.3,-1.4)
        .addChild(new Shape("rightWindow1KnubClose")
          .setGeometry(new Sphere("rightWindow1Knub2").setRadius(0.05))
          .setAppearance(new Appearance()
            .setMaterial(new Material())))
        .addChild(new TimeSensor("rightWindow1Clock2"))
        .addChild(new PositionInterpolator("rightWindow1Pos2").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFVec3f(new double[] {4.55,1.5,-2.5,4.55,1.5,-2.25,4.55,1.5,-2.0})))
        .addChild(new TouchSensor("rightWindow1Close").setDescription("touch to close"))
        .addChild(new ROUTE().setFromNode("rightWindow1Close").setFromField("touchTime").setToNode("rightWindow1Clock2").setToField("set_startTime"))
        .addChild(new ROUTE().setFromNode("rightWindow1Clock2").setFromField("fraction_changed").setToNode("rightWindow1Pos2").setToField("set_fraction"))
        .addChild(new ROUTE().setFromNode("rightWindow1Pos2").setFromField("value_changed").setToNode("rightWindow1").setToField("set_translation")))
      .addChild(new Transform("rightsidewall2").setRotation(0.0,1.0,0.0,1.57).setTranslation(4.5,2.0,-3.25)
        .addChild(new Shape().setUSE("part1")))
      .addChild(new Transform("rightsidewall21").setRotation(0.0,1.0,0.0,1.57).setTranslation(4.5,3.0,-4.5)
        .addChild(new Shape().setUSE("part12")))
      .addChild(new Transform("rightsidewall22").setRotation(0.0,1.0,0.0,1.57).setTranslation(4.5,0.5,-4.5)
        .addChild(new Shape().setUSE("part13")))
      .addChild(new Transform("rightWindow2").setRotation(0.0,1.0,0.0,1.57).setTranslation(4.55,1.5,-4.5)
        .addChild(new Shape("rightWindowTwo")
          .setGeometry(new Box().setSize(1.0,1.0,0.075))
          .setAppearance(new Appearance().setUSE("windowApp"))))
      .addChild(new Transform().setTranslation(4.4,1.7,-3.9)
        .addChild(new Shape("rightWindow2KnubOpen")
          .setGeometry(new Sphere("rightWindow2Knub").setRadius(0.05))
          .setAppearance(new Appearance()
            .setMaterial(new Material())))
        .addChild(new TimeSensor("rightWindow2Clock"))
        .addChild(new PositionInterpolator("rightWindow2Pos").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFVec3f(new double[] {4.55,1.5,-4.5,4.55,1.5,-4.75,4.55,1.5,-5.0})))
        .addChild(new TouchSensor("rightWindow2Open").setDescription("touch to open"))
        .addChild(new ROUTE().setFromNode("rightWindow2Open").setFromField("touchTime").setToNode("rightWindow2Clock").setToField("set_startTime"))
        .addChild(new ROUTE().setFromNode("rightWindow2Clock").setFromField("fraction_changed").setToNode("rightWindow2Pos").setToField("set_fraction"))
        .addChild(new ROUTE().setFromNode("rightWindow2Pos").setFromField("value_changed").setToNode("rightWindow2").setToField("set_translation")))
      .addChild(new Transform().setTranslation(4.4,1.3,-3.9)
        .addChild(new Shape("rightWindow2KnubClose")
          .setGeometry(new Sphere("rightWindow2Knub2").setRadius(0.05))
          .setAppearance(new Appearance()
            .setMaterial(new Material())))
        .addChild(new TimeSensor("rightWindow2Clock2"))
        .addChild(new PositionInterpolator("rightWindow2Pos2").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFVec3f(new double[] {4.55,1.5,-5.0,4.55,1.5,-4.75,4.55,1.5,-4.5})))
        .addChild(new TouchSensor("rightWindow2Close").setDescription("touch to close"))
        .addChild(new ROUTE().setFromNode("rightWindow2Close").setFromField("touchTime").setToNode("rightWindow2Clock2").setToField("set_startTime"))
        .addChild(new ROUTE().setFromNode("rightWindow2Clock2").setFromField("fraction_changed").setToNode("rightWindow2Pos2").setToField("set_fraction"))
        .addChild(new ROUTE().setFromNode("rightWindow2Pos2").setFromField("value_changed").setToNode("rightWindow2").setToField("set_translation")))
      .addChild(new Transform("rightsidewall3").setRotation(0.0,1.0,0.0,1.57).setTranslation(4.5,2.0,-5.75)
        .addChild(new Shape().setUSE("part1")))
      .addChild(new Transform("rightsidewall31").setRotation(0.0,1.0,0.0,1.57).setTranslation(4.5,3.0,-7.0)
        .addChild(new Shape().setUSE("part12")))
      .addChild(new Transform("rightsidewall23").setRotation(0.0,1.0,0.0,1.57).setTranslation(4.5,0.5,-7.0)
        .addChild(new Shape().setUSE("part13")))
      .addChild(new Transform("rightWindow3").setRotation(0.0,1.0,0.0,1.57).setTranslation(4.5,1.5,-7.0)
        .addChild(new Shape("rightWindowThree")
          .setGeometry(new Box().setSize(1.03,1.03,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap"))))
      .addChild(new Transform("rightsidewall4").setRotation(0.0,1.0,0.0,1.57).setTranslation(4.5,2.0,-8.25)
        .addChild(new Shape().setUSE("part1"))))
    .addChild(new Group("leftside")
      .addChild(new Transform("leftsidewall1").setRotation(0.0,1.0,0.0,1.57).setTranslation(-4.5,2.0,-0.75)
        .addChild(new Shape().setUSE("part1")))
      .addChild(new Transform("leftsidewall11").setRotation(0.0,1.0,0.0,1.57).setTranslation(-4.5,3.0,-2.0)
        .addChild(new Shape().setUSE("part12")))
      .addChild(new Transform("leftsidewall12").setRotation(0.0,1.0,0.0,1.57).setTranslation(-4.5,0.5,-2.0)
        .addChild(new Shape().setUSE("part13")))
      .addChild(new Transform("leftWindow1").setRotation(0.0,1.0,0.0,1.57).setTranslation(-4.55,1.5,-2.0)
        .addChild(new Shape("leftWindowOne")
          .setGeometry(new Box().setSize(1.0,1.0,0.075))
          .setAppearance(new Appearance().setUSE("windowApp"))))
      .addChild(new Transform().setTranslation(-4.4,1.7,-1.4)
        .addChild(new Shape("leftWindow1KnubOpen")
          .setGeometry(new Sphere("leftWindow1Knub").setRadius(0.05))
          .setAppearance(new Appearance()
            .setMaterial(new Material())))
        .addChild(new TimeSensor("leftWindow1Clock"))
        .addChild(new PositionInterpolator("leftWindow1Pos").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFVec3f(new double[] {-4.55,1.5,-2.0,-4.55,1.5,-2.25,-4.55,1.5,-2.5})))
        .addChild(new TouchSensor("leftWindow1Open").setDescription("touch to open"))
        .addChild(new ROUTE().setFromNode("leftWindow1Open").setFromField("touchTime").setToNode("leftWindow1Clock").setToField("set_startTime"))
        .addChild(new ROUTE().setFromNode("leftWindow1Clock").setFromField("fraction_changed").setToNode("leftWindow1Pos").setToField("set_fraction"))
        .addChild(new ROUTE().setFromNode("leftWindow1Pos").setFromField("value_changed").setToNode("leftWindow1").setToField("set_translation")))
      .addChild(new Transform().setTranslation(-4.4,1.3,-1.4)
        .addChild(new Shape("leftWindow1KnubClose")
          .setGeometry(new Sphere("leftWindow1Knub2").setRadius(0.05))
          .setAppearance(new Appearance()
            .setMaterial(new Material())))
        .addChild(new TimeSensor("leftWindow1Clock2"))
        .addChild(new PositionInterpolator("leftWindow1Pos2").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFVec3f(new double[] {-4.55,1.5,-2.5,-4.55,1.5,-2.25,-4.55,1.5,-2.0})))
        .addChild(new TouchSensor("leftWindow1Close").setDescription("touch to close"))
        .addChild(new ROUTE().setFromNode("leftWindow1Close").setFromField("touchTime").setToNode("leftWindow1Clock2").setToField("set_startTime"))
        .addChild(new ROUTE().setFromNode("leftWindow1Clock2").setFromField("fraction_changed").setToNode("leftWindow1Pos2").setToField("set_fraction"))
        .addChild(new ROUTE().setFromNode("leftWindow1Pos2").setFromField("value_changed").setToNode("leftWindow1").setToField("set_translation")))
      .addChild(new Transform("leftsidewall2").setRotation(0.0,1.0,0.0,1.57).setTranslation(-4.5,2.0,-3.25)
        .addChild(new Shape().setUSE("part1")))
      .addChild(new Transform("leftsidewall21").setRotation(0.0,1.0,0.0,1.57).setTranslation(-4.5,3.0,-4.5)
        .addChild(new Shape().setUSE("part12")))
      .addChild(new Transform("leftsidewall22").setRotation(0.0,1.0,0.0,1.57).setTranslation(-4.5,0.5,-4.5)
        .addChild(new Shape().setUSE("part13")))
      .addChild(new Transform("leftWindow2").setRotation(0.0,1.0,0.0,1.57).setTranslation(-4.55,1.5,-4.5)
        .addChild(new Shape("leftWindowTwo")
          .setGeometry(new Box().setSize(1.0,1.0,0.075))
          .setAppearance(new Appearance().setUSE("windowApp"))))
      .addChild(new Transform().setTranslation(-4.4,1.7,-3.9)
        .addChild(new Shape("leftWindow2KnubOpen")
          .setGeometry(new Sphere("leftWindow2Knub").setRadius(0.05))
          .setAppearance(new Appearance()
            .setMaterial(new Material())))
        .addChild(new TimeSensor("leftWindow2Clock"))
        .addChild(new PositionInterpolator("leftWindow2Pos").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFVec3f(new double[] {-4.55,1.5,-4.5,-4.55,1.5,-4.75,-4.55,1.5,-5.0})))
        .addChild(new TouchSensor("leftWindow2Open").setDescription("touch to open"))
        .addChild(new ROUTE().setFromNode("leftWindow2Open").setFromField("touchTime").setToNode("leftWindow2Clock").setToField("set_startTime"))
        .addChild(new ROUTE().setFromNode("leftWindow2Clock").setFromField("fraction_changed").setToNode("leftWindow2Pos").setToField("set_fraction"))
        .addChild(new ROUTE().setFromNode("leftWindow2Pos").setFromField("value_changed").setToNode("leftWindow2").setToField("set_translation")))
      .addChild(new Transform().setTranslation(-4.4,1.3,-3.9)
        .addChild(new Shape("leftWindow2KnubClose")
          .setGeometry(new Sphere("leftWindow2Knub2").setRadius(0.05))
          .setAppearance(new Appearance()
            .setMaterial(new Material())))
        .addChild(new TimeSensor("leftWindow2Clock2"))
        .addChild(new PositionInterpolator("leftWindow2Pos2").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFVec3f(new double[] {-4.55,1.5,-5.0,-4.55,1.5,-4.75,-4.55,1.5,-4.5})))
        .addChild(new TouchSensor("leftWindow2Close").setDescription("touch to close"))
        .addChild(new ROUTE().setFromNode("leftWindow2Close").setFromField("touchTime").setToNode("leftWindow2Clock2").setToField("set_startTime"))
        .addChild(new ROUTE().setFromNode("leftWindow2Clock2").setFromField("fraction_changed").setToNode("leftWindow2Pos2").setToField("set_fraction"))
        .addChild(new ROUTE().setFromNode("leftWindow2Pos2").setFromField("value_changed").setToNode("leftWindow2").setToField("set_translation")))
      .addChild(new Transform("leftsidewall3").setRotation(0.0,1.0,0.0,1.57).setTranslation(-4.5,2.0,-5.75)
        .addChild(new Shape().setUSE("part1")))
      .addChild(new Transform("leftsidewall31").setRotation(0.0,1.0,0.0,1.57).setTranslation(-4.5,3.0,-7.0)
        .addChild(new Shape().setUSE("part12")))
      .addChild(new Transform("leftsidewall32").setRotation(0.0,1.0,0.0,1.57).setTranslation(-4.5,0.5,-7.0)
        .addChild(new Shape().setUSE("part13")))
      .addChild(new Transform("leftWindow3").setRotation(0.0,1.0,0.0,1.57).setTranslation(-4.55,1.5,-7.0)
        .addChild(new Shape("leftWindowThree")
          .setGeometry(new Box().setSize(1.0,1.0,0.075))
          .setAppearance(new Appearance().setUSE("windowApp"))))
      .addChild(new Transform().setTranslation(-4.4,1.7,-6.4)
        .addChild(new Shape("leftWindow3KnubOpen")
          .setGeometry(new Sphere("leftWindow3Knub").setRadius(0.05))
          .setAppearance(new Appearance()
            .setMaterial(new Material())))
        .addChild(new TimeSensor("leftWindow3Clock"))
        .addChild(new PositionInterpolator("leftWindow3Pos").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFVec3f(new double[] {-4.55,1.5,-7.0,-4.55,1.5,-7.25,-4.55,1.5,-7.5})))
        .addChild(new TouchSensor("leftWindow3Open").setDescription("touch to open"))
        .addChild(new ROUTE().setFromNode("leftWindow3Open").setFromField("touchTime").setToNode("leftWindow3Clock").setToField("set_startTime"))
        .addChild(new ROUTE().setFromNode("leftWindow3Clock").setFromField("fraction_changed").setToNode("leftWindow3Pos").setToField("set_fraction"))
        .addChild(new ROUTE().setFromNode("leftWindow3Pos").setFromField("value_changed").setToNode("leftWindow3").setToField("set_translation")))
      .addChild(new Transform().setTranslation(-4.4,1.3,-6.4)
        .addChild(new Shape("leftWindow3KnubClose")
          .setGeometry(new Sphere("leftWindow3Knub2").setRadius(0.05))
          .setAppearance(new Appearance()
            .setMaterial(new Material())))
        .addChild(new TimeSensor("leftWindow3Clock2"))
        .addChild(new PositionInterpolator("leftWindow3Pos2").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFVec3f(new double[] {-4.55,1.5,-7.5,-4.55,1.5,-7.25,-4.55,1.5,-7.0})))
        .addChild(new TouchSensor("leftWindow3Close").setDescription("touch to close"))
        .addChild(new ROUTE().setFromNode("leftWindow3Close").setFromField("touchTime").setToNode("leftWindow3Clock2").setToField("set_startTime"))
        .addChild(new ROUTE().setFromNode("leftWindow3Clock2").setFromField("fraction_changed").setToNode("leftWindow3Pos2").setToField("set_fraction"))
        .addChild(new ROUTE().setFromNode("leftWindow3Pos2").setFromField("value_changed").setToNode("leftWindow3").setToField("set_translation")))
      .addChild(new Transform("leftsidewall4").setRotation(0.0,1.0,0.0,1.57).setTranslation(-4.5,2.0,-8.25)
        .addChild(new Shape().setUSE("part1"))))
    .addChild(new Group("backside")
      .addChild(new Transform("backsidewall1").setTranslation(-3.75,2.0,-9.0)
        .addChild(new Shape().setUSE("part1")))
      .addChild(new Transform("backsidewall12").setTranslation(-2.5,3.0,-9.0)
        .addChild(new Shape().setUSE("part12")))
      .addChild(new Transform("backsidewall13").setTranslation(-2.5,0.5,-9.0)
        .addChild(new Shape().setUSE("part13")))
      .addChild(new Transform("backsidewall2").setTranslation(-1.25,2.0,-9.0)
        .addChild(new Shape().setUSE("part1")))
      .addChild(new Transform("backsidewall3").setTranslation(0.0,3.0,-9.0)
        .addChild(new Shape().setUSE("part3")))
      .addChild(new Transform("backDoor").setCenter(-0.5,0.0,0.0).setTranslation(0.0,1.0,-9.0)
        .addChild(new Shape().setUSE("door"))
        .addChild(new Transform().setTranslation(0.4,0.0,-0.05)
          .addChild(new Shape("backDoorknubOut")
            .setGeometry(new Sphere("backDoorKnub").setRadius(0.05))
            .setAppearance(new Appearance().setUSE("knub_ap")))
          .addChild(new TimeSensor("backDoorClock").setCycleInterval(3))
          .addChild(new OrientationInterpolator("backDoorPathOpen").setKey(new double[] {0.0,0.34,0.68,1.0}).setKeyValue(new MFRotation(new double[] {0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.7,0.0,1.0,0.0,1.4,0.0,1.0,0.0,2.1})))
          .addChild(new TouchSensor("backDoorTouchOpen").setDescription("touch to open"))
          .addChild(new ROUTE().setFromNode("backDoorTouchOpen").setFromField("touchTime").setToNode("backDoorClock").setToField("set_startTime"))
          .addChild(new ROUTE().setFromNode("backDoorClock").setFromField("fraction_changed").setToNode("backDoorPathOpen").setToField("set_fraction"))
          .addChild(new ROUTE().setFromNode("backDoorPathOpen").setFromField("value_changed").setToNode("backDoor").setToField("set_rotation")))
        .addChild(new Transform().setTranslation(0.4,0.0,0.05)
          .addChild(new Shape().setUSE("knubOut"))
          .addChild(new TimeSensor("backDoorClockClose").setCycleInterval(2))
          .addChild(new OrientationInterpolator("backDoorPathClose").setKey(new double[] {0.0,0.34,0.68,1.0}).setKeyValue(new MFRotation(new double[] {0.0,1.0,0.0,2.1,0.0,1.0,0.0,1.4,0.0,1.0,0.0,0.7,0.0,1.0,0.0,0.0})))
          .addChild(new TouchSensor("backDoorTouchClose").setDescription("touch to close"))
          .addChild(new ROUTE().setFromNode("backDoorTouchClose").setFromField("touchTime").setToNode("backDoorClockClose").setToField("set_startTime"))
          .addChild(new ROUTE().setFromNode("backDoorClockClose").setFromField("fraction_changed").setToNode("backDoorPathClose").setToField("set_fraction"))
          .addChild(new ROUTE().setFromNode("backDoorPathClose").setFromField("value_changed").setToNode("backDoor").setToField("set_rotation"))))
      .addChild(new Transform("backsidewall4").setTranslation(1.75,2.0,-9.0)
        .addChild(new Shape()
          .setGeometry(new Box().setSize(2.5,4.0,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap"))))
      .addChild(new Transform("backwall41").setTranslation(3.25,0.75,-9.0)
        .addChild(new Shape()
          .setGeometry(new Box().setSize(0.5,1.5,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap"))))
      .addChild(new Transform("backwall42").setTranslation(3.25,3.0,-9.0)
        .addChild(new Shape()
          .setGeometry(new Box().setSize(0.5,2.0,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap"))))
      .addChild(new Transform("backwall5").setTranslation(4.0,2.0,-9.0)
        .addChild(new Shape()
          .setGeometry(new Box().setSize(1.0,4.0,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap"))))
      .addChild(new Transform("backsideWindow1").setTranslation(-2.5,1.5,-9.05)
        .addChild(new Shape("backWindow1")
          .setGeometry(new Box().setSize(1.0,1.0,0.075))
          .setAppearance(new Appearance().setUSE("windowApp"))))
      .addChild(new Transform().setTranslation(-1.9,1.7,-8.9)
        .addChild(new Shape("backWindow1KnubOpen")
          .setGeometry(new Sphere("backWindow1Knub").setRadius(0.05))
          .setAppearance(new Appearance()
            .setMaterial(new Material())))
        .addChild(new TimeSensor("backWindow1Clock"))
        .addChild(new PositionInterpolator("backWindow1Pos").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFVec3f(new double[] {-2.5,1.5,-9.05,-2.75,1.5,-9.05,-3.0,1.5,-9.05})))
        .addChild(new TouchSensor("backWindow1Open").setDescription("touch to open"))
        .addChild(new ROUTE().setFromNode("backWindow1Open").setFromField("touchTime").setToNode("backWindow1Clock").setToField("set_startTime"))
        .addChild(new ROUTE().setFromNode("backWindow1Clock").setFromField("fraction_changed").setToNode("backWindow1Pos").setToField("set_fraction"))
        .addChild(new ROUTE().setFromNode("backWindow1Pos").setFromField("value_changed").setToNode("backsideWindow1").setToField("set_translation")))
      .addChild(new Transform().setTranslation(-1.9,1.3,-8.9)
        .addChild(new Shape("backWindow1KnubClose")
          .setGeometry(new Sphere("backWindow1Knub2").setRadius(0.05))
          .setAppearance(new Appearance()
            .setMaterial(new Material())))
        .addChild(new TimeSensor("backWindow1Clock2"))
        .addChild(new PositionInterpolator("backWindow1Pos2").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFVec3f(new double[] {-3.0,1.5,-9.05,-2.75,1.5,-9.05,-2.5,1.5,-9.05})))
        .addChild(new TouchSensor("backWindow1Close").setDescription("touch to close"))
        .addChild(new ROUTE().setFromNode("backWindow1Close").setFromField("touchTime").setToNode("backWindow1Clock2").setToField("set_startTime"))
        .addChild(new ROUTE().setFromNode("backWindow1Clock2").setFromField("fraction_changed").setToNode("backWindow1Pos2").setToField("set_fraction"))
        .addChild(new ROUTE().setFromNode("backWindow1Pos2").setFromField("value_changed").setToNode("backsideWindow1").setToField("set_translation")))
      .addChild(new Transform("backsideWindow2").setTranslation(3.25,1.75,-9.05)
        .addChild(new Shape("backWindow2")
          .setGeometry(new Box().setSize(0.5,0.5,0.075))
          .setAppearance(new Appearance().setUSE("windowApp"))))
      .addChild(new Transform().setTranslation(3.6,1.9,-8.9)
        .addChild(new Shape("backWindow2KnubOpen")
          .setGeometry(new Sphere("backWindow2Knub").setRadius(0.05))
          .setAppearance(new Appearance()
            .setMaterial(new Material())))
        .addChild(new TimeSensor("backWindow2Clock"))
        .addChild(new PositionInterpolator("backWindow2Pos").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFVec3f(new double[] {3.25,1.75,-9.05,3.125,1.75,-9.05,3.0,1.75,-9.05})))
        .addChild(new TouchSensor("backWindow2Open").setDescription("touch to open"))
        .addChild(new ROUTE().setFromNode("backWindow2Open").setFromField("touchTime").setToNode("backWindow2Clock").setToField("set_startTime"))
        .addChild(new ROUTE().setFromNode("backWindow2Clock").setFromField("fraction_changed").setToNode("backWindow2Pos").setToField("set_fraction"))
        .addChild(new ROUTE().setFromNode("backWindow2Pos").setFromField("value_changed").setToNode("backsideWindow2").setToField("set_translation")))
      .addChild(new Transform().setTranslation(3.6,1.6,-8.9)
        .addChild(new Shape("backWindow2KnubClose")
          .setGeometry(new Sphere("backWindow2Knub2").setRadius(0.05))
          .setAppearance(new Appearance()
            .setMaterial(new Material())))
        .addChild(new TimeSensor("backWindow2Clock2"))
        .addChild(new PositionInterpolator("backWindow2Pos2").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFVec3f(new double[] {3.0,1.75,-9.05,3.125,1.75,-9.05,3.25,1.75,-9.05})))
        .addChild(new TouchSensor("backWindow2Close").setDescription("touch to close"))
        .addChild(new ROUTE().setFromNode("backWindow2Close").setFromField("touchTime").setToNode("backWindow2Clock2").setToField("set_startTime"))
        .addChild(new ROUTE().setFromNode("backWindow2Clock2").setFromField("fraction_changed").setToNode("backWindow2Pos2").setToField("set_fraction"))
        .addChild(new ROUTE().setFromNode("backWindow2Pos2").setFromField("value_changed").setToNode("backsideWindow2").setToField("set_translation")))
      .addChild(new Transform("bathroomDoor").setCenter(-0.5,0.0,0.0).setRotation(0.0,1.0,0.0,1.57).setTranslation(1.5,1.0,-6.75)
        .addChild(new Shape().setUSE("door"))
        .addChild(new Transform().setTranslation(0.4,0.0,-0.05)
          .addChild(new Shape("bathroomDoorknubOut")
            .setGeometry(new Sphere("bathroomDoorKnub").setRadius(0.05))
            .setAppearance(new Appearance().setUSE("knub_ap")))
          .addChild(new TimeSensor("bathroomDoorClock").setCycleInterval(3))
          .addChild(new OrientationInterpolator("bathroomDoorPathOpen").setKey(new double[] {0.0,0.34,0.68,1.0}).setKeyValue(new MFRotation(new double[] {0.0,1.0,0.0,1.57,0.0,1.0,0.0,2.2,0.0,1.0,0.0,2.9,0.0,1.0,0.0,3.25})))
          .addChild(new TouchSensor("bathroomDoorTouchOpen").setDescription("touch to open"))
          .addChild(new ROUTE().setFromNode("bathroomDoorTouchOpen").setFromField("touchTime").setToNode("bathroomDoorClock").setToField("set_startTime"))
          .addChild(new ROUTE().setFromNode("bathroomDoorClock").setFromField("fraction_changed").setToNode("bathroomDoorPathOpen").setToField("set_fraction"))
          .addChild(new ROUTE().setFromNode("bathroomDoorPathOpen").setFromField("value_changed").setToNode("bathroomDoor").setToField("set_rotation")))
        .addChild(new Transform().setTranslation(0.4,0.0,0.05)
          .addChild(new Shape().setUSE("knubOut"))
          .addChild(new TimeSensor("bathroomDoorClockClose").setCycleInterval(2))
          .addChild(new OrientationInterpolator("bathroomDoorPathClose").setKey(new double[] {0.0,0.34,0.68,1.0}).setKeyValue(new MFRotation(new double[] {0.0,1.0,0.0,3.25,0.0,1.0,0.0,2.9,0.0,1.0,0.0,2.2,0.0,1.0,0.0,1.57})))
          .addChild(new TouchSensor("bathroomDoorTouchClose").setDescription("touch to close"))
          .addChild(new ROUTE().setFromNode("bathroomDoorTouchClose").setFromField("touchTime").setToNode("bathroomDoorClockClose").setToField("set_startTime"))
          .addChild(new ROUTE().setFromNode("bathroomDoorClockClose").setFromField("fraction_changed").setToNode("bathroomDoorPathClose").setToField("set_fraction"))
          .addChild(new ROUTE().setFromNode("bathroomDoorPathClose").setFromField("value_changed").setToNode("bathroomDoor").setToField("set_rotation")))))
    .addChild(new Group("floorandceiling")
      .addChild(new Transform("floor").setTranslation(0.0,0.1,-4.5)
        .addChild(new Shape("floorshape")
          .setGeometry(new Box().setSize(9.0,0.1,9.0))
          .setAppearance(new Appearance("floorapp")
            .setMaterial(new Material().setDiffuseColor(0.9,0.7,0.6))))
        .addChild(new Transform().setTranslation(0.0,3.8,0.0)
          .addChild(new Shape().setUSE("floorshape"))))
      .addChild(new Transform("roof").setTranslation(0.0,4.0,-4.5)
        .addChild(new Inline().setUrl(new String[] {"Roof.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Roof.x3d","Roof.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Roof.wrl"}))))
    .addChild(new Viewpoint("point1").setDescription("diagonal").setOrientation(-0.68,-0.72,-0.13,0.52).setPosition(-10.0,8.0,25.0))
    .addChild(new Transform()
      .addChild(new Background("backgr").setGroundAngle(new double[] {1.309,1.570796}).setGroundColor(new MFColor(new double[] {0.1,0.1,0.0,0.4,0.25,0.2,0.6,0.6,0.6})).setSkyAngle(new double[] {1.309,1.571}).setSkyColor(new MFColor(new double[] {0.0,0.2,0.7,0.0,0.5,1.0,1.0,1.0,1.0}))))
    .addChild(new Viewpoint().setDescription("front").setPosition(0.0,3.0,10.0))
    .addChild(new Viewpoint().setDescription("inside").setOrientation(0.0,1.0,0.0,3.14).setPosition(2.0,1.5,-5.0))
    .addChild(new Group()
      .addChild(new Transform("lawnAndTree").setRotation(0.0,1.0,0.0,-0.785)
        .addChild(new Inline().setUrl(new String[] {"Tree.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Tree.x3d","Tree.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Tree.wrl"})))
      .addChild(new Transform("chair1").setRotation(0.0,1.0,0.0,1.3).setScale(0.5,0.5,0.5).setTranslation(-3.5,0.1,-2.0)
        .addChild(new Inline("chair").setUrl(new String[] {"Chair.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Chair.x3d","Chair.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Chair.wrl"})))
      .addChild(new Transform("chair2").setRotation(0.0,1.0,0.0,-1.3).setScale(0.5,0.5,0.5).setTranslation(-2.0,0.1,-2.0)
        .addChild(new Inline().setUSE("chair")))
      .addChild(new Transform("table").setScale(0.5,0.5,0.5).setTranslation(-2.75,0.2,-2.0)
        .addChild(new Inline().setUrl(new String[] {"Table.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Table.x3d","Table.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Table.wrl"}))))
    .addChild(new Transform("lawn").setRotation(1.0,0.0,0.0,1.57).setTranslation(0.0,0.0,-4.5)
      .addChild(new Shape("garden")
        .setGeometry(new Box().setSize(30.0,30.0,0.1))
        .setAppearance(new Appearance()
          .setMaterial(new Material().setDiffuseColor(0.2,0.8,0.1)))))
    .addChild(new Group("innerWalls")
      .addChild(new Transform().setTranslation(-2.75,2.0,-5.5)
        .addChild(new Shape("left")
          .setGeometry(new Box().setSize(3.5,4.0,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap"))))
      .addChild(new Transform().setTranslation(2.75,2.0,-5.5)
        .addChild(new Shape().setUSE("left")))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(-1.0,3.0,-7.25)
        .addChild(new Shape()
          .setGeometry(new Box().setSize(3.5,2.0,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap")))
        .addChild(new Transform().setTranslation(1.125,-2.0,0.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(1.25,2.0,0.1))
            .setAppearance(new Appearance().setUSE("wall_ap"))))
        .addChild(new Transform().setTranslation(-1.125,-2.0,0.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(1.25,2.0,0.1))
            .setAppearance(new Appearance().setUSE("wall_ap")))))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(1.0,3.0,-7.25)
        .addChild(new Shape("up")
          .setGeometry(new Box().setSize(3.5,2.0,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap")))
        .addChild(new Transform().setTranslation(1.125,-2.0,0.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(1.25,2.0,0.1))
            .setAppearance(new Appearance().setUSE("wall_ap"))))
        .addChild(new Transform().setTranslation(-1.125,-2.0,0.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(1.25,2.0,0.1))
            .setAppearance(new Appearance().setUSE("wall_ap")))))
      .addChild(new Transform().setTranslation(-2.75,3.0,-3.5)
        .addChild(new Shape().setUSE("up")))
      .addChild(new Transform().setTranslation(-2.75,0.45,-3.75)
        .addChild(new Shape()
          .setGeometry(new Box().setSize(3.5,0.9,0.5))
          .setAppearance(new Appearance().setUSE("wall_ap")))
        .addChild(new Transform().setTranslation(0.0,0.5,0.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(3.5,0.1,0.5))
            .setAppearance(new Appearance()
              .setTexture(new ImageTexture().setUSE("wood"))
              .setMaterial(new Material().setDiffuseColor(0.8,0.5,0.0))))))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(-1.0,3.0,-4.5)
        .addChild(new Shape()
          .setGeometry(new Box().setSize(2.0,2.0,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap"))))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(-1.0,1.0,-5.25)
        .addChild(new Shape()
          .setGeometry(new Box().setSize(0.5,2.0,0.1))
          .setAppearance(new Appearance().setUSE("wall_ap"))))
      .addChild(new Transform().setTranslation(-4.0,0.0,-4.75)
        .addChild(new Shape()
          .setAppearance(new Appearance().setUSE("wall_ap"))
          .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {-0.5,-0.75,0.5,-0.75,0.5,0.75,-0.5,0.75,-0.5,-0.75})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,0.9,0.0}))))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setScale(0.5,0.5,0.5).setTranslation(0.07,0.78,0.0)
          .addChild(new Inline("BASIN").setUrl(new String[] {"Basin.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Basin.x3d","Basin.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Basin.wrl"})))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(0.5,0.1,0.02)
          .addChild(new Inline("Cover").setUrl(new String[] {"Cover.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Cover.x3d","Cover.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Cover.wrl"}))))
      .addChild(new Transform().setScale(0.5,0.8,0.5).setTranslation(-1.2,0.2,-4.9)
        .addChild(new Inline().setUrl(new String[] {"Refrigerator.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Refrigerator.x3d","Refrigerator.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Refrigerator.wrl"})))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setScale(0.3,0.3,0.3).setTranslation(-2.5,0.1,-8.3)
        .addChild(new Inline().setUrl(new String[] {"BedFrame.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/BedFrame.x3d","BedFrame.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/BedFrame.wrl"}))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setScale(3.0,3.0,3.5).setTranslation(1.75,1.0,0.0)
          .addChild(new Inline().setUrl(new String[] {"Bed.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Bed.x3d","Bed.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Bed.wrl"}))
          .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setScale(0.1,0.1,0.1).setTranslation(0.5,0.5,-2.0)
            .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57).setTranslation(-12.0,-1.0,10.0)
              .addChild(new Inline().setUrl(new String[] {"Pillow.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Pillow.x3d","Pillow.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Pillow.wrl"}))))))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,-1.57).setTranslation(3.3,0.2,-6.1)
        .addChild(new Inline().setUrl(new String[] {"Bathtub.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Bathtub.x3d","Bathtub.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Bathtub.wrl"})))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,-1.57).setTranslation(1.8,0.1,-8.5)
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setScale(0.5,0.5,0.5).setTranslation(0.07,0.78,0.0)
          .addChild(new Inline().setUSE("BASIN")))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(0.5,0.1,0.02)
          .addChild(new Inline().setUSE("Cover")))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(0.05,0.5,-0.7)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(0.1,0.8,0.9))
            .setAppearance(new Appearance()
              .setTexture(new ImageTexture().setUSE("wood"))
              .setMaterial(new Material().setDiffuseColor(0.8,0.6,0.0)))))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(0.05,0.5,0.725)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(0.1,0.8,0.9))
            .setAppearance(new Appearance()
              .setTexture(new ImageTexture().setUSE("wood"))
              .setMaterial(new Material().setDiffuseColor(0.8,0.6,0.0))))))
      .addChild(new Transform().setRotation(0.0,0.0,1.0,1.57).setScale(0.25,0.25,0.25).setTranslation(3.5,0.25,-8.2)
        .addChild(new Inline().setUrl(new String[] {"Toilet.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Toilet.x3d","Toilet.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Toilet.wrl"})))
      .addChild(new Transform().setScale(0.6,0.7,0.5).setTranslation(-2.2,0.2,-4.9)
        .addChild(new Inline().setUrl(new String[] {"Oven.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Oven.x3d","Oven.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Oven.wrl"})))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,3.14).setScale(0.7,0.7,0.7).setTranslation(1.5,0.2,-2.0)
        .addChild(new Inline().setUrl(new String[] {"Sofa.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Sofa.x3d","Sofa.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Sofa.wrl"})))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setScale(0.7,0.7,0.7).setTranslation(1.5,0.2,-4.2)
        .addChild(new Inline().setUrl(new String[] {"Couch.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Couch.x3d","Couch.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Couch.wrl"})))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,-1.57).setScale(0.7,0.5,0.7).setTranslation(2.7,0.2,-3.5)
        .addChild(new Inline().setUrl(new String[] {"CoffeeTable.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/CoffeeTable.x3d","CoffeeTable.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/CoffeeTable.wrl"})))
      .addChild(new Transform().setTranslation(3.75,0.0,6.75)
        .addChild(new Inline("fence").setUrl(new String[] {"Fence.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Fence.x3d","Fence.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Fence.wrl"})))
      .addComments(" inadvertant deletion here? ")
      .addChild(new Transform().setTranslation(-11.25,0.0,6.75)
        .addChild(new Inline().setUSE("fence")))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(-11.375,0.0,6.625)
        .addChild(new Inline().setUSE("fence")))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(-11.375,0.0,-0.875)
        .addChild(new Inline().setUSE("fence")))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(-11.375,0.0,-8.375)
        .addChild(new Inline().setUSE("fence")))
      .addChild(new Transform().setTranslation(-11.25,0.0,-15.875)
        .addChild(new Inline().setUSE("fence")))
      .addChild(new Transform().setTranslation(-3.75,0.0,-15.875)
        .addChild(new Inline().setUSE("fence")))
      .addChild(new Transform().setTranslation(3.75,0.0,-15.875)
        .addChild(new Inline().setUSE("fence")))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,-1.57).setTranslation(11.375,0.0,-15.875)
        .addChild(new Inline().setUSE("fence")))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,-1.57).setTranslation(11.375,0.0,-8.375)
        .addChild(new Inline().setUSE("fence")))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,-1.57).setTranslation(11.375,0.0,-0.875)
        .addChild(new Inline().setUSE("fence")))
      .addChild(new Transform().setTranslation(-3.75,0.0,6.75)
        .addChild(new Inline().setUrl(new String[] {"FenceGate.x3d","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/FenceGate.x3d","FenceGate.wrl","https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/FenceGate.wrl"}))))
    .addChild(new Viewpoint().setDescription("fromLeft").setOrientation(0.0,1.0,0.0,-1.57).setPosition(-15.0,4.0,-4.5))
    .addChild(new Viewpoint().setDescription("fromBack").setOrientation(0.0,1.0,0.0,3.14).setPosition(0.0,4.0,-20.0))
    .addChild(new Viewpoint().setDescription("fromRight").setOrientation(0.0,1.0,0.0,1.57).setPosition(15.0,4.0,-4.5))
    .addChild(new Viewpoint().setDescription("tableChairs").setOrientation(-0.44,0.9,0.06,0.30).setPosition(-2.0,1.5,-0.2))
    .addChild(new Viewpoint().setDescription("livingRoom").setOrientation(-0.25,0.95,0.17,1.27).setPosition(4.0,3.0,-0.2))
    .addChild(new Viewpoint().setDescription("bedRoom").setOrientation(0.0,1.0,0.0,0.83).setPosition(-1.0,1.5,-5.8))
    .addChild(new Viewpoint().setDescription("kitchen").setOrientation(-0.12,0.99,0.12,1.59).setPosition(-2.0,1.5,-4.75))
    .addChild(new Viewpoint().setDescription("refrigerator").setOrientation(1.0,0.0,0.0,-0.4).setPosition(-1.5,2.0,-3.0))
    .addChild(new Viewpoint().setDescription("bathroom").setOrientation(-0.02,-1.0,-0.06,2.36).setPosition(1.5,1.75,-8.0))
    .addChild(new Viewpoint().setDescription("bathroom basin").setOrientation(-0.68,0.72,0.11,0.44).setPosition(2.0,1.45,-6.5))
    .addChild(new Viewpoint().setDescription("bathroom toilet").setOrientation(-0.32,-0.93,-0.20,1.18).setPosition(1.5,1.5,-7.0))
    .addChild(new Viewpoint().setDescription("livingroom2").setFieldOfView(1).setOrientation(-0.22,-0.94,-0.25,1.77).setPosition(-0.5,2.0,-3.5))
    .addChild(new Viewpoint().setDescription("corridor").setFieldOfView(1).setOrientation(0.0,1.0,0.0,-1.57).setPosition(-1.0,1.5,-7.5))
    .addChild(new Viewpoint().setDescription("gate").setPosition(0.0,1.5,12.0)));
            }
            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 House 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 House().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.Buildings.HouseBarisAktop.House\" 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.Buildings.HouseBarisAktop.House self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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