{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.3",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.3.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"SimpleBuildingConstructionExample.x3d"
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"17 October 2001"
          },
          {
            "@name":"modified",
            "@content":"2 January 2025"
          },
          {
            "@name":"description",
            "@content":"Example use of simple prototypes for building construction: Wall, Floor, Level and Building."
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Buildings/UHRB/SimpleBuildingConstructionExample.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"21 April 2026"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, https://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"reference",
            "@content":"X3D JSON encoding: https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "WorldInfo":
            {
              "@title":"SimpleBuildingConstructionExample.x3d"
            }
          },
          { "ExternProtoDeclare":
            {
              "@name":"Floor",
              "@appinfo":"Each Floor cantains the current floor surface plus a ceiling surface for the floor immediately underneath. A Floor does not include exterior or interior wall polygons.",
              "@url":["SimpleBuildingConstructionPrototypes.x3d#Floor","https://www.web3d.org/x3d/content/examples/Savage/Buildings/UHRB/SimpleBuildingConstructionPrototypes.x3d#Floor","SimpleBuildingConstructionPrototypes.wrl#Floor","https://www.web3d.org/x3d/content/examples/Savage/Buildings/UHRB/SimpleBuildingConstructionPrototypes.wrl#Floor"],
              "field": [
                {
                  "@name":"name",
                  "@accessType":"initializeOnly",
                  "@appinfo":"Identifying name for this Floor.",
                  "@type":"SFString"
                },
                {
                  "@name":"description",
                  "@accessType":"initializeOnly",
                  "@appinfo":"Description info for this construction.",
                  "@type":"MFString"
                },
                {
                  "@name":"size",
                  "@accessType":"initializeOnly",
                  "@appinfo":"single-value Coordinate node with dimension x=width y=height z=depth in meters",
                  "@type":"SFNode"
                },
                {
                  "@name":"floorAppearance",
                  "@accessType":"initializeOnly",
                  "@appinfo":"Appearance node with Material colors ImageTexture etc. for this construction.",
                  "@type":"SFNode"
                },
                {
                  "@name":"ceilingAppearance",
                  "@accessType":"initializeOnly",
                  "@appinfo":"Appearance node with Material colors ImageTexture etc. for this construction.",
                  "@type":"SFNode"
                },
                {
                  "@name":"showSides",
                  "@accessType":"initializeOnly",
                  "@appinfo":"Whether sides are visible.",
                  "@type":"SFBool"
                },
                {
                  "@name":"width",
                  "@accessType":"outputOnly",
                  "@appinfo":"width of front side of floor aligned with local X axis.",
                  "@type":"SFFloat"
                },
                {
                  "@name":"height",
                  "@accessType":"outputOnly",
                  "@appinfo":"height of vertical distance between floor and ceiling directly underneath aligned with local Y axis.",
                  "@type":"SFFloat"
                },
                {
                  "@name":"depth",
                  "@accessType":"outputOnly",
                  "@appinfo":"depth of horizontal side of floor aligned with local -Z axis.",
                  "@type":"SFFloat"
                },
                {
                  "@name":"built",
                  "@accessType":"outputOnly",
                  "@appinfo":"Indicate whether initialization complete.",
                  "@type":"SFBool"
                }
              ]
            }
          },
          { "ExternProtoDeclare":
            {
              "@name":"Wall",
              "@appinfo":"Each Wall contains exterior and interior walls.",
              "@url":["SimpleBuildingConstructionPrototypes.x3d#Wall","https://www.web3d.org/x3d/content/examples/Savage/Buildings/UHRB/SimpleBuildingConstructionPrototypes.x3d#Wall","SimpleBuildingConstructionPrototypes.wrl#Wall","https://www.web3d.org/x3d/content/examples/Savage/Buildings/UHRB/SimpleBuildingConstructionPrototypes.wrl#Wall"],
              "field": [
                {
                  "@name":"name",
                  "@accessType":"initializeOnly",
                  "@appinfo":"Identifying name for this Wall.",
                  "@type":"SFString"
                },
                {
                  "@name":"description",
                  "@accessType":"initializeOnly",
                  "@appinfo":"Description info for this construction.",
                  "@type":"MFString"
                },
                {
                  "@name":"size",
                  "@accessType":"initializeOnly",
                  "@appinfo":"single-value Coordinate node with dimension x=width y=height z=depth in meters",
                  "@type":"SFNode"
                },
                {
                  "@name":"interiorAppearance",
                  "@accessType":"initializeOnly",
                  "@appinfo":"Appearance node with Material colors ImageTexture etc. for this construction.",
                  "@type":"SFNode"
                },
                {
                  "@name":"exteriorAppearance",
                  "@accessType":"initializeOnly",
                  "@appinfo":"Appearance node with Material colors ImageTexture etc. for this construction.",
                  "@type":"SFNode"
                },
                {
                  "@name":"showSides",
                  "@accessType":"initializeOnly",
                  "@appinfo":"Whether sides are visible.",
                  "@type":"SFBool"
                },
                {
                  "@name":"width",
                  "@accessType":"outputOnly",
                  "@appinfo":"width of horizontal side of wall aligned with local X axis.",
                  "@type":"SFFloat"
                },
                {
                  "@name":"height",
                  "@accessType":"outputOnly",
                  "@appinfo":"height of Wall aligned with local Y axis.",
                  "@type":"SFFloat"
                },
                {
                  "@name":"depth",
                  "@accessType":"outputOnly",
                  "@appinfo":"depth of horizontal thickness of Wall aligned with local -Z axis.",
                  "@type":"SFFloat"
                },
                {
                  "@name":"built",
                  "@accessType":"outputOnly",
                  "@appinfo":"Indicate whether initialization complete.",
                  "@type":"SFBool"
                }
              ]
            }
          },
          { "ExternProtoDeclare":
            {
              "@name":"Level",
              "@appinfo":"collection of a Floor and four Walls working in order up from lowest level (i.e. story) of the Building",
              "@url":["SimpleBuildingConstructionPrototypes.x3d#Level","https://www.web3d.org/x3d/content/examples/Savage/Buildings/UHRB/SimpleBuildingConstructionPrototypes.x3d#Level","SimpleBuildingConstructionPrototypes.wrl#Level","https://www.web3d.org/x3d/content/examples/Savage/Buildings/UHRB/SimpleBuildingConstructionPrototypes.wrl#Level"],
              "field": [
                {
                  "@name":"name",
                  "@accessType":"initializeOnly",
                  "@appinfo":"Identifying name for this Level.",
                  "@type":"SFString"
                },
                {
                  "@name":"description",
                  "@accessType":"initializeOnly",
                  "@appinfo":"Description info for this construction.",
                  "@type":"MFString"
                },
                {
                  "@name":"floor",
                  "@accessType":"initializeOnly",
                  "@appinfo":"contains single Floor node",
                  "@type":"MFNode"
                },
                {
                  "@name":"frontWall",
                  "@accessType":"initializeOnly",
                  "@appinfo":"contains single front Wall node",
                  "@type":"MFNode"
                },
                {
                  "@name":"rightWall",
                  "@accessType":"initializeOnly",
                  "@appinfo":"contains single right-side Wall node",
                  "@type":"MFNode"
                },
                {
                  "@name":"rearWall",
                  "@accessType":"initializeOnly",
                  "@appinfo":"contains single rear Wall node",
                  "@type":"MFNode"
                },
                {
                  "@name":"leftWall",
                  "@accessType":"initializeOnly",
                  "@appinfo":"contains single left-side Wall node",
                  "@type":"MFNode"
                },
                {
                  "@name":"width",
                  "@accessType":"outputOnly",
                  "@appinfo":"Calculated width of horizontal side of Level aligned with local X axis.",
                  "@type":"SFFloat"
                },
                {
                  "@name":"height",
                  "@accessType":"outputOnly",
                  "@appinfo":"Calculated height of Level aligned with local Y axis.",
                  "@type":"SFFloat"
                },
                {
                  "@name":"depth",
                  "@accessType":"outputOnly",
                  "@appinfo":"Calculated depth of horizontal thickness of Level aligned with local -Z axis.",
                  "@type":"SFFloat"
                },
                {
                  "@name":"built",
                  "@accessType":"outputOnly",
                  "@appinfo":"Indicate whether initialization complete.",
                  "@type":"SFBool"
                }
              ]
            }
          },
          { "ExternProtoDeclare":
            {
              "@name":"Building",
              "@appinfo":"Collect prototypes for levels floors and walls to create a simple Building.",
              "@url":["SimpleBuildingConstructionPrototypes.x3d#Building","https://www.web3d.org/x3d/content/examples/Savage/Buildings/UHRB/SimpleBuildingConstructionPrototypes.x3d#Building","SimpleBuildingConstructionPrototypes.wrl#Building","https://www.web3d.org/x3d/content/examples/Savage/Buildings/UHRB/SimpleBuildingConstructionPrototypes.wrl#Building"],
              "field": [
                {
                  "@name":"name",
                  "@accessType":"initializeOnly",
                  "@appinfo":"Identifying name of this Building.",
                  "@type":"SFString"
                },
                {
                  "@name":"description",
                  "@accessType":"initializeOnly",
                  "@appinfo":"Description info for this construction.",
                  "@type":"MFString"
                },
                {
                  "@name":"authorAssist",
                  "@accessType":"initializeOnly",
                  "@appinfo":"whether or not to display author assist tools such as coordinate axes measuring grids etc.",
                  "@type":"SFBool"
                },
                {
                  "@name":"xHeading",
                  "@accessType":"initializeOnly",
                  "@appinfo":"compass direction in degrees of building X axis as seen when regarding front face of building pointing from left side to right side.",
                  "@type":"SFFloat"
                },
                {
                  "@name":"orientation",
                  "@accessType":"outputOnly",
                  "@appinfo":"output rotation value calculated from xHeading as (0 1 0 xHeading * 2pi / 360)",
                  "@type":"SFRotation"
                },
                {
                  "@name":"latitude",
                  "@accessType":"initializeOnly",
                  "@appinfo":"example value: 120.30 E",
                  "@type":"SFString"
                },
                {
                  "@name":"longitude",
                  "@accessType":"initializeOnly",
                  "@appinfo":"example value: 20.45 N",
                  "@type":"SFString"
                },
                {
                  "@name":"levels",
                  "@accessType":"initializeOnly",
                  "@appinfo":"contains array of Level nodes",
                  "@type":"MFNode"
                },
                {
                  "@name":"roof",
                  "@accessType":"initializeOnly",
                  "@appinfo":"Geometry for Roof positioned above topmost Level",
                  "@type":"SFNode"
                },
                {
                  "@name":"roofHeight",
                  "@accessType":"initializeOnly",
                  "@appinfo":"height value for provided Roof geometry.",
                  "@type":"SFFloat"
                },
                {
                  "@name":"width",
                  "@accessType":"outputOnly",
                  "@appinfo":"Calculated width of horizontal side of Building aligned with local X axis.",
                  "@type":"SFFloat"
                },
                {
                  "@name":"height",
                  "@accessType":"outputOnly",
                  "@appinfo":"Calculated height of Building aligned with local Y axis.",
                  "@type":"SFFloat"
                },
                {
                  "@name":"depth",
                  "@accessType":"outputOnly",
                  "@appinfo":"Calculated depth of horizontal thickness of Building aligned with local -Z axis.",
                  "@type":"SFFloat"
                },
                {
                  "@name":"built",
                  "@accessType":"outputOnly",
                  "@appinfo":"Indicate whether initialization complete.",
                  "@type":"SFBool"
                }
              ]
            }
          },
          {
            "#comment":"============================"
          },
          {
            "#comment":"example instance"
          },
          { "Background":
            {
              "@groundAngle":[1.57],
              "@groundColor":[0.6,0.9,0.6,0.6,0.9,0.6],
              "@skyColor":[0.6,0.6,0.9]
            }
          },
          { "Viewpoint":
            {
              "@description":"Building, Level, Wall and Floor prototype examples. Next Viewpoints are calculated based on Building size.",
              "@orientation":[1,0,0,-0.3],
              "@position":[4,9,15]
            }
          },
          { "Switch":
            {
              "@DEF":"Tester",
              "@whichChoice":1,
              "-children":[
                {
                  "#comment":"test one child only"
                },
                { "Transform":
                  {
                    "@translation":[-5,0,0],
                    "-children":[
                      { "ProtoInstance":
                        {
                          "@name":"Floor",
                          "fieldValue": [
                            {
                              "@name":"name",
                              "@value":"hidden1"
                            },
                            {
                              "@name":"description",
                              "@value":["simple test floor"]
                            },
                            {
                              "@name":"size",
                              "-children":[
                                {
                                  "#comment":"point dimensions: width height depth"
                                },
                                { "Coordinate":
                                  {
                                    "@point":[10,0.2,5]
                                  }
                                }
                              ]
                            },
                            {
                              "@name":"floorAppearance",
                              "-children":[
                                { "Appearance":
                                  {
                                    "-material":
                                      { "Material":
                                        {
                                          "@diffuseColor":[0.3,0.3,0.1]
                                        }
                                      }
                                  }
                                }
                              ]
                            },
                            {
                              "@name":"ceilingAppearance",
                              "-children":[
                                { "Appearance":
                                  {
                                    "-material":
                                      { "Material":
                                        {
                                        }
                                      }
                                  }
                                }
                              ]
                            },
                            {
                              "@name":"showSides",
                              "@value":true
                            }
                          ]
                        }
                      },
                      { "ProtoInstance":
                        {
                          "@name":"Wall",
                          "fieldValue": [
                            {
                              "@name":"name",
                              "@value":"hidden2"
                            },
                            {
                              "@name":"description",
                              "@value":["simple test wall"]
                            },
                            {
                              "@name":"size",
                              "-children":[
                                { "Coordinate":
                                  {
                                    "@point":[10,2.5,0.5]
                                  }
                                }
                              ]
                            },
                            {
                              "@name":"interiorAppearance",
                              "-children":[
                                { "Appearance":
                                  {
                                    "-material":
                                      { "Material":
                                        {
                                          "@DEF":"Green",
                                          "@diffuseColor":[0.3,0.6,0.1]
                                        }
                                      }
                                  }
                                }
                              ]
                            },
                            {
                              "@name":"exteriorAppearance",
                              "-children":[
                                { "Appearance":
                                  {
                                    "-material":
                                      { "Material":
                                        {
                                          "@DEF":"LightBlue",
                                          "@diffuseColor":[0.5,0.5,0.8]
                                        }
                                      }
                                  }
                                }
                              ]
                            },
                            {
                              "@name":"showSides",
                              "@value":true
                            }
                          ],
                          "-children":[
                            {
                              "#comment":"point dimensions: width height depth"
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                { "ProtoInstance":
                  {
                    "@name":"Building",
                    "fieldValue": [
                      {
                        "@name":"name",
                        "@value":"exemplar"
                      },
                      {
                        "@name":"description",
                        "@value":["A set of example building prototype instances."]
                      },
                      {
                        "@name":"authorAssist",
                        "@value":true
                      },
                      {
                        "@name":"xHeading",
                        "@value":335
                      },
                      {
                        "@name":"latitude",
                        "@value":"40 52 N"
                      },
                      {
                        "@name":"longitude",
                        "@value":"126 E"
                      },
                      {
                        "@name":"levels",
                        "-children":[
                          { "ProtoInstance":
                            {
                              "@name":"Level",
                              "@DEF":"LevelOne",
                              "fieldValue": [
                                {
                                  "@name":"name",
                                  "@value":"One"
                                },
                                {
                                  "@name":"description",
                                  "@value":["first level is ground story of building"]
                                },
                                {
                                  "@name":"floor",
                                  "-children":[
                                    { "ProtoInstance":
                                      {
                                        "@name":"Floor",
                                        "@DEF":"BottomFloor",
                                        "fieldValue": [
                                          {
                                            "@name":"name",
                                            "@value":"bottom"
                                          },
                                          {
                                            "@name":"description",
                                            "@value":["planar surface for first floor"]
                                          },
                                          {
                                            "@name":"size",
                                            "-children":[
                                              {
                                                "#comment":"point dimensions: width height depth"
                                              },
                                              { "Coordinate":
                                                {
                                                  "@DEF":"FloorSizeCoordinateNode",
                                                  "@point":[10,0.2,5]
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"floorAppearance",
                                            "-children":[
                                              { "Appearance":
                                                {
                                                  "@DEF":"FloorAppearanceNode",
                                                  "-material":
                                                    { "Material":
                                                      {
                                                        "@DEF":"Olive",
                                                        "@diffuseColor":[0.3,0.3,0.1]
                                                      }
                                                    }
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"ceilingAppearance",
                                            "-children":[
                                              { "Appearance":
                                                {
                                                  "@DEF":"CeilingAppearanceNode",
                                                  "-material":
                                                    { "Material":
                                                      {
                                                        "@DEF":"LightGrey"
                                                      }
                                                    }
                                                }
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                },
                                {
                                  "@name":"frontWall",
                                  "-children":[
                                    { "ProtoInstance":
                                      {
                                        "@name":"Wall",
                                        "fieldValue": [
                                          {
                                            "@name":"name",
                                            "@value":"frontOne"
                                          },
                                          {
                                            "@name":"description",
                                            "@value":["example front Wall"]
                                          },
                                          {
                                            "@name":"size",
                                            "-children":[
                                              { "Coordinate":
                                                {
                                                  "@DEF":"FacingWallSizeCoordinateNode",
                                                  "@point":[10,2.5,0.5]
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"interiorAppearance",
                                            "-children":[
                                              { "Appearance":
                                                {
                                                  "@DEF":"InteriorAppearanceNode",
                                                  "-material":
                                                    { "Material":
                                                      {
                                                        "@diffuseColor":[0.3,0.3,0.1]
                                                      }
                                                    }
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"exteriorAppearance",
                                            "-children":[
                                              { "Appearance":
                                                {
                                                  "@DEF":"ExteriorAppearanceNode",
                                                  "-material":
                                                    { "Material":
                                                      {
                                                      }
                                                    }
                                                }
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                },
                                {
                                  "@name":"rightWall",
                                  "-children":[
                                    { "ProtoInstance":
                                      {
                                        "@name":"Wall",
                                        "fieldValue": [
                                          {
                                            "@name":"name",
                                            "@value":"rightOne"
                                          },
                                          {
                                            "@name":"description",
                                            "@value":["example right Wall"]
                                          },
                                          {
                                            "@name":"size",
                                            "-children":[
                                              { "Coordinate":
                                                {
                                                  "@DEF":"SideWallSizeCoordinateNode",
                                                  "@point":[5,2.5,0.5]
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"interiorAppearance",
                                            "-children":[
                                              { "Appearance":
                                                {
                                                  "@USE":"InteriorAppearanceNode"
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"exteriorAppearance",
                                            "-children":[
                                              { "Appearance":
                                                {
                                                  "@DEF":"ExteriorAppearanceNode2",
                                                  "-material":
                                                    { "Material":
                                                      {
                                                      }
                                                    },
                                                  "-texture":
                                                    { "ImageTexture":
                                                      {
                                                        "@DEF":"BrickTexture",
                                                        "@repeatS":false,
                                                        "@url":["brick.jpg","https://www.web3d.org/x3d/content/examples/Savage/Buildings/UHRB/brick.jpg","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/brick.jpg"]
                                                      }
                                                    }
                                                }
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                },
                                {
                                  "@name":"rearWall",
                                  "-children":[
                                    { "ProtoInstance":
                                      {
                                        "@name":"Wall",
                                        "fieldValue": [
                                          {
                                            "@name":"name",
                                            "@value":"rearOne"
                                          },
                                          {
                                            "@name":"description",
                                            "@value":["example rear Wall"]
                                          },
                                          {
                                            "@name":"size",
                                            "-children":[
                                              { "Coordinate":
                                                {
                                                  "@USE":"FacingWallSizeCoordinateNode"
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"interiorAppearance",
                                            "-children":[
                                              { "Appearance":
                                                {
                                                  "@USE":"InteriorAppearanceNode"
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"exteriorAppearance",
                                            "-children":[
                                              { "Appearance":
                                                {
                                                  "@USE":"ExteriorAppearanceNode"
                                                }
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                },
                                {
                                  "@name":"leftWall",
                                  "-children":[
                                    { "ProtoInstance":
                                      {
                                        "@name":"Wall",
                                        "fieldValue": [
                                          {
                                            "@name":"name",
                                            "@value":"leftOne"
                                          },
                                          {
                                            "@name":"description",
                                            "@value":["example left Wall"]
                                          },
                                          {
                                            "@name":"size",
                                            "-children":[
                                              { "Coordinate":
                                                {
                                                  "@USE":"SideWallSizeCoordinateNode"
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"interiorAppearance",
                                            "-children":[
                                              { "Appearance":
                                                {
                                                  "@USE":"InteriorAppearanceNode"
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"exteriorAppearance",
                                            "-children":[
                                              { "Appearance":
                                                {
                                                  "@USE":"ExteriorAppearanceNode2"
                                                }
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                }
                              ]
                            }
                          },
                          { "ProtoInstance":
                            {
                              "@name":"Level",
                              "@DEF":"LevelTwo",
                              "fieldValue": [
                                {
                                  "@name":"name",
                                  "@value":"Two"
                                },
                                {
                                  "@name":"description",
                                  "@value":["second level of building has an open front Wall"]
                                },
                                {
                                  "@name":"floor",
                                  "-children":[
                                    { "ProtoInstance":
                                      {
                                        "@name":"Floor",
                                        "@USE":"BottomFloor"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "@name":"frontWall",
                                  "-children":[
                                    { "ProtoInstance":
                                      {
                                        "@name":"Wall",
                                        "fieldValue": [
                                          {
                                            "@name":"name",
                                            "@value":"frontTwo"
                                          },
                                          {
                                            "@name":"description",
                                            "@value":["test default values are null wall"]
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                },
                                {
                                  "@name":"rightWall",
                                  "-children":[
                                    { "ProtoInstance":
                                      {
                                        "@name":"Wall",
                                        "fieldValue": [
                                          {
                                            "@name":"name",
                                            "@value":"rightTwo"
                                          },
                                          {
                                            "@name":"description",
                                            "@value":["example right Wall"]
                                          },
                                          {
                                            "@name":"size",
                                            "-children":[
                                              { "Coordinate":
                                                {
                                                  "@USE":"SideWallSizeCoordinateNode"
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"interiorAppearance",
                                            "-children":[
                                              { "Appearance":
                                                {
                                                  "@DEF":"InteriorAppearanceNode2",
                                                  "-material":
                                                    { "Material":
                                                      {
                                                        "@diffuseColor":[0.8,0.8,0.2]
                                                      }
                                                    }
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"exteriorAppearance",
                                            "-children":[
                                              { "Appearance":
                                                {
                                                  "@DEF":"ExteriorAppearanceNode3",
                                                  "-material":
                                                    { "Material":
                                                      {
                                                        "@diffuseColor":[0.8,0.4,0.1]
                                                      }
                                                    }
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"showSides",
                                            "@value":true
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                },
                                {
                                  "@name":"rearWall",
                                  "-children":[
                                    { "ProtoInstance":
                                      {
                                        "@name":"Wall",
                                        "fieldValue": [
                                          {
                                            "@name":"name",
                                            "@value":"rearTwo"
                                          },
                                          {
                                            "@name":"description",
                                            "@value":["example rear Wall"]
                                          },
                                          {
                                            "@name":"size",
                                            "-children":[
                                              { "Coordinate":
                                                {
                                                  "@USE":"FacingWallSizeCoordinateNode"
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"interiorAppearance",
                                            "-children":[
                                              { "Appearance":
                                                {
                                                  "@USE":"InteriorAppearanceNode2"
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"exteriorAppearance",
                                            "-children":[
                                              { "Appearance":
                                                {
                                                  "@USE":"ExteriorAppearanceNode3"
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"showSides",
                                            "@value":true
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                },
                                {
                                  "@name":"leftWall",
                                  "-children":[
                                    { "ProtoInstance":
                                      {
                                        "@name":"Wall",
                                        "fieldValue": [
                                          {
                                            "@name":"name",
                                            "@value":"leftTwo"
                                          },
                                          {
                                            "@name":"description",
                                            "@value":["example left Wall"]
                                          },
                                          {
                                            "@name":"size",
                                            "-children":[
                                              { "Coordinate":
                                                {
                                                  "@USE":"SideWallSizeCoordinateNode"
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"interiorAppearance",
                                            "-children":[
                                              { "Appearance":
                                                {
                                                  "@USE":"InteriorAppearanceNode2"
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"exteriorAppearance",
                                            "-children":[
                                              { "Appearance":
                                                {
                                                  "@USE":"ExteriorAppearanceNode3"
                                                }
                                              }
                                            ]
                                          },
                                          {
                                            "@name":"showSides",
                                            "@value":true
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                }
                              ],
                              "-children":[
                                {
                                  "#comment":"no frontWall, but still need null-node fieldValue to avoid CosmoPlayer crash"
                                }
                              ]
                            }
                          },
                          { "ProtoInstance":
                            {
                              "@name":"Level",
                              "@USE":"LevelOne"
                            }
                          }
                        ]
                      },
                      {
                        "@name":"roof",
                        "-children":[
                          {
                            "#comment":"center of Box is at origin, so translate to get front left corner of Box at origin. Also adjust for roof overhang."
                          },
                          { "Transform":
                            {
                              "@translation":[5,0.2,-2.5],
                              "-children":[
                                { "Shape":
                                  {
                                    "-geometry":
                                      { "Box":
                                        {
                                          "@size":[11,0.4,6]
                                        }
                                      },
                                    "-appearance":
                                      { "Appearance":
                                        {
                                          "-material":
                                            { "Material":
                                              {
                                                "@diffuseColor":[0,0,1]
                                              }
                                            }
                                        }
                                      }
                                  }
                                }
                              ]
                            }
                          }
                        ]
                      },
                      {
                        "@name":"roofHeight",
                        "@value":0.4
                      }
                    ],
                    "-children":[
                      {
                        "#comment":"roof can be any geometry. a very simple roof is to re-Use initial Floor."
                      }
                    ]
                  }
                }
              ]
            }
          }
        ]
    }
  }
}